mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-09 01:01:05 +00:00
fix gzdoom.pk3 not found error
Move the initialization before BaseFileSearch is called, otherwise GameConfig is used not initialized and it doesn't find the gzdoom.pk3 file. GameConfig used uninitalized was spotted by @LoneFox78.
This commit is contained in:
parent
937c22ff14
commit
0f0b4b7620
1 changed files with 2 additions and 2 deletions
|
@ -3534,6 +3534,8 @@ static int D_DoomMain_Internal (void)
|
|||
|
||||
std::set_new_handler(NewFailure);
|
||||
const char *batchout = Args->CheckValue("-errorlog");
|
||||
|
||||
D_DoomInit();
|
||||
|
||||
// [RH] Make sure zdoom.pk3 is always loaded,
|
||||
// as it contains magic stuff we need.
|
||||
|
@ -3568,8 +3570,6 @@ static int D_DoomMain_Internal (void)
|
|||
|
||||
Printf("%s version %s\n", GAMENAME, GetVersionString());
|
||||
|
||||
D_DoomInit();
|
||||
|
||||
extern void D_ConfirmSendStats();
|
||||
D_ConfirmSendStats();
|
||||
|
||||
|
|
Loading…
Reference in a new issue