mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-27 06:42:23 +00:00
Make sure that the config dir exists before reopening stdout.
Without this to stdout.txt and stderr.txt are created at the first start.
This commit is contained in:
parent
21d7c85044
commit
93008da0eb
1 changed files with 2 additions and 0 deletions
|
@ -726,6 +726,8 @@ Sys_RedirectStdout(void)
|
|||
return;
|
||||
}
|
||||
|
||||
Sys_Mkdir(tmp);
|
||||
|
||||
snprintf(path_stdout, sizeof(path_stdout), "%s/%s", dir, "stdout.txt");
|
||||
snprintf(path_stderr, sizeof(path_stderr), "%s/%s", dir, "stderr.txt");
|
||||
|
||||
|
|
Loading…
Reference in a new issue