parent
51c514de84
commit
760aa99709
@ -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
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user