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,7 +276,8 @@ 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;
}