Fixed hide/show console

This commit is contained in:
Leon Etienne (ubuntu wsl) 2020-09-27 15:47:53 +02:00
parent 5982019351
commit 6416e31966
2 changed files with 0 additions and 9 deletions

View File

@ -3,12 +3,6 @@
void ConsoleManager::PrePreInit() void ConsoleManager::PrePreInit()
{ {
#ifdef _WIN #ifdef _WIN
FreeConsole();
AllocConsole();
FILE* dummy;
freopen_s(&dummy, "CONOUT$", "wt", stdout);
freopen_s(&dummy, "CONOUT$", "wt", stderr);
freopen_s(&dummy, "CONOUT$", "rt", stdin);
consoleHandle = GetConsoleWindow(); consoleHandle = GetConsoleWindow();
#endif #endif
return; return;

View File

@ -2,9 +2,6 @@
#include "XGConfig.h" #include "XGConfig.h"
#include "Logger.h" #include "Logger.h"
#undef _WIN
#ifdef _WIN #ifdef _WIN
#include <Windows.h> #include <Windows.h>
#endif #endif