aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2024-07-05 20:50:55 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2024-07-05 20:50:55 +0200
commitf5707e2b36a338961b3dabfde1c1668304f6ae66 (patch)
tree300770145728144c7f5f5cb0425b7faf9575ddd8
parent1f0e8aaa4805db0298e5b6047b3c6628932a82fc (diff)
downloadNorthstarLauncher-f5707e2b36a338961b3dabfde1c1668304f6ae66.tar.gz
NorthstarLauncher-f5707e2b36a338961b3dabfde1c1668304f6ae66.zip
refactor: Rename mods folder to core mods
-rw-r--r--primedev/mods/modmanager.cpp10
-rw-r--r--primedev/mods/modmanager.h4
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();