From 89445b77c253daa061e4973f67f2dda3ac36cf32 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 29 Apr 2020 18:07:03 +0200 Subject: [PATCH] Calling `FINI_WUT_DEVOPTAB` at the end of a application is softlocking. MEM2 is cleared anyway so this shouldn't be a memory leak. Needs further research --- source/patcher/hooks_patcher_static.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/patcher/hooks_patcher_static.cpp b/source/patcher/hooks_patcher_static.cpp index 0cf395d..7469cfa 100644 --- a/source/patcher/hooks_patcher_static.cpp +++ b/source/patcher/hooks_patcher_static.cpp @@ -264,7 +264,7 @@ DECL(uint32_t, OSReceiveMessage, OSMessageQueue *queue, OSMessage *message, uint CallHook(gPluginInformation, WUPS_LOADER_HOOK_ACQUIRED_FOREGROUND); } else if(message->args[0] == 0xD1E0D1E0) { CallHook(gPluginInformation, WUPS_LOADER_HOOK_APPLICATION_END); - CallHook(gPluginInformation, WUPS_LOADER_HOOK_FINI_WUT_DEVOPTAB); + //CallHook(gPluginInformation, WUPS_LOADER_HOOK_FINI_WUT_DEVOPTAB); //gInBackground = false; //DCFlushRange(&gInBackground,4); //unmount_sd_fat("sd");