Fixed hide/show console
This commit is contained in:
parent
5982019351
commit
6416e31966
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user