Some progress, not rly sure what
This commit is contained in:
35
Tubio/ConsoleManager.h
Normal file
35
Tubio/ConsoleManager.h
Normal 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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user