mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-24 12:01:49 +01:00
Only return active plugins in WUPSGetLoadedPlugins
This commit is contained in:
parent
918322f52d
commit
b524584991
@ -226,6 +226,9 @@ extern "C" PluginBackendApiErrorType WUPSGetLoadedPlugins(wups_backend_plugin_co
|
|||||||
*plugin_information_version = WUPS_BACKEND_PLUGIN_INFORMATION_VERSION;
|
*plugin_information_version = WUPS_BACKEND_PLUGIN_INFORMATION_VERSION;
|
||||||
uint32_t counter = 0;
|
uint32_t counter = 0;
|
||||||
for (const auto &plugin : gLoadedPlugins) {
|
for (const auto &plugin : gLoadedPlugins) {
|
||||||
|
if (!plugin.isLinkedAndLoaded()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (counter < buffer_size) {
|
if (counter < buffer_size) {
|
||||||
io_handles[counter] = plugin.getHandle();
|
io_handles[counter] = plugin.getHandle();
|
||||||
counter++;
|
counter++;
|
||||||
|
Loading…
Reference in New Issue
Block a user