0
0
Fork 0
mirror of https://git.do.srb2.org/STJr/SRB2.git synced 2025-03-21 10:21:49 +00:00

Merge branch 'less-console-text-draw' into 'next'

Pause the console refresh while startup wads are loading. (Competing with ) (Resolves )

Closes 

See merge request 
This commit is contained in:
sphere 2021-11-26 13:57:55 +00:00
commit b83de902a5
3 changed files with 20 additions and 0 deletions

View file

@ -484,6 +484,19 @@ void CON_Init(void)
Unlock_state();
}
}
void CON_StartRefresh(void)
{
if (con_startup)
con_refresh = true;
}
void CON_StopRefresh(void)
{
if (con_startup)
con_refresh = false;
}
// Console input initialization
//
static void CON_InputInit(void)

View file

@ -16,6 +16,9 @@
void CON_Init(void);
void CON_StartRefresh(void);
void CON_StopRefresh(void);
boolean CON_Responder(event_t *ev);
#ifdef HAVE_THREADS

View file

@ -1358,10 +1358,14 @@ void D_SRB2Main(void)
I_RegisterSysCommands();
CON_StopRefresh(); // Temporarily stop refreshing the screen for wad loading
CONS_Printf("W_InitMultipleFiles(): Adding extra PWADs.\n");
W_InitMultipleFiles(startuppwads);
D_CleanFile(startuppwads);
CON_StartRefresh(); // Restart the refresh!
CONS_Printf("HU_LoadGraphics()...\n");
HU_LoadGraphics();