mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-08 14:58:08 +00:00
only rewrite stdout/stderr/etc. if passed cli specifically
This commit is contained in:
@@ -41,6 +41,7 @@ entry_point(CmdLine *cmd_line)
|
||||
#endif
|
||||
}
|
||||
str8_list_push(scratch.arena, &command_parts, exe_name);
|
||||
str8_list_push(scratch.arena, &command_parts, s("--cli"));
|
||||
for EachIndex(idx, cmd_line->argc)
|
||||
{
|
||||
String8 arg = str8_cstring(cmd_line->argv[idx]);
|
||||
|
||||
@@ -588,7 +588,7 @@ entry_point(CmdLine *cmd_line)
|
||||
|
||||
//- rjf: re-open stdout handles if cli
|
||||
#if OS_WINDOWS
|
||||
if(cmd_line_has_flag(cmd_line, s("bin")))
|
||||
if(cmd_line_has_flag(cmd_line, s("cli")))
|
||||
{
|
||||
AttachConsole(ATTACH_PARENT_PROCESS);
|
||||
freopen("CONOUT$", "wt", stdout);
|
||||
|
||||
Reference in New Issue
Block a user