diff options
Diffstat (limited to 'NorthstarDedicatedTest/modlocalisation.cpp')
-rw-r--r-- | NorthstarDedicatedTest/modlocalisation.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/NorthstarDedicatedTest/modlocalisation.cpp b/NorthstarDedicatedTest/modlocalisation.cpp deleted file mode 100644 index ad01192d..00000000 --- a/NorthstarDedicatedTest/modlocalisation.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "pch.h" -#include "modmanager.h" - -AUTOHOOK_INIT() - -AUTOHOOK(AddLocalisationFile, localize.dll + 0x6D80, -bool,, (void* pVguiLocalize, const char* path, const char* pathId, char unknown), -{ - static bool bLoadModLocalisationFiles = true; - bool ret = AddLocalisationFile(pVguiLocalize, path, pathId, unknown); - - if (ret) - spdlog::info("Loaded localisation file {} successfully", path); - - if (!bLoadModLocalisationFiles) - return ret; - - bLoadModLocalisationFiles = false; - - for (Mod mod : g_pModManager->m_loadedMods) - if (mod.Enabled) - for (std::string& localisationFile : mod.LocalisationFiles) - AddLocalisationFile(pVguiLocalize, localisationFile.c_str(), pathId, unknown); - - bLoadModLocalisationFiles = true; - - return ret; -}) - -ON_DLL_LOAD_CLIENT("localize.dll", Localize, [](HMODULE baseAddress) -{ - AUTOHOOK_DISPATCH() -})
\ No newline at end of file |