aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/plugins
diff options
context:
space:
mode:
authorF1F7Y <64418963+F1F7Y@users.noreply.github.com>2023-07-28 16:12:31 +0200
committerGitHub <noreply@github.com>2023-07-28 16:12:31 +0200
commite742eb35ccc4dab4c0b4cff65b5e72a62346aa74 (patch)
tree0f4703d902409a8c9a97a5f81747b6c796519728 /NorthstarDLL/plugins
parenta65cbeacfbaed17f0526fb513f49338f1151d247 (diff)
downloadNorthstarLauncher-e742eb35ccc4dab4c0b4cff65b5e72a62346aa74.tar.gz
NorthstarLauncher-e742eb35ccc4dab4c0b4cff65b5e72a62346aa74.zip
Fix plugins not loading (#522)
Fixes a regression introduced in #513
Diffstat (limited to 'NorthstarDLL/plugins')
-rw-r--r--NorthstarDLL/plugins/plugins.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/NorthstarDLL/plugins/plugins.cpp b/NorthstarDLL/plugins/plugins.cpp
index 9ba4707a..776830a6 100644
--- a/NorthstarDLL/plugins/plugins.cpp
+++ b/NorthstarDLL/plugins/plugins.cpp
@@ -196,14 +196,7 @@ inline void FindPlugins(fs::path pluginPath, std::vector<fs::path>& paths)
return;
}
- fs::recursive_directory_iterator iterator(pluginPath);
- // ensure iterator is not empty
- if (std::filesystem::begin(iterator) != std::filesystem::end(iterator))
- {
- return;
- }
-
- for (auto const& entry : iterator)
+ for (const fs::directory_entry& entry : fs::recursive_directory_iterator(pluginPath))
{
if (fs::is_regular_file(entry) && entry.path().extension() == ".dll")
paths.emplace_back(entry.path());