- Replicate GZDoom fix on POSIX systems to ensure GameConfig global is initialised before trying to load the ENGINERES file.

* Same fix as 0f0b4b7620.
This commit is contained in:
Mitchell Richters 2022-07-24 20:11:00 +10:00
parent e9fd96fd20
commit 8fb4549998

View file

@ -957,6 +957,8 @@ int RunGame()
{
GameStartupInfo.FgColor = 0xffffff;
G_LoadConfig();
auto wad = BaseFileSearch(ENGINERES_FILE, NULL, true, GameConfig);
if (wad == NULL)
{
@ -979,7 +981,6 @@ int RunGame()
}
I_DetectOS();
userConfig.ProcessOptions();
G_LoadConfig();
GetGames();
auto usedgroups = SetupGame();