diff options
author | F1F7Y <64418963+F1F7Y@users.noreply.github.com> | 2023-07-28 22:28:59 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-28 23:41:18 +0200 |
commit | a2ed8c19fe19adf774d059f7167b611471ce373a (patch) | |
tree | d91026deb3099bbc82c440f373b33f1fb3c9b040 | |
parent | e2b6163f6e382b1c3aaef935ab6fbc96d3a68303 (diff) | |
download | NorthstarLauncher-a2ed8c19fe19adf774d059f7167b611471ce373a.tar.gz NorthstarLauncher-a2ed8c19fe19adf774d059f7167b611471ce373a.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
(cherry picked from commit 24400184f35e64957f2c7544122557077b257886)
-rw-r--r-- | NorthstarDLL/plugins/plugins.cpp | 2 |
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"; |