From e67f5f97253ae0de21a792307caeff6d26f55de1 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 30 Jan 2025 18:29:47 +0100 Subject: [PATCH] Implement support for WUMS 0.3.3 --- Dockerfile | 4 ++-- .../applicationends_function_replacements.cpp | 1 + source/sdrefcount/sd_function_replacements.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f32aed5..99d6b99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ghcr.io/wiiu-env/devkitppc:20240505 +FROM ghcr.io/wiiu-env/devkitppc:20241128 COPY --from=ghcr.io/wiiu-env/libfunctionpatcher:20230621 /artifacts $DEVKITPRO -COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20240424 /artifacts $DEVKITPRO +COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:0.3.3-dev-20250130-474ef70 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/libkernel:20230621 /artifacts $DEVKITPRO WORKDIR project diff --git a/source/applicationendshook/applicationends_function_replacements.cpp b/source/applicationendshook/applicationends_function_replacements.cpp index 60fc0cd..ba6a859 100644 --- a/source/applicationendshook/applicationends_function_replacements.cpp +++ b/source/applicationendshook/applicationends_function_replacements.cpp @@ -62,6 +62,7 @@ DECL_FUNCTION(uint32_t, OSReceiveMessage, OSMessageQueue *queue, OSMessage *mess if (message->args[0] == 0xD1E0D1E0) { ZombiUFix(); CallHook(WUMS_HOOK_APPLICATION_REQUESTS_EXIT); + CallHook(WUMS_HOOK_ALL_APPLICATION_REQUESTS_EXIT_DONE); } } lastData0 = message->args[0]; diff --git a/source/sdrefcount/sd_function_replacements.cpp b/source/sdrefcount/sd_function_replacements.cpp index 58c9b82..4277258 100644 --- a/source/sdrefcount/sd_function_replacements.cpp +++ b/source/sdrefcount/sd_function_replacements.cpp @@ -300,6 +300,7 @@ DECL_FUNCTION(void, __PPCExit, uint32_t u1) { NWF_Fix(); CallHook(WUMS_HOOK_APPLICATION_ENDS); + CallHook(WUMS_HOOK_ALL_APPLICATION_ENDS_DONE); CallHook(WUMS_HOOK_FINI_WUT_SOCKETS); CallHook(WUMS_HOOK_FINI_WUT_DEVOPTAB); if (gSDMountRefCount > 0) {