]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Move Sys_InitConsole to Con_Init
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Jun 2020 15:15:22 +0000 (15:15 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Jun 2020 15:15:22 +0000 (15:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12716 d7cf8633-e32d-0410-b094-e92efae38249

console.c
host.c

index 45509faaa1a30341dff6f2be6afb64ca86de7cdf..72563d25757a275a6075055996acf22f9c4fd878 100644 (file)
--- a/console.c
+++ b/console.c
@@ -910,6 +910,9 @@ void Con_Init (void)
        Cmd_AddCommand(CMD_SHARED, "condump", Con_ConDump_f, "output console history to a file (see also log_file)");
 
        con_initialized = true;
+       // initialize console window (only used by sys_win.c)
+       Sys_InitConsole();
+       
        Con_DPrint("Console initialized.\n");
 }
 
diff --git a/host.c b/host.c
index 301ea8ea8b5efb87e63b317a2ba41f8c1bbb1deb..6265bbc91fbab63199a8ac8c32268660ea441379 100644 (file)
--- a/host.c
+++ b/host.c
@@ -1225,9 +1225,6 @@ static void Host_Init (void)
        Sys_Init_Commands();
        COM_Init_Commands();
 
-       // initialize console window (only used by sys_win.c)
-       Sys_InitConsole();
-
        // initialize filesystem (including fs_basedir, fs_gamedir, -game, scr_screenshot_name)
        FS_Init();