diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-21 23:43:20 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-21 23:43:20 +0100 |
commit | cd727a453a7d42a61bd161ea0c9947aee644e4f1 (patch) | |
tree | 9edff3d29292be84d4a7d76df993fdc96aeb082a /NorthstarDedicatedTest/modmanager.cpp | |
parent | 125f53aaa690e4870af88aa3a8947ac5ac0b435d (diff) | |
download | NorthstarLauncher-cd727a453a7d42a61bd161ea0c9947aee644e4f1.tar.gz NorthstarLauncher-cd727a453a7d42a61bd161ea0c9947aee644e4f1.zip |
more work on dedicated and launcher
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.cpp')
-rw-r--r-- | NorthstarDedicatedTest/modmanager.cpp | 3 |
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")) |