aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index 14182017..05974d4e 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -225,16 +225,16 @@ void ModManager::LoadMods()
// register mod files
- if (fs::exists(mod->ModDirectory / "mod"))
+ if (fs::exists(mod->ModDirectory / MOD_OVERRIDE_DIR))
{
- for (fs::directory_entry file : fs::recursive_directory_iterator(mod->ModDirectory / "mod"))
+ for (fs::directory_entry file : fs::recursive_directory_iterator(mod->ModDirectory / MOD_OVERRIDE_DIR))
{
if (file.is_regular_file())
{
// super temp because it relies hard on load order
ModOverrideFile* modFile = new ModOverrideFile;
modFile->owningMod = mod;
- modFile->path = file.path().lexically_relative(mod->ModDirectory / "mod").lexically_normal();
+ modFile->path = file.path().lexically_relative(mod->ModDirectory / MOD_OVERRIDE_DIR).lexically_normal();
m_modFiles.push_back(modFile);
}
}
@@ -243,6 +243,15 @@ void ModManager::LoadMods()
}
+void ModManager::CompileAssetsForFile(const char* filename)
+{
+ fs::path path(filename);
+
+ if (!path.filename().compare("scripts.rson"))
+ BuildScriptsRson();
+
+}
+
void InitialiseModManager(HMODULE baseAddress)
{
g_ModManager = new ModManager();