aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modlocalisation.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-26 01:24:13 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-26 01:24:13 +0100
commite98fc31a93dfc9a14db7bb5510d25df0226d6fd3 (patch)
tree0a14184023e46394ee7bc83846c4466f7e3f14c9 /NorthstarDedicatedTest/modlocalisation.cpp
parentf083706eb05a22ec166d8e29b565f93785ad3cb0 (diff)
downloadNorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.tar.gz
NorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.zip
add CommandLine() and Cbuf_Execute
Diffstat (limited to 'NorthstarDedicatedTest/modlocalisation.cpp')
-rw-r--r--NorthstarDedicatedTest/modlocalisation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/modlocalisation.cpp b/NorthstarDedicatedTest/modlocalisation.cpp
index 25c9e19f..d8168d0c 100644
--- a/NorthstarDedicatedTest/modlocalisation.cpp
+++ b/NorthstarDedicatedTest/modlocalisation.cpp
@@ -2,6 +2,7 @@
#include "modlocalisation.h"
#include "hookutils.h"
#include "modmanager.h"
+#include "dedicated.h"
typedef bool(*AddLocalisationFileType)(void* g_pVguiLocalize, const char* path, const char* pathId, char unknown);
AddLocalisationFileType AddLocalisationFile;
@@ -31,6 +32,9 @@ bool AddLocalisationFileHook(void* g_pVguiLocalize, const char* path, const char
void InitialiseModLocalisation(HMODULE baseAddress)
{
+ if (IsDedicated())
+ return;
+
HookEnabler hook;
ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x6D80, AddLocalisationFileHook, reinterpret_cast<LPVOID*>(&AddLocalisationFile));
} \ No newline at end of file