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