aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dllmain.cpp
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-05-13 01:53:22 +0200
committerGitHub <noreply@github.com>2022-05-13 01:53:22 +0200
commitd333eabc1bc7f8f29c3e5ccd13b62997235285c4 (patch)
tree50222e52d13d78cfd9595d0dddc664e68c0f3708 /NorthstarDedicatedTest/dllmain.cpp
parent0c8994686185fe04e6a6748e5808df17aa9214a4 (diff)
downloadNorthstarLauncher-d333eabc1bc7f8f29c3e5ccd13b62997235285c4.tar.gz
NorthstarLauncher-d333eabc1bc7f8f29c3e5ccd13b62997235285c4.zip
Block `emit` command when sv_cheats is disabled (#170)
Diffstat (limited to 'NorthstarDedicatedTest/dllmain.cpp')
-rw-r--r--NorthstarDedicatedTest/dllmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp
index fc403e95..62094b4e 100644
--- a/NorthstarDedicatedTest/dllmain.cpp
+++ b/NorthstarDedicatedTest/dllmain.cpp
@@ -51,6 +51,7 @@
#include "rapidjson/writer.h"
#include "rapidjson/error/en.h"
#include "ExploitFixes.h"
+#include "emit_blocker.h"
typedef void (*initPluginFuncPtr)(void* getPluginObject);
@@ -287,6 +288,7 @@ bool InitialiseNorthstar()
// activate exploit fixes
AddDllLoadCallback("server.dll", ExploitFixes::LoadCallback);
+ AddDllLoadCallback("server.dll", InitialiseServerEmit_Blocker);
// run callbacks for any libraries that are already loaded by now
CallAllPendingDLLLoadCallbacks();