From 0ff421d0017f3039e698c51452cd01658b7328fb Mon Sep 17 00:00:00 2001
From: James R <justsomejames2@gmail.com>
Date: Wed, 11 Dec 2019 22:10:22 -0800
Subject: [PATCH] Move I_ShutdownConsole to I_ShutdownSystem

---
 src/sdl/i_system.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c
index 13fb25bea3..03eeb634f8 100644
--- a/src/sdl/i_system.c
+++ b/src/sdl/i_system.c
@@ -2169,7 +2169,6 @@ void I_Quit(void)
 	if (quiting) goto death;
 	SDLforceUngrabMouse();
 	quiting = SDL_FALSE;
-	I_ShutdownConsole();
 	M_SaveConfig(NULL); //save game config, cvars..
 #ifndef NONET
 	D_SaveBan(); // save the ban list
@@ -2287,8 +2286,6 @@ void I_Error(const char *error, ...)
 	I_OutputMsg("\nI_Error(): %s\n", buffer);
 	// ---
 
-	I_ShutdownConsole();
-
 	M_SaveConfig(NULL); // save game config, cvars..
 #ifndef NONET
 	D_SaveBan(); // save the ban list
@@ -2388,6 +2385,8 @@ void I_ShutdownSystem(void)
 {
 	INT32 c;
 
+	I_ShutdownConsole();
+
 	for (c = MAX_QUIT_FUNCS-1; c >= 0; c--)
 		if (quit_funcs[c])
 			(*quit_funcs[c])();
-- 
GitLab