mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +00:00
fix handling of +set on the command line so the global config file can be
overridden (so long as it doesn't use setrom:)
This commit is contained in:
parent
42b3a83bd9
commit
c67a1b37e5
2 changed files with 7 additions and 1 deletions
|
@ -1606,6 +1606,10 @@ void Host_Init (void)
|
|||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
// execute +set again to override the config file
|
||||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
CL_Cam_Init_Cvars ();
|
||||
CL_Input_Init_Cvars ();
|
||||
CL_Init_Cvars ();
|
||||
|
|
|
@ -1845,8 +1845,10 @@ SV_Init (void)
|
|||
fs_globalcfg = Cvar_Get ("fs_globalcfg", FS_GLOBALCFG,
|
||||
CVAR_ROM, "global configuration file");
|
||||
Cmd_Exec_File (fs_globalcfg->string);
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
// execute sets again after the config file has been parsed ..
|
||||
// execute +set again to override the config file
|
||||
Cmd_StuffCmds_f ();
|
||||
Cbuf_Execute_Sets ();
|
||||
|
||||
COM_Filesystem_Init_Cvars ();
|
||||
|
|
Loading…
Reference in a new issue