Some progress, not rly sure what

This commit is contained in:
Leon Etienne (ubuntu wsl)
2020-09-27 13:06:04 +02:00
parent 96d11c80f3
commit cdd8eded30
12 changed files with 281 additions and 35 deletions

35
Tubio/ConsoleManager.h Normal file
View File

@@ -0,0 +1,35 @@
#pragma once
#include "XGConfig.h"
#include "Logger.h"
#undef _WIN
#ifdef _WIN
#include <Windows.h>
#endif
class ConsoleManager
{
public:
static void PrePreInit();
static void PreInit();
static void PostInit();
static void PostExit();
static bool ShowConsole();
static bool HideConsole();
static bool IsConsoleShown();
// Returns whether or not the current platform supports hiding the console
static bool IsSupported();
private:
static bool isConsoleActive;
static Logging::Logger* log;
#ifdef _WIN
static HWND consoleHandle;
#endif
};