mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-25 22:24:16 +01:00
Preserve disabled plugins when wiiloading a new plugin
This commit is contained in:
parent
1ad4b7aada
commit
b6cdc94ca1
@ -41,6 +41,14 @@ extern "C" PluginBackendApiErrorType WUPSLoadAndLinkByDataHandle(const wups_back
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: What happens when we wiiload a new version of an inactive plugin? Do we consider that a problem?
|
||||
// add all loaded plugins that are not active as inactive
|
||||
for (const auto &plugin : gLoadedPlugins) {
|
||||
if (!plugin.isLinkedAndLoaded()) {
|
||||
gLoadOnNextLaunch.emplace_back(plugin.getPluginDataCopy(), false);
|
||||
}
|
||||
}
|
||||
|
||||
return PLUGIN_BACKEND_API_ERROR_NONE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user