From a2ed8c19fe19adf774d059f7167b611471ce373a Mon Sep 17 00:00:00 2001 From: F1F7Y <64418963+F1F7Y@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:28:59 +0200 Subject: 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) --- NorthstarDLL/plugins/plugins.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 paths; pluginPath = GetNorthstarPrefix() + "/plugins"; -- cgit v1.2.3