From 78036327b0dfb1ce803e345dc0717029ea6672f7 Mon Sep 17 00:00:00 2001 From: mlugg Date: Tue, 1 Jun 2021 19:17:21 +0100 Subject: [PATCH] fix: fix build error on Windows --- src/Features/Hud/Hud.cpp | 1 + src/Modules/Console.cpp | 2 +- src/Utils/SDK.hpp | 16 ++++++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Features/Hud/Hud.cpp b/src/Features/Hud/Hud.cpp index 41551bce2..ec43d62d9 100644 --- a/src/Features/Hud/Hud.cpp +++ b/src/Features/Hud/Hud.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include "Features/Session.hpp" #include "Features/Timer/PauseTimer.hpp" diff --git a/src/Modules/Console.cpp b/src/Modules/Console.cpp index 4ef638e5f..f35bc9886 100644 --- a/src/Modules/Console.cpp +++ b/src/Modules/Console.cpp @@ -37,7 +37,7 @@ ConsoleListener::ConsoleListener(std::function cbk) { console->LoggingSystem_PushLoggingState(false, false); console->LoggingSystem_RegisterLoggingListener(this); - console->LoggingSystem_SetChannelSpewLevelByTag("Console", LoggingSeverity::MESSAGE); + console->LoggingSystem_SetChannelSpewLevelByTag("Console", LSEV_MESSAGE); } void ConsoleListener::Log(const LoggingContext *ctx, const char *msg) { diff --git a/src/Utils/SDK.hpp b/src/Utils/SDK.hpp index e38e12d5a..f69abff11 100644 --- a/src/Utils/SDK.hpp +++ b/src/Utils/SDK.hpp @@ -1341,19 +1341,19 @@ class bf_read const uint32_t *m_pData; }; -enum class LoggingSeverity +typedef enum { - MESSAGE, - WARNING, - ASSERT, - ERROR, -}; + LSEV_MESSAGE, + LSEV_WARNING, + LSEV_ASSERT, + LSEV_ERROR, +} LoggingSeverity; -enum LoggingChannelFlags +typedef enum { LCF_CONSOLE_ONLY = 0x1, LCF_DO_NOT_ECHO = 0x2, -}; +} LoggingChannelFlags; struct LoggingContext {