serialize cvars

This commit is contained in:
Ricardo Luís Vaz Silva 2023-11-25 22:27:28 -03:00 committed by Rachael Alexanderson
commit aed85a25a2
9 changed files with 115 additions and 5 deletions

View file

@ -1981,8 +1981,12 @@ void C_SerializeCVars(FSerializer& arc, const char* label, uint32_t filter)
}
void SetupLoadingCVars();
void FinishLoadingCVars();
void G_DoLoadGame ()
{
SetupLoadingCVars();
bool hidecon;
if (gameaction != ga_autoloadgame)
@ -2125,6 +2129,7 @@ void G_DoLoadGame ()
// load a base level
bool demoplaybacksave = demoplayback;
G_InitNew(map.GetChars(), false);
FinishLoadingCVars();
demoplayback = demoplaybacksave;
savegamerestore = false;