- fixed potential resetting of bindings

Quitting GZDoom during initialization could lead to unbound game controls

https://forum.zdoom.org/viewtopic.php?t=65945
This commit is contained in:
alexey.lysiuk 2019-09-25 12:21:08 +03:00
parent cf9150b6ca
commit 6ab9991e8d

View file

@ -75,7 +75,7 @@ FGameConfigFile::FGameConfigFile ()
FString pathname;
OkayToWrite = false; // Do not allow saving of the config before DoGameSetup()
OkayToWrite = false; // Do not allow saving of the config before DoKeySetup()
bModSetup = false;
pathname = GetConfigPath (true);
ChangePathName (pathname);
@ -569,7 +569,6 @@ void FGameConfigFile::DoGameSetup (const char *gamename)
}
}
}
OkayToWrite = true;
}
// Moved from DoGameSetup so that it can happen after wads are loaded
@ -603,6 +602,7 @@ void FGameConfigFile::DoKeySetup(const char *gamename)
}
}
}
OkayToWrite = true;
}
// Like DoGameSetup(), but for mod-specific cvars.