mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-03 08:51:08 +00:00
Another try to make this utterly piece of crap portable.
This commit is contained in:
parent
4d299e26d7
commit
e229008b72
1 changed files with 8 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue