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 !1347) (Resolves #412) Closes #412 See merge request STJr/SRB2!1357
This commit is contained in:
commit
b83de902a5
3 changed files with 20 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue