aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/languagehooks.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-09 00:19:39 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-09 00:19:39 +0000
commit2d31b6857683719e38d05052a11e1eff67807df9 (patch)
treec1353ce1838ec64b32f2ca6b951c59d827fcacc1 /NorthstarDedicatedTest/languagehooks.cpp
parentbd2d7e3deadb3d9142630ae633a17b02e2b09fff (diff)
parentf3f4a11cd26c737efad49e318ca7d1ef942d42c4 (diff)
downloadNorthstarLauncher-2d31b6857683719e38d05052a11e1eff67807df9.tar.gz
NorthstarLauncher-2d31b6857683719e38d05052a11e1eff67807df9.zip
Merge branch 'main' of https://github.com/R2Northstar/NorthstarLauncher
Diffstat (limited to 'NorthstarDedicatedTest/languagehooks.cpp')
-rw-r--r--NorthstarDedicatedTest/languagehooks.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/languagehooks.cpp b/NorthstarDedicatedTest/languagehooks.cpp
index 08bacaf9..0929b73d 100644
--- a/NorthstarDedicatedTest/languagehooks.cpp
+++ b/NorthstarDedicatedTest/languagehooks.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "languagehooks.h"
#include "gameutils.h"
+#include "dedicated.h"
#include <filesystem>
#include <regex>
@@ -104,6 +105,9 @@ char* GetGameLanguageHook()
void InitialiseTier0LanguageHooks(HMODULE baseAddress)
{
+ if (IsDedicated())
+ return;
+
HookEnabler hook;
ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0xF560, &GetGameLanguageHook, reinterpret_cast<LPVOID*>(&GetGameLanguageOriginal));
} \ No newline at end of file