Tubio/Tubio/ConsoleManager.h
Leon Etienne (ubuntu wsl) 6416e31966 Fixed hide/show console
2020-09-27 15:47:53 +02:00

33 lines
577 B
C++

#pragma once
#include "XGConfig.h"
#include "Logger.h"
#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
};