always console for windows Debug builds

This commit is contained in:
withmorten 2021-02-15 14:27:35 +01:00
parent 5ce5000b14
commit a76c962aa3
2 changed files with 4 additions and 0 deletions

View File

@ -1508,7 +1508,9 @@ WinMain(HINSTANCE instance,
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
#ifndef MASTER
#ifndef DEBUG
if (strstr(cmdLine, "-console"))
#endif
{
AllocConsole();
freopen("CONIN$", "r", stdin);

View File

@ -2019,7 +2019,9 @@ WinMain(HINSTANCE instance,
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
#ifndef MASTER
#ifndef DEBUG
if (strstr(cmdLine, "-console"))
#endif
{
AllocConsole();
freopen("CONIN$", "r", stdin);