*/
void SCR_BeginLoadingPlaque (void)
{
+ // save console log up to this point to log_file if it was set by configs
+ Log_Start();
+
Host_StartVideo();
S_StopAllSounds();
SCR_UpdateLoadingScreen();
// Dump the contents of the log queue into the log file and free it
if (logqueue != NULL)
{
- if (logfile != NULL && logq_ind != 0)
- FS_Write (logfile, logqueue, logq_ind);
- Mem_Free (logqueue);
+ unsigned char *temp = logqueue;
logqueue = NULL;
+ if (logfile != NULL && logq_ind != 0)
+ FS_Write (logfile, temp, logq_ind);
+ Mem_Free (temp);
logq_ind = 0;
logq_size = 0;
}
con_linewidth = 80;
con_totallines = CON_TEXTSIZE / con_linewidth;
- // Allocate a log queue
+ // Allocate a log queue, this will be freed after configs are parsed
logq_size = MAX_INPUTLINE;
logqueue = (unsigned char *)Mem_Alloc (tempmempool, logq_size);
logq_ind = 0;
Cbuf_Execute();
}
- // save console log up to this point to log_file if it was set by configs
- Log_Start();
-
// put up the loading image so the user doesn't stare at a black screen...
SCR_BeginLoadingPlaque();