mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
open the main game window earlier in the startup procedure.
This commit is contained in:
parent
4b3cfc6ab7
commit
8cec6094d2
1 changed files with 8 additions and 11 deletions
|
@ -3096,6 +3096,13 @@ static int FileSystemPrintf(FSMessageLevel level, const char* fmt, ...)
|
||||||
|
|
||||||
static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allwads, std::vector<std::string>& pwads)
|
static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allwads, std::vector<std::string>& pwads)
|
||||||
{
|
{
|
||||||
|
if (!restart)
|
||||||
|
{
|
||||||
|
V_InitScreenSize();
|
||||||
|
// This allocates a dummy framebuffer as a stand-in until V_Init2 is called.
|
||||||
|
V_InitScreen();
|
||||||
|
V_Init2();
|
||||||
|
}
|
||||||
SavegameFolder = iwad_info->Autoname;
|
SavegameFolder = iwad_info->Autoname;
|
||||||
gameinfo.gametype = iwad_info->gametype;
|
gameinfo.gametype = iwad_info->gametype;
|
||||||
gameinfo.flags = iwad_info->flags;
|
gameinfo.flags = iwad_info->flags;
|
||||||
|
@ -3255,16 +3262,7 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
|
||||||
if (!batchrun) Printf ("V_Init: allocate screen.\n");
|
if (!batchrun) Printf ("V_Init: allocate screen.\n");
|
||||||
if (!restart)
|
if (!restart)
|
||||||
{
|
{
|
||||||
V_InitScreenSize();
|
if (StartScreen != nullptr) StartScreen->Render();
|
||||||
// This allocates a dummy framebuffer as a stand-in until V_Init2 is called.
|
|
||||||
V_InitScreen ();
|
|
||||||
|
|
||||||
if (StartScreen != nullptr)
|
|
||||||
{
|
|
||||||
V_Init2();
|
|
||||||
StartScreen->Render();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3500,7 +3498,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
|
||||||
return 1337; // special exit
|
return 1337; // special exit
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StartScreen == nullptr) V_Init2();
|
|
||||||
if (StartScreen)
|
if (StartScreen)
|
||||||
{
|
{
|
||||||
StartScreen->Progress(max_progress); // advance progress bar to the end.
|
StartScreen->Progress(max_progress); // advance progress bar to the end.
|
||||||
|
|
Loading…
Reference in a new issue