From b645e1ce52071afa90f40e840c08141d3cc4184d Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 4 Aug 2024 17:56:59 +0200 Subject: [PATCH] Only return active plugins in WUPSGetLoadedPlugins --- source/utils/exports.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/utils/exports.cpp b/source/utils/exports.cpp index 08e384d..e5e5cb6 100644 --- a/source/utils/exports.cpp +++ b/source/utils/exports.cpp @@ -226,6 +226,9 @@ extern "C" PluginBackendApiErrorType WUPSGetLoadedPlugins(wups_backend_plugin_co *plugin_information_version = WUPS_BACKEND_PLUGIN_INFORMATION_VERSION; uint32_t counter = 0; for (const auto &plugin : gLoadedPlugins) { + if (!plugin.isLinkedAndLoaded()) { + continue; + } if (counter < buffer_size) { io_handles[counter] = plugin.getHandle(); counter++;