From d7095ce37df1517db618a7e402ca9d8cfc8a2510 Mon Sep 17 00:00:00 2001 From: Aurora Wright Date: Tue, 31 Jul 2018 04:32:29 +0200 Subject: [PATCH] Fix patchKernel9Panic on 11.8 NATIVE_FIRM (pattern tested down to 3.0) --- source/patches.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/patches.c b/source/patches.c index 6968711..38966b0 100644 --- a/source/patches.c +++ b/source/patches.c @@ -508,13 +508,13 @@ u32 patchSvcBreak9(u8 *pos, u32 size, u32 kernel9Address) u32 patchKernel9Panic(u8 *pos, u32 size) { - static const u8 pattern[] = {0xFF, 0xEA, 0x04, 0xD0}; + static const u8 pattern[] = {0x00, 0x20, 0x92, 0x15}; u8 *temp = memsearch(pos, pattern, size, sizeof(pattern)); if(temp == NULL) return 1; - u32 *off = (u32 *)(temp - 0x12); + u32 *off = (u32 *)(temp - 0x34); *off = 0xE12FFF7E; return 0;