com shim for launching raddbg in cli mode, for proper console subsystem style usage of packaged bin utilities; checkpoint on eval2

This commit is contained in:
Ryan Fleury committed 2026-06-19 20:12:20 -07:00
1 parent 3fd7b40f4d
commit fe2aa4d14c
18 files changed
+638 -152

No files matched your search

+10
View File
@@ -586,6 +586,16 @@ entry_point(CmdLine *cmd_line)
{
Temp scratch = scratch_begin(0, 0);
//- rjf: re-open stdout handles if cli
#if OS_WINDOWS
if(cmd_line_has_flag(cmd_line, s("bin")))
{
AttachConsole(ATTACH_PARENT_PROCESS);
freopen("CONOUT$", "wt", stdout);
freopen("CONOUT$", "wt", stderr);
}
#endif
//- rjf: unpack command line arguments
ExecMode exec_mode = ExecMode_Normal;
B32 auto_run = 0;