diff --git a/source/emunand.c b/source/emunand.c index ba36761..9125a6b 100644 --- a/source/emunand.c +++ b/source/emunand.c @@ -175,8 +175,7 @@ static inline u32 patchMpu(u8 *pos, u32 size) else { off[1] = 0x0036; - off[0xC] = 0x0603; - off[0x12] = 0x0603; + off[0xC] = off[0x12] = 0x0603; ret = 0; } diff --git a/source/patches.c b/source/patches.c index 298f442..991f07c 100644 --- a/source/patches.c +++ b/source/patches.c @@ -623,12 +623,8 @@ u32 patchTwlFlashcartChecks(u8 *pos, u32 size, u32 firmVersion) { u16 *off = (u16 *)(temp + 3); - off[0] = 0x2001; //mov r0, #1 - off[1] = 0; //nop - off[6] = 0x2001; //mov r0, #1 - off[7] = 0; //nop - off[0xC] = 0x2001; //mov r0, #1 - off[0xD] = 0; //nop + off[0] = off[6] = off[0xC] = 0x2001; //mov r0, #1 + off[1] = off[7] = off[0xD] = 0; //nop ret = 0; } @@ -646,10 +642,8 @@ u32 patchOldTwlFlashcartChecks(u8 *pos, u32 size) if(off == NULL) ret = 1; else { - off[0] = 0x2001; //mov r0, #1 - off[1] = 0; //nop - off[6] = 0x2001; //mov r0, #1 - off[7] = 0; //nop + off[0] = off[6] = 0x2001; //mov r0, #1 + off[1] = off[7] = 0; //nop ret = 0; }