From a3ae38520c75f40bc67411e3641ec367624e0c09 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 25 May 2016 20:08:37 +0200 Subject: [PATCH] Fix the latest two commits --- source/firm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/firm.c b/source/firm.c index 427a31b..3ed09e8 100755 --- a/source/firm.c +++ b/source/firm.c @@ -287,10 +287,13 @@ static inline void patchNativeFirm(u32 nandType, u32 emuHeader, u32 a9lhMode) process9MemAddr; u8 *process9Offset = getProcess9(arm9Section + 0x15000, section[2].size - 0x15000, &process9Size, &process9MemAddr); + //Apply signature patches + patchSignatureChecks(process9Offset, process9Size); + //Apply emuNAND patches if(nandType) { - u32 branchAdditive = (u32)firm - section[2].offset + (u32)section[2].address; + u32 branchAdditive = (u32)firm + section[2].offset - (u32)section[2].address; patchEmuNAND(arm9Section, section[2].size, process9Offset, process9Size, emuOffset, emuHeader, branchAdditive); }