From b0d1391e5a32aed6f4929d6c249ebccfc9207e15 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 14 Feb 2022 20:24:41 +0100 Subject: [PATCH] Call deinitLogging on exit not request exit --- source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index 6e7bd59..dee5b87 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -34,7 +34,6 @@ WUMS_INITIALIZE(args) { WUMS_APPLICATION_REQUESTS_EXIT() { CallHook(gPluginInformation, WUPS_LOADER_HOOK_APPLICATION_REQUESTS_EXIT); - deinitLogging(); } WUMS_APPLICATION_ENDS() { @@ -50,6 +49,7 @@ WUMS_APPLICATION_ENDS() { FunctionPatcherRestoreDynamicFunctions(pluginInformation->plugin_data[plugin_index].info.functions, pluginInformation->plugin_data[plugin_index].info.number_used_functions); } FunctionPatcherRestoreDynamicFunctions(method_hooks_hooks_static, method_hooks_size_hooks_static); + deinitLogging(); } void *allocOnCustomHeap(int alignment, int size);