- Call C_DeinitConsole in I_Quit so that we can be sure that Printf will work for as long as possible. Otherwise ZDoom will crash when ending a demo recording.

This commit is contained in:
Braden Obrzut 2014-07-16 18:59:49 -04:00
parent bd5bf2a40a
commit b6bbdf6195
3 changed files with 4 additions and 2 deletions

View File

@ -1987,8 +1987,6 @@ static void D_DoomInit()
Args->CollectFiles("-playdemo", ".lmp"); Args->CollectFiles("-playdemo", ".lmp");
Args->CollectFiles("-file", NULL); // anything left goes after -file Args->CollectFiles("-file", NULL); // anything left goes after -file
atterm (C_DeinitConsole);
gamestate = GS_STARTUP; gamestate = GS_STARTUP;
SetLanguageIDs (); SetLanguageIDs ();

View File

@ -353,6 +353,8 @@ void I_Quit (void)
if (demorecording) if (demorecording)
G_CheckDemoStatus(); G_CheckDemoStatus();
C_DeinitConsole();
} }

View File

@ -781,6 +781,8 @@ void I_Quit()
{ {
G_CheckDemoStatus(); G_CheckDemoStatus();
} }
C_DeinitConsole();
} }