mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[cvar] Preserve cvars loaded from config files
This restores the equivalent functionality that seta in config.cfg provided (no more losing my volume setting after using -nosound).
This commit is contained in:
parent
e0497c7fff
commit
9d4017885f
1 changed files with 4 additions and 0 deletions
|
@ -380,6 +380,10 @@ Cvar_LoadConfig (plitem_t *config)
|
|||
cvar_t *var = Cvar_FindVar (cvar_name);
|
||||
if (var) {
|
||||
Cvar_Set (var, value);
|
||||
Cvar_SetFlags (var, var->flags | CVAR_ARCHIVE);
|
||||
} else {
|
||||
Cvar_Get (cvar_name, value, CVAR_USER_CREATED | CVAR_ARCHIVE,
|
||||
0, USER_CVAR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue