aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modlocalisation.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-11 23:35:40 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-11 23:35:40 +0100
commitc5cf48bba33159fc268904688f29ed20c14b11b3 (patch)
tree88aa6d01bf204f93ece63e50d3f1b9b4ca263094 /NorthstarDedicatedTest/modlocalisation.cpp
parentcb386ef4857f5a0f13998d1813cfa7d57a00af7d (diff)
downloadNorthstarLauncher-c5cf48bba33159fc268904688f29ed20c14b11b3.tar.gz
NorthstarLauncher-c5cf48bba33159fc268904688f29ed20c14b11b3.zip
add server script early persistence writes
Diffstat (limited to 'NorthstarDedicatedTest/modlocalisation.cpp')
-rw-r--r--NorthstarDedicatedTest/modlocalisation.cpp5
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;