mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 18:31:27 +00:00
[qw] Save and load cvars before input config
Saving is not so important, but for loading, while the input system doesn't make much use of cvars at this stage, it makes sense for them to be loaded before the input system configuration is loaded.
This commit is contained in:
parent
b80c19bd77
commit
1868fe7404
1 changed files with 2 additions and 2 deletions
|
@ -1507,8 +1507,8 @@ Host_WriteConfiguration (void)
|
|||
{
|
||||
if (host_initialized && cl_writecfg->int_val) {
|
||||
plitem_t *config = PL_NewDictionary (0); //FIXME hashlinks
|
||||
IN_SaveConfig (config);
|
||||
Cvar_SaveConfig (config);
|
||||
IN_SaveConfig (config);
|
||||
|
||||
const char *path = va (0, "%s/quakeforge.cfg", qfs_gamedir->dir.def);
|
||||
QFile *f = QFS_WOpen (path, 0);
|
||||
|
@ -1543,8 +1543,8 @@ Host_ReadConfiguration (const char *cfg_name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
IN_LoadConfig (config);
|
||||
Cvar_LoadConfig (config);
|
||||
IN_LoadConfig (config);
|
||||
|
||||
PL_Free (config);
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue