diff options
author | F1F7Y <64418963+F1F7Y@users.noreply.github.com> | 2023-07-28 22:28:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 22:28:59 +0200 |
commit | 24400184f35e64957f2c7544122557077b257886 (patch) | |
tree | 2348e8e092f581deb049032af27848ef53a64499 /NorthstarDLL | |
parent | e742eb35ccc4dab4c0b4cff65b5e72a62346aa74 (diff) | |
download | NorthstarLauncher-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
Diffstat (limited to 'NorthstarDLL')
-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"; |