Skip to content

Commit

Permalink
- Replicate GZDoom fix on POSIX systems to ensure GameConfig global…
Browse files Browse the repository at this point in the history
… is initialised before trying to load the `ENGINERES` file.

* Same fix as ZDoom/gzdoom@0f0b4b7.
  • Loading branch information
mjr4077au committed Jul 24, 2022
1 parent e9fd96f commit 8fb4549
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/core/gamecontrol.cpp
Expand Up @@ -957,6 +957,8 @@ int RunGame()
{
GameStartupInfo.FgColor = 0xffffff;

G_LoadConfig();

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

Expand Down

0 comments on commit 8fb4549

Please sign in to comment.