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:
Yamagi 2020-10-20 09:38:26 +02:00
parent 21d7c85044
commit 93008da0eb

View file

@ -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");