diff options
author | Northstar <northstar@northstar.tf> | 2023-12-20 15:20:02 +0100 |
---|---|---|
committer | Northstar <northstar@northstar.tf> | 2023-12-20 15:20:02 +0100 |
commit | 1e5c4a7f6a734352f802c82b293fe3b215e3a5b2 (patch) | |
tree | b1a5484f3839e1b0c2a9169856a51c16cf255180 /NorthstarDLL/logging | |
parent | 714282b52039b12225c8348ef7346d092676ffb1 (diff) | |
download | NorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.tar.gz NorthstarLauncher-1e5c4a7f6a734352f802c82b293fe3b215e3a5b2.zip |
Format project
Diffstat (limited to 'NorthstarDLL/logging')
-rw-r--r-- | NorthstarDLL/logging/crashhandler.h | 4 | ||||
-rw-r--r-- | NorthstarDLL/logging/logging.h | 10 | ||||
-rw-r--r-- | NorthstarDLL/logging/loghooks.cpp | 2 | ||||
-rw-r--r-- | NorthstarDLL/logging/sourceconsole.h | 12 |
4 files changed, 14 insertions, 14 deletions
diff --git a/NorthstarDLL/logging/crashhandler.h b/NorthstarDLL/logging/crashhandler.h index e18de948..c059a8ca 100644 --- a/NorthstarDLL/logging/crashhandler.h +++ b/NorthstarDLL/logging/crashhandler.h @@ -7,7 +7,7 @@ //----------------------------------------------------------------------------- class CCrashHandler { - public: +public: CCrashHandler(); ~CCrashHandler(); @@ -77,7 +77,7 @@ class CCrashHandler //----------------------------------------------------------------------------- void WriteMinidump(); - private: +private: PVOID m_hExceptionFilter; EXCEPTION_POINTERS* m_pExceptionInfos; diff --git a/NorthstarDLL/logging/logging.h b/NorthstarDLL/logging/logging.h index af4b506c..5056af27 100644 --- a/NorthstarDLL/logging/logging.h +++ b/NorthstarDLL/logging/logging.h @@ -13,7 +13,7 @@ class ColoredLogger; struct custom_log_msg : spdlog::details::log_msg { - public: +public: custom_log_msg(ColoredLogger* origin, spdlog::details::log_msg msg) : origin(origin), spdlog::details::log_msg(msg) {} ColoredLogger* origin; @@ -21,7 +21,7 @@ struct custom_log_msg : spdlog::details::log_msg class CustomSink : public spdlog::sinks::base_sink<std::mutex> { - public: +public: void custom_log(const custom_log_msg& msg); virtual void custom_sink_it_(const custom_log_msg& msg) { @@ -31,7 +31,7 @@ class CustomSink : public spdlog::sinks::base_sink<std::mutex> class ColoredLogger : public spdlog::logger { - public: +public: std::string ANSIColor; SourceColor SRCColor; @@ -117,7 +117,7 @@ static const char* level_names[] {"trac", "dbug", "info", "warn", "errr", "crit" // spdlog logger, for cool colour things class ExternalConsoleSink : public CustomSink { - private: +private: std::map<spdlog::level::level_enum, std::string> m_LogColours = { {spdlog::level::trace, NS::Colors::TRACE.ToANSIColor()}, {spdlog::level::debug, NS::Colors::DEBUG.ToANSIColor()}, @@ -129,7 +129,7 @@ class ExternalConsoleSink : public CustomSink std::string default_color = "\033[39;49m"; - protected: +protected: void sink_it_(const spdlog::details::log_msg& msg) override; void custom_sink_it_(const custom_log_msg& msg); void flush_() override; diff --git a/NorthstarDLL/logging/loghooks.cpp b/NorthstarDLL/logging/loghooks.cpp index 41e1bce2..7efb5b99 100644 --- a/NorthstarDLL/logging/loghooks.cpp +++ b/NorthstarDLL/logging/loghooks.cpp @@ -24,7 +24,7 @@ enum class TextMsgPrintType_t class ICenterPrint { - public: +public: virtual void ctor() = 0; virtual void Clear(void) = 0; virtual void ColorPrint(int r, int g, int b, int a, wchar_t* text) = 0; diff --git a/NorthstarDLL/logging/sourceconsole.h b/NorthstarDLL/logging/sourceconsole.h index 3abcc470..44d73843 100644 --- a/NorthstarDLL/logging/sourceconsole.h +++ b/NorthstarDLL/logging/sourceconsole.h @@ -5,14 +5,14 @@ class EditablePanel { - public: +public: virtual ~EditablePanel() = 0; unsigned char unknown[0x2B0]; }; class IConsoleDisplayFunc { - public: +public: virtual void ColorPrint(const SourceColor& clr, const char* pMessage) = 0; virtual void Print(const char* pMessage) = 0; virtual void DPrint(const char* pMessage) = 0; @@ -24,7 +24,7 @@ class CConsolePanel : public EditablePanel, public IConsoleDisplayFunc class CConsoleDialog { - public: +public: struct VTable { void* unknown[298]; @@ -38,7 +38,7 @@ class CConsoleDialog class CGameConsole { - public: +public: virtual ~CGameConsole() = 0; // activates the console, makes it visible and brings it to the foreground @@ -66,7 +66,7 @@ extern SourceInterface<CGameConsole>* g_pSourceGameConsole; // spdlog logger class SourceConsoleSink : public CustomSink { - private: +private: std::map<spdlog::level::level_enum, SourceColor> m_LogColours = { {spdlog::level::trace, NS::Colors::TRACE.ToSourceColor()}, {spdlog::level::debug, NS::Colors::DEBUG.ToSourceColor()}, @@ -76,7 +76,7 @@ class SourceConsoleSink : public CustomSink {spdlog::level::critical, NS::Colors::CRIT.ToSourceColor()}, {spdlog::level::off, NS::Colors::OFF.ToSourceColor()}}; - protected: +protected: void custom_sink_it_(const custom_log_msg& msg); void sink_it_(const spdlog::details::log_msg& msg) override; void flush_() override; |