Another try to make this utterly piece of crap portable.

This commit is contained in:
Yamagi Burmeister 2017-03-22 18:03:44 +01:00
parent 4d299e26d7
commit e229008b72
1 changed files with 8 additions and 5 deletions

View File

@ -202,12 +202,7 @@ Qcommon_Init(int argc, char **argv)
Cmd_Init();
Cvar_Init();
/* Be portable, don't add HOME to the search path
* This is needed by Sys_RedirectStdout() on Windows*/
portable = Cvar_Get("portable", "0", 0);
#ifndef DEDICATED_ONLY
Sys_RedirectStdout();
Key_Init();
#endif
@ -218,6 +213,14 @@ Qcommon_Init(int argc, char **argv)
Cbuf_AddEarlyCommands(false);
Cbuf_Execute();
/* Be portable, don't add HOME to the search path
* This is needed by Sys_RedirectStdout() on Windows*/
portable = Cvar_Get("portable", "0", 0);
#ifndef DEDICATED_ONLY
Sys_RedirectStdout();
#endif
FS_InitFilesystem();
Cbuf_AddText("exec default.cfg\n");