Skip to content

Commit

Permalink
fix: fix build error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mlugg committed Jun 1, 2021
1 parent b7bf9f3 commit 7803632
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/Features/Hud/Hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <algorithm>
#include <cstdio>
#include <map>
#include <optional>

#include "Features/Session.hpp"
#include "Features/Timer/PauseTimer.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ConsoleListener::ConsoleListener(std::function<void (const char *)> 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) {
Expand Down
16 changes: 8 additions & 8 deletions src/Utils/SDK.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 7803632

Please sign in to comment.