Skip to content
Snippets Groups Projects
Commit 9327e96e authored by Golden's avatar Golden
Browse files

Pause the console refresh while startup wads are loading.

parent 8c975837
No related branches found
No related tags found
1 merge request!1357Pause the console refresh while startup wads are loading. (Competing with !1347) (Resolves #412)
...@@ -484,6 +484,19 @@ void CON_Init(void) ...@@ -484,6 +484,19 @@ void CON_Init(void)
Unlock_state(); 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 // Console input initialization
// //
static void CON_InputInit(void) static void CON_InputInit(void)
......
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
void CON_Init(void); void CON_Init(void);
void CON_StartRefresh(void);
void CON_StopRefresh(void);
boolean CON_Responder(event_t *ev); boolean CON_Responder(event_t *ev);
#ifdef HAVE_THREADS #ifdef HAVE_THREADS
......
...@@ -1275,10 +1275,14 @@ void D_SRB2Main(void) ...@@ -1275,10 +1275,14 @@ void D_SRB2Main(void)
I_RegisterSysCommands(); I_RegisterSysCommands();
CON_StopRefresh(); // Temporarily stop refreshing the screen for wad loading
CONS_Printf("W_InitMultipleFiles(): Adding extra PWADs.\n"); CONS_Printf("W_InitMultipleFiles(): Adding extra PWADs.\n");
W_InitMultipleFiles(startuppwads); W_InitMultipleFiles(startuppwads);
D_CleanFile(startuppwads); D_CleanFile(startuppwads);
CON_StartRefresh(); // Restart the refresh!
CONS_Printf("HU_LoadGraphics()...\n"); CONS_Printf("HU_LoadGraphics()...\n");
HU_LoadGraphics(); HU_LoadGraphics();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment