From 6c78a95872de0ddca837e5af37d6a01a5fac7d45 Mon Sep 17 00:00:00 2001 From: "Dimitri A." Date: Sun, 15 Dec 2024 00:23:27 +0100 Subject: [PATCH] fix(account_settings): Avoid mixing up FSReadFile / FSCloseFile patches This copy-and-paste error was a culprit of the bug described in issue #55. It made the Account Settings applet on Wii U softlock during its initialisation, forcing the user to power off the system. The applet now works again. However, trying to access it a second time without rebooting still freezes the Wii U, which is another regression listed in issue #55. --- src/patches/account_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patches/account_settings.cpp b/src/patches/account_settings.cpp index 57af0b9..eef820f 100644 --- a/src/patches/account_settings.cpp +++ b/src/patches/account_settings.cpp @@ -146,7 +146,7 @@ bool patchAccountSettings() { add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSOpenFile_accSettings, LIBRARY_COREINIT, FSOpenFile, FP_TARGET_PROCESS_GAME), "FSOpenFile_accSettings"); add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSReadFile_accSettings, LIBRARY_COREINIT, FSReadFile, FP_TARGET_PROCESS_GAME), "FSReadFile_accSettings"); - add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSCloseFile_accSettings, LIBRARY_COREINIT, FSReadFile, FP_TARGET_PROCESS_GAME), "FSCloseFile_accSettings"); + add_patch(REPLACE_FUNCTION_FOR_PROCESS(FSCloseFile_accSettings, LIBRARY_COREINIT, FSCloseFile, FP_TARGET_PROCESS_GAME), "FSCloseFile_accSettings"); return true; }