From 5303e05508035842eeede2df8d00291d4b6651ab Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 3 Oct 2022 16:27:58 +0200 Subject: [PATCH] Call the DEINIT_PLUGIN hook after before unloading a plugin --- source/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/main.cpp b/source/main.cpp index ba5d890..bb0a9cd 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -77,6 +77,7 @@ WUMS_APPLICATION_STARTS() { if (!gLoadOnNextLaunch.empty()) { DEBUG_FUNCTION_LINE("Restore function patches of currently loaded plugins."); PluginManagement::RestoreFunctionPatches(gLoadedPlugins); + CallHook(gLoadedPlugins, WUPS_LOADER_HOOK_DEINIT_PLUGIN); DEBUG_FUNCTION_LINE("Unload existing plugins."); gLoadedPlugins.clear(); DEBUG_FUNCTION_LINE("Load new plugins");