diff options
author | F1F7Y <64418963+F1F7Y@users.noreply.github.com> | 2023-07-28 16:12:31 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-28 16:15:09 +0200 |
commit | e2b6163f6e382b1c3aaef935ab6fbc96d3a68303 (patch) | |
tree | 681395b53fcf38ef76afddee4483c09519a21747 /NorthstarDLL/plugins | |
parent | bece6ab2b6890ab538f5685f3d1cdcce233ff0a0 (diff) | |
download | NorthstarLauncher-e2b6163f6e382b1c3aaef935ab6fbc96d3a68303.tar.gz NorthstarLauncher-e2b6163f6e382b1c3aaef935ab6fbc96d3a68303.zip |
Fix plugins not loading (#522)v1.17.1-rc5v1.17.1
Fixes a regression introduced in #513
(cherry picked from commit e742eb35ccc4dab4c0b4cff65b5e72a62346aa74)
Diffstat (limited to 'NorthstarDLL/plugins')
-rw-r--r-- | NorthstarDLL/plugins/plugins.cpp | 9 |
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()); |