sys: Enable logging colors on Windows, hide console

Console log can still be seen now when running ImHex through the console but the window won't pop up by default anymore
This commit is contained in:
WerWolv
2021-08-22 20:24:42 +02:00
parent 66f94a452d
commit 2362e7a11f
6 changed files with 37 additions and 16 deletions

View File

@@ -23,12 +23,7 @@ namespace hex {
void loop();
friend void *ImHexSettingsHandler_ReadOpenFn(ImGuiContext *ctx, ImGuiSettingsHandler *, const char *);
friend void ImHexSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler *handler, void *, const char* line);
friend void ImHexSettingsHandler_ApplyAll(ImGuiContext *ctx, ImGuiSettingsHandler *handler);
friend void ImHexSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler *handler, ImGuiTextBuffer *buf);
void setFont(const std::filesystem::path &font_path);
static void initNative();
private:
void setupNativeWindow();
@@ -47,6 +42,12 @@ namespace hex {
void deinitGLFW();
void deinitImGui();
friend void *ImHexSettingsHandler_ReadOpenFn(ImGuiContext *ctx, ImGuiSettingsHandler *, const char *);
friend void ImHexSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler *handler, void *, const char* line);
friend void ImHexSettingsHandler_WriteAll(ImGuiContext* ctx, ImGuiSettingsHandler *handler, ImGuiTextBuffer *buf);
void setFont(const std::filesystem::path &font_path);
GLFWwindow* m_window = nullptr;
float m_globalScale = 1.0F, m_fontScale = 1.0F;