mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +00:00
Trivial fix for WIN32 version when GLOBAL_CFG_FILE is not defined.
This commit is contained in:
parent
4771585877
commit
3d58770b4e
1 changed files with 4 additions and 1 deletions
|
@ -556,20 +556,23 @@ Host_Init (quakeparms_t *parms)
|
|||
// would have been nice if Cmd_Exec_f could have been used, but it
|
||||
// only reads from within the quake file system, and changing that is
|
||||
// probably Not A Good Thing (tm).
|
||||
#if defined(GLOBAL_CFG_FILE)
|
||||
global_cfg_file = Cvar_Get("global_cfg_file", GLOBAL_CFG_FILE,
|
||||
CVAR_ROM, "global configuration file");
|
||||
|
||||
Cmd_Exec_File (global_cfg_file->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
#endif
|
||||
|
||||
CL_InitCvars ();
|
||||
SCR_InitCvars ();
|
||||
VID_InitCvars ();
|
||||
COM_Init ();
|
||||
|
||||
|
||||
#if defined(GLOBAL_CFG_FILE)
|
||||
Cmd_Exec_File (global_cfg_file->string);
|
||||
Cbuf_Execute ();
|
||||
#endif
|
||||
|
||||
// reparse the command line for + commands other than set (sets still done,
|
||||
// but it doesn't matter)
|
||||
|
|
Loading…
Reference in a new issue