diff options
Diffstat (limited to 'primedev')
-rw-r--r-- | primedev/mods/modmanager.cpp | 10 | ||||
-rw-r--r-- | primedev/mods/modmanager.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/primedev/mods/modmanager.cpp b/primedev/mods/modmanager.cpp index 38bf1dc7..b2a7e713 100644 --- a/primedev/mods/modmanager.cpp +++ b/primedev/mods/modmanager.cpp @@ -615,7 +615,7 @@ void ModManager::LoadMods() // ensure dirs exist fs::remove_all(GetCompiledAssetsPath()); - fs::create_directories(GetModFolderPath()); + fs::create_directories(GetCoreModFolderPath()); fs::create_directories(GetThunderstoreLegacyModFolderPath()); fs::create_directories(GetRemoteModFolderPath()); @@ -638,11 +638,11 @@ void ModManager::LoadMods() } // get mod directories - std::filesystem::directory_iterator classicModsDir = fs::directory_iterator(GetModFolderPath()); + std::filesystem::directory_iterator coreModsDir = fs::directory_iterator(GetCoreModFolderPath()); std::filesystem::directory_iterator remoteModsDir = fs::directory_iterator(GetRemoteModFolderPath()); std::filesystem::directory_iterator thunderstoreModsDir = fs::directory_iterator(GetThunderstoreLegacyModFolderPath()); - for (fs::directory_entry dir : classicModsDir) + for (fs::directory_entry dir : coreModsDir) if (fs::exists(dir.path() / "mod.json")) modDirs.push_back(dir.path()); @@ -1127,9 +1127,9 @@ void ConCommand_reload_mods(const CCommand& args) g_pModManager->LoadMods(); } -fs::path GetModFolderPath() +fs::path GetCoreModFolderPath() { - return fs::path(GetNorthstarPrefix() + MOD_FOLDER_SUFFIX); + return fs::path(GetNorthstarPrefix() + CORE_MOD_FOLDER_SUFFIX); } fs::path GetThunderstoreLegacyModFolderPath() { diff --git a/primedev/mods/modmanager.h b/primedev/mods/modmanager.h index 7500a3d5..ace79e32 100644 --- a/primedev/mods/modmanager.h +++ b/primedev/mods/modmanager.h @@ -9,7 +9,7 @@ #include <filesystem> #include <unordered_set> -const std::string MOD_FOLDER_SUFFIX = "\\mods\\core"; +const std::string CORE_MOD_FOLDER_SUFFIX = "\\mods\\core"; const std::string THUNDERSTORE_MOD_FOLDER_SUFFIX = "\\mods\\thunderstore-legacy"; const std::string REMOTE_MOD_FOLDER_SUFFIX = "\\runtime\\remote\\mods"; const fs::path MOD_OVERRIDE_DIR = "mod"; @@ -179,7 +179,7 @@ public: void BuildKBActionsList(); }; -fs::path GetModFolderPath(); +fs::path GetCoreModFolderPath(); fs::path GetRemoteModFolderPath(); fs::path GetThunderstoreLegacyModFolderPath(); fs::path GetCompiledAssetsPath(); |