diff options
author | HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> | 2022-01-16 13:12:50 +0300 |
---|---|---|
committer | HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> | 2022-01-16 13:12:50 +0300 |
commit | 8e9338805062f53be1135d49b6021bd3ab8a220f (patch) | |
tree | 6c56076795299c601ed6afae5bac973b61585774 /NorthstarDedicatedTest/languagehooks.cpp | |
parent | 4f0e396e9774dad1eb03aa54f65c64da4b0e3a60 (diff) | |
parent | d4d4e489e4a1435e1df3cd1a1e3666e7ae713829 (diff) | |
download | NorthstarLauncher-8e9338805062f53be1135d49b6021bd3ab8a220f.tar.gz NorthstarLauncher-8e9338805062f53be1135d49b6021bd3ab8a220f.zip |
merge with upstream
Diffstat (limited to 'NorthstarDedicatedTest/languagehooks.cpp')
-rw-r--r-- | NorthstarDedicatedTest/languagehooks.cpp | 4 |
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 |