From a916a6e42b1f0d0e43497d77d138e74fa81a36c8 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 12 Feb 2022 15:12:40 +0100 Subject: [PATCH] Stop calling deinit when unloading plugins --- source/PluginManagement.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/source/PluginManagement.cpp b/source/PluginManagement.cpp index 89da3c8..3e6a8d8 100644 --- a/source/PluginManagement.cpp +++ b/source/PluginManagement.cpp @@ -100,17 +100,6 @@ void PluginManagement::RestorePatches(plugin_information_t *pluginInformation, B } void PluginManagement::unloadPlugins(plugin_information_t *pluginInformation, MEMHeapHandle pluginHeap, BOOL freePluginData) { - CallHook(pluginInformation, WUPS_LOADER_HOOK_INIT_WUT_MALLOC); - CallHook(pluginInformation, WUPS_LOADER_HOOK_INIT_WUT_NEWLIB); - CallHook(pluginInformation, WUPS_LOADER_HOOK_INIT_WUT_STDCPP); - CallHook(pluginInformation, WUPS_LOADER_HOOK_INIT_WUT_DEVOPTAB); - CallHook(pluginInformation, WUPS_LOADER_HOOK_INIT_WUT_SOCKETS); - CallHook(pluginInformation, WUPS_LOADER_HOOK_DEINIT_PLUGIN); - // CallHook(pluginInformation, WUPS_LOADER_HOOK_FINI_WUT_SOCKETS); To keep network alive we skip this. - CallHook(pluginInformation, WUPS_LOADER_HOOK_FINI_WUT_DEVOPTAB); - CallHook(pluginInformation, WUPS_LOADER_HOOK_FINI_WUT_STDCPP); - CallHook(pluginInformation, WUPS_LOADER_HOOK_FINI_WUT_NEWLIB); - CallHook(pluginInformation, WUPS_LOADER_HOOK_FINI_WUT_MALLOC); RestorePatches(pluginInformation, true); for (int32_t plugin_index = 0; plugin_index < pluginInformation->number_used_plugins; plugin_index++) {