From 5adb8749decd5b93a13392570899c2a78681d417 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 12 Nov 2016 02:14:35 +0100 Subject: [PATCH] Add support for installing retail 0x3D[0] key-encrypted CIAs on dev units When "UNITINFO" is enabled --- source/patches.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/patches.c b/source/patches.c index f49c3d4..494cdac 100644 --- a/source/patches.c +++ b/source/patches.c @@ -276,8 +276,9 @@ u32 patchCheckForDevCommonKey(u8 *pos, u32 size) if(off == NULL) ret = 1; else { - *off = 0x2301; //mov r3, #1 - + *off = ISDEVUNIT ? 0x2300 : 0x2301; //mov r3, #0 or 1 + //use the dev common key as 1st common key on retail, vice-versa on dev + ret = 0; } @@ -754,4 +755,4 @@ u32 patchAgbBootSplash(u8 *pos, u32 size) } return ret; -} \ No newline at end of file +}