Add support for installing retail 0x3D[0] key-encrypted CIAs on dev units

When "UNITINFO" is enabled
This commit is contained in:
TuxSH 2016-11-12 02:14:35 +01:00 committed by GitHub
parent 3474faa4a2
commit 5adb8749de

View File

@ -276,8 +276,9 @@ u32 patchCheckForDevCommonKey(u8 *pos, u32 size)
if(off == NULL) ret = 1; if(off == NULL) ret = 1;
else 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; ret = 0;
} }
@ -754,4 +755,4 @@ u32 patchAgbBootSplash(u8 *pos, u32 size)
} }
return ret; return ret;
} }