diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-15 00:04:33 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-15 00:04:33 +0000 |
commit | 96aa95aede1fb1f3fde3d2c08728c37520bea4c2 (patch) | |
tree | 6ef9b43cab5e215a05fabf0bd197dc3a0593c525 /NorthstarDedicatedTest/clientchathooks.cpp | |
parent | 5df2346ba1414fd43d80fc2919c2f880b7f8aeaf (diff) | |
download | NorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.tar.gz NorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.zip |
move to using g_pCVar more
Diffstat (limited to 'NorthstarDedicatedTest/clientchathooks.cpp')
-rw-r--r-- | NorthstarDedicatedTest/clientchathooks.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/clientchathooks.cpp b/NorthstarDedicatedTest/clientchathooks.cpp index 74418c06..ca20b0dc 100644 --- a/NorthstarDedicatedTest/clientchathooks.cpp +++ b/NorthstarDedicatedTest/clientchathooks.cpp @@ -2,6 +2,7 @@ #include "clientchathooks.h" #include <rapidjson/document.h> #include "squirrel.h" +#include "dedicated.h" #include "serverchathooks.h" #include "localchatwriter.h" @@ -86,6 +87,9 @@ static SQRESULT SQ_ChatWriteLine(void* sqvm) void InitialiseClientChatHooks(HMODULE baseAddress) { + if (IsDedicated()) + return; + HookEnabler hook; ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x22E580, &CHudChat__AddGameLineHook, reinterpret_cast<LPVOID*>(&CHudChat__AddGameLine)); |