mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- moved the initial C_InitConsole call into D_DoomMain
The only difference here were the size values on Windows but for this initial call they have been useless for a long time. When this code was written the console buffer still had a fixed width that needed to be set before adding any text.
This commit is contained in:
parent
f0d68efb88
commit
5293b8b281
4 changed files with 3 additions and 6 deletions
|
@ -2332,6 +2332,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");
|
||||
|
|
|
@ -158,8 +158,6 @@ void OriginalMainTry(int argc, char** argv)
|
|||
progdir = [[exePath stringByDeletingLastPathComponent] UTF8String];
|
||||
progdir += "/";
|
||||
|
||||
C_InitConsole(80 * 8, 25 * 8, false);
|
||||
|
||||
I_DetectOS();
|
||||
D_DoomMain();
|
||||
}
|
||||
|
|
|
@ -223,7 +223,6 @@ int main (int argc, char **argv)
|
|||
}
|
||||
|
||||
I_StartupJoysticks();
|
||||
C_InitConsole (80*8, 25*8, false);
|
||||
D_DoomMain ();
|
||||
}
|
||||
catch (std::exception &error)
|
||||
|
|
|
@ -998,9 +998,7 @@ void DoMain (HINSTANCE hInstance)
|
|||
|
||||
CoInitialize (NULL);
|
||||
atexit (UnCOM);
|
||||
|
||||
C_InitConsole (((WinWidth / 8) + 2) * 8, (WinHeight / 12) * 8, false);
|
||||
|
||||
|
||||
I_DetectOS ();
|
||||
D_DoomMain ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue