From 283f75ecdde985c6edb20fe666abc5fd346e94b1 Mon Sep 17 00:00:00 2001 From: Simo <136233872+Simo3ds@users.noreply.github.com> Date: Sat, 25 Nov 2023 20:29:58 +0100 Subject: [PATCH] sync non-translatable file Signed-off-by: Simo <136233872+Simo3ds@users.noreply.github.com> --- sysmodules/loader/source/patcher.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sysmodules/loader/source/patcher.c b/sysmodules/loader/source/patcher.c index c57677e8..456848ba 100644 --- a/sysmodules/loader/source/patcher.c +++ b/sysmodules/loader/source/patcher.c @@ -995,6 +995,23 @@ void patchCode(u64 progId, u16 progVer, u8 *code, u32 size, u32 textSize, u32 ro sizeof(patch), 1 )) goto error; } + + else if (progId == 0x0004003000008802LL) // JP internet browser + { + static const u8 pattern[] = { + 0x01, 0xD0, 0x00, 0x20, 0x10, 0xBD, 0x00, 0x20 + }, + patch[] = { + 0x00, 0x20 // mov r0, #0x0 + }; + + if (!patchMemory(code, textSize, + pattern, + sizeof(pattern), 0, + patch, + sizeof(patch), 1 + )) goto error; + } if (isSysmodule && CONFIG(LOADEXTFIRMSANDMODULES)) {