aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dedicated/dedicated.cpp
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/dedicated.cpp
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/dedicated.cpp')
-rw-r--r--NorthstarDLL/dedicated/dedicated.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDLL/dedicated/dedicated.cpp b/NorthstarDLL/dedicated/dedicated.cpp
index 267fbe92..1aff0f34 100644
--- a/NorthstarDLL/dedicated/dedicated.cpp
+++ b/NorthstarDLL/dedicated/dedicated.cpp
@@ -1,4 +1,5 @@
#include "dedicated.h"
+#include "dedicatedlogtoclient.h"
#include "core/tier0.h"
#include "playlist.h"
#include "engine/r2engine.h"
@@ -226,6 +227,9 @@ ON_DLL_LOAD_DEDI_RELIESON("engine.dll", DedicatedServer, ServerPresence, (CModul
DedicatedConsoleServerPresence* presenceReporter = new DedicatedConsoleServerPresence;
g_pServerPresence->AddPresenceReporter(presenceReporter);
+ // setup dedicated printing to client
+ RegisterCustomSink(std::make_shared<DedicatedServerLogToClientSink>());
+
// Disable Quick Edit mode to reduce chance of user unintentionally hanging their server by selecting something.
if (!Tier0::CommandLine()->CheckParm("-bringbackquickedit"))
{