diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-11 23:35:40 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-11 23:35:40 +0100 |
commit | c5cf48bba33159fc268904688f29ed20c14b11b3 (patch) | |
tree | 88aa6d01bf204f93ece63e50d3f1b9b4ca263094 /NorthstarDedicatedTest/modlocalisation.cpp | |
parent | cb386ef4857f5a0f13998d1813cfa7d57a00af7d (diff) | |
download | NorthstarLauncher-c5cf48bba33159fc268904688f29ed20c14b11b3.tar.gz NorthstarLauncher-c5cf48bba33159fc268904688f29ed20c14b11b3.zip |
add server script early persistence writes
Diffstat (limited to 'NorthstarDedicatedTest/modlocalisation.cpp')
-rw-r--r-- | NorthstarDedicatedTest/modlocalisation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/modlocalisation.cpp b/NorthstarDedicatedTest/modlocalisation.cpp index d8168d0c..91f0416a 100644 --- a/NorthstarDedicatedTest/modlocalisation.cpp +++ b/NorthstarDedicatedTest/modlocalisation.cpp @@ -22,8 +22,9 @@ bool AddLocalisationFileHook(void* g_pVguiLocalize, const char* path, const char loadModLocalisationFiles = false; for (Mod* mod : g_ModManager->m_loadedMods) - for (std::string& localisationFile : mod->LocalisationFiles) - AddLocalisationFile(g_pVguiLocalize, localisationFile.c_str(), pathId, unknown); + if (mod->Enabled) + for (std::string& localisationFile : mod->LocalisationFiles) + AddLocalisationFile(g_pVguiLocalize, localisationFile.c_str(), pathId, unknown); loadModLocalisationFiles = true; |