aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-21 23:43:20 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-08-21 23:43:20 +0100
commitcd727a453a7d42a61bd161ea0c9947aee644e4f1 (patch)
tree9edff3d29292be84d4a7d76df993fdc96aeb082a /NorthstarDedicatedTest/modmanager.cpp
parent125f53aaa690e4870af88aa3a8947ac5ac0b435d (diff)
downloadNorthstarLauncher-cd727a453a7d42a61bd161ea0c9947aee644e4f1.tar.gz
NorthstarLauncher-cd727a453a7d42a61bd161ea0c9947aee644e4f1.zip
more work on dedicated and launcher
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r--NorthstarDedicatedTest/modmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/modmanager.cpp b/NorthstarDedicatedTest/modmanager.cpp
index dedbbbc8..63115ea4 100644
--- a/NorthstarDedicatedTest/modmanager.cpp
+++ b/NorthstarDedicatedTest/modmanager.cpp
@@ -188,6 +188,9 @@ void ModManager::LoadMods()
std::vector<fs::path> modDirs;
+ // ensure dirs exist
+ fs::create_directories(MOD_FOLDER_PATH);
+
// get mod directories
for (fs::directory_entry dir : fs::directory_iterator(MOD_FOLDER_PATH))
if (fs::exists(dir.path() / "mod.json"))