diff --git a/src/d_main.cpp b/src/d_main.cpp index f0f42a9fc3..869dce80b8 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2284,6 +2284,8 @@ void D_DoomMain (void) int argcount; FIWadManager *iwad_man; const char *batchout = Args->CheckValue("-errorlog"); + + C_InitConsole(80*8, 25*8, false); // +logfile gets checked too late to catch the full startup log in the logfile so do some extra check for it here. FString logfile = Args->TakeValue("+logfile"); diff --git a/src/posix/cocoa/i_main.mm b/src/posix/cocoa/i_main.mm index 90e03267f9..bcf1088a54 100644 --- a/src/posix/cocoa/i_main.mm +++ b/src/posix/cocoa/i_main.mm @@ -172,8 +172,6 @@ void OriginalMainTry(int argc, char** argv) progdir = [[exePath stringByDeletingLastPathComponent] UTF8String]; progdir += "/"; - C_InitConsole(80 * 8, 25 * 8, false); - I_DetectOS(); D_DoomMain(); } diff --git a/src/posix/sdl/i_main.cpp b/src/posix/sdl/i_main.cpp index d5a5c68b18..9de36729e3 100644 --- a/src/posix/sdl/i_main.cpp +++ b/src/posix/sdl/i_main.cpp @@ -222,7 +222,6 @@ int main (int argc, char **argv) } I_StartupJoysticks(); - C_InitConsole (80*8, 25*8, false); D_DoomMain (); } catch (std::exception &error) diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index e8c55f0434..da686e53fb 100644 --- a/src/win32/i_main.cpp +++ b/src/win32/i_main.cpp @@ -978,9 +978,7 @@ void DoMain (HINSTANCE hInstance) CoInitialize (NULL); atexit (UnCOM); - - C_InitConsole (((WinWidth / 8) + 2) * 8, (WinHeight / 12) * 8, false); - + I_DetectOS (); D_DoomMain (); }