aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dedicated/dedicatedlogtoclient.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2023-02-22 23:08:44 +0000
committerGitHub <noreply@github.com>2023-02-22 23:08:44 +0000
commit6aaac4cd452878acc59d9748bcd2d0e072d2a432 (patch)
treeea1d643962b2740d9bd5ec1480666a42c01b15b7 /NorthstarDLL/dedicated/dedicatedlogtoclient.h
parent8468f509d4ede30e0c457db4448c83909464e83c (diff)
downloadNorthstarLauncher-6aaac4cd452878acc59d9748bcd2d0e072d2a432.tar.gz
NorthstarLauncher-6aaac4cd452878acc59d9748bcd2d0e072d2a432.zip
Implement `dedi_sendPrintsToClient` (#418)
* add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again * implement dedi_sendPrintsToClient * update formatting
Diffstat (limited to 'NorthstarDLL/dedicated/dedicatedlogtoclient.h')
-rw-r--r--NorthstarDLL/dedicated/dedicatedlogtoclient.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/NorthstarDLL/dedicated/dedicatedlogtoclient.h b/NorthstarDLL/dedicated/dedicatedlogtoclient.h
new file mode 100644
index 00000000..16f1e584
--- /dev/null
+++ b/NorthstarDLL/dedicated/dedicatedlogtoclient.h
@@ -0,0 +1,11 @@
+#pragma once
+#include "logging/logging.h"
+#include "core/convar/convar.h"
+
+class DedicatedServerLogToClientSink : public CustomSink
+{
+ protected:
+ void custom_sink_it_(const custom_log_msg& msg);
+ void sink_it_(const spdlog::details::log_msg& msg) override;
+ void flush_() override;
+};