mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-17 02:09:17 +01:00
Make sure to restore patches before unloading plugins
This commit is contained in:
parent
da5b26b583
commit
49fde27123
@ -94,8 +94,8 @@ void PluginManagement::RestorePatches(plugin_information_t *pluginInformation, B
|
||||
}
|
||||
|
||||
void PluginManagement::unloadPlugins(plugin_information_t *gPluginInformation, MEMHeapHandle pluginHeap) {
|
||||
RestorePatches(gPluginInformation, true);
|
||||
for (int32_t plugin_index = 0; plugin_index < gPluginInformation->number_used_plugins; plugin_index++) {
|
||||
DEBUG_FUNCTION_LINE();
|
||||
plugin_information_single_t *plugin = &(gPluginInformation->plugin_data[plugin_index]);
|
||||
if (plugin->data.buffer != nullptr) {
|
||||
if (plugin->data.memoryType == eMemTypeMEM2) {
|
||||
|
Loading…
Reference in New Issue
Block a user