Fix patchKernel9Panic() pattern (fix crashes on certain O3DS FIRMs)

This commit is contained in:
Aurora 2016-09-06 15:31:06 +02:00
parent 66ffc78f60
commit 942a371b6a

View File

@ -274,9 +274,9 @@ void patchSvcBreak11(u8 *pos, u32 *arm11SvcTable)
void patchKernel9Panic(u8 *pos, u32 size)
{
const u8 pattern[] = {0xDF, 0xFF, 0xEA, 0x04};
const u8 pattern[] = {0xFF, 0xEA, 0x04, 0xD0};
u32 *off = (u32 *)(memsearch(pos, pattern, size, sizeof(pattern)) - 0x11);
u32 *off = (u32 *)(memsearch(pos, pattern, size, sizeof(pattern)) - 0x12);
*off = 0xE12FFF7E;
}