[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:
Bill Currie 2021-11-16 08:48:35 +09:00
parent b80c19bd77
commit 1868fe7404

View file

@ -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;