Fixed hide/show console
This commit is contained in:
@@ -3,12 +3,6 @@
|
||||
void ConsoleManager::PrePreInit()
|
||||
{
|
||||
#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();
|
||||
#endif
|
||||
return;
|
||||
|
@@ -2,9 +2,6 @@
|
||||
#include "XGConfig.h"
|
||||
#include "Logger.h"
|
||||
|
||||
#undef _WIN
|
||||
|
||||
|
||||
#ifdef _WIN
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user