Only return active plugins in WUPSGetLoadedPlugins

This commit is contained in:
Maschell 2024-08-04 17:56:59 +02:00
parent 9987fec53c
commit 1ad4b7aada

View File

@ -222,6 +222,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++;