- fix https://github.com/ZDoom/gzdoom/issues/2415 - wait to call V_Init2() until after exec commands are processed

This commit is contained in:
Rachael Alexanderson 2024-02-26 13:55:54 -05:00
parent 49cac88c12
commit 47be9c1e54
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -3107,7 +3107,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
V_InitScreenSize();
// This allocates a dummy framebuffer as a stand-in until V_Init2 is called.
V_InitScreen();
V_Init2();
}
SavegameFolder = iwad_info->Autoname;
gameinfo.gametype = iwad_info->gametype;
@ -3244,6 +3243,9 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
exec = NULL;
}
if (!restart)
V_Init2();
// [RH] Initialize localizable strings.
GStrings.LoadStrings(fileSystem, language);