Revert "Add back reboot patch on 2.x"

This reverts commit 51c514de84.
This commit is contained in:
Aurora 2016-08-28 12:33:00 +02:00
parent 51c514de84
commit 760aa99709
2 changed files with 3 additions and 13 deletions

View File

@ -14,9 +14,6 @@ payload_maxsize equ 0x10000 ; Maximum size for the payload (maximum that CakeB
mov r8, r1 mov r8, r1
cmp r7, #0
moveq r7, r10 ; for 2.x
pxi_wait_recv: pxi_wait_recv:
ldr r2, =0x44846 ldr r2, =0x44846
ldr r0, =0x10008000 ldr r0, =0x10008000

View File

@ -341,17 +341,10 @@ static inline void patchSafeFirm(void)
//Decrypt ARM9Bin and patch ARM9 entrypoint to skip arm9loader //Decrypt ARM9Bin and patch ARM9 entrypoint to skip arm9loader
arm9Loader(arm9Section); arm9Loader(arm9Section);
firm->arm9Entry = (u8 *)0x801B01C; firm->arm9Entry = (u8 *)0x801B01C;
patchFirmWrites(arm9Section, section[2].size);
} }
else patchFirmWriteSafe(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);
} }
static inline void copySection0AndInjectSystemModules(void) static inline void copySection0AndInjectSystemModules(void)