From 760aa9970962e76dd3d1a0609413531fa99bf5e4 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sun, 28 Aug 2016 12:33:00 +0200 Subject: [PATCH] Revert "Add back reboot patch on 2.x" This reverts commit 51c514de84c946d268af5e962e5a90afe03e8ab6. --- patches/reboot.s | 3 --- source/firm.c | 13 +++---------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/patches/reboot.s b/patches/reboot.s index 4c60db1..9cb779f 100644 --- a/patches/reboot.s +++ b/patches/reboot.s @@ -14,9 +14,6 @@ payload_maxsize equ 0x10000 ; Maximum size for the payload (maximum that CakeB mov r8, r1 - cmp r7, #0 - moveq r7, r10 ; for 2.x - pxi_wait_recv: ldr r2, =0x44846 ldr r0, =0x10008000 diff --git a/source/firm.c b/source/firm.c index 569c4af..cbf6d17 100755 --- a/source/firm.c +++ b/source/firm.c @@ -341,17 +341,10 @@ static inline void patchSafeFirm(void) //Decrypt ARM9Bin and patch ARM9 entrypoint to skip arm9loader arm9Loader(arm9Section); firm->arm9Entry = (u8 *)0x801B01C; + + patchFirmWrites(arm9Section, section[2].size); } - - //Find the Process9 .code location, size and memory address - u32 process9Size, - process9MemAddr; - u8 *process9Offset = getProcess9(arm9Section + 0x15000, section[2].size - 0x15000, &process9Size, &process9MemAddr); - - if(isN3DS) patchFirmWrites(process9Offset, process9Size); - else patchFirmWriteSafe(process9Offset, process9Size); - - patchFirmlaunches(process9Offset, process9Size, process9MemAddr); + else patchFirmWriteSafe(arm9Section, section[2].size); } static inline void copySection0AndInjectSystemModules(void)