aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorF1F7Y <64418963+F1F7Y@users.noreply.github.com>2023-07-28 22:28:59 +0200
committerGitHub <noreply@github.com>2023-07-28 22:28:59 +0200
commit24400184f35e64957f2c7544122557077b257886 (patch)
tree2348e8e092f581deb049032af27848ef53a64499
parente742eb35ccc4dab4c0b4cff65b5e72a62346aa74 (diff)
downloadNorthstarLauncher-24400184f35e64957f2c7544122557077b257886.tar.gz
NorthstarLauncher-24400184f35e64957f2c7544122557077b257886.zip
Make sure `packages` dir exists when loading plugins (#523)
Create packages directory in `PluginManager::LoadPlugins()` to avoid crashing when trying to read non-existent directory
-rw-r--r--NorthstarDLL/plugins/plugins.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/plugins/plugins.cpp b/NorthstarDLL/plugins/plugins.cpp
index 776830a6..6ccd348e 100644
--- a/NorthstarDLL/plugins/plugins.cpp
+++ b/NorthstarDLL/plugins/plugins.cpp
@@ -211,6 +211,8 @@ bool PluginManager::LoadPlugins()
return false;
}
+ fs::create_directories(GetThunderstoreModFolderPath());
+
std::vector<fs::path> paths;
pluginPath = GetNorthstarPrefix() + "/plugins";