Move dev common key patch to UNITINFO since it breaks SD retail encrypted CIAs

This commit is contained in:
Aurora 2016-11-10 13:10:02 +01:00
parent c1f85650bd
commit 52d352385f
2 changed files with 6 additions and 3 deletions

View File

@ -127,7 +127,7 @@ void configMenu(bool isSdMode, bool oldPinStatus, u32 oldPinMode)
"always detected as a development unit\n" "always detected as a development unit\n"
"(which breaks online features and\n" "(which breaks online features and\n"
"allows booting some developer\n" "allows booting some developer\n"
"software).\n\n" "software and installing dev CIAs).\n\n"
"Only change this if you know what you\n" "Only change this if you know what you\n"
"are doing!", "are doing!",

View File

@ -157,7 +157,6 @@ u32 patchNativeFirm(u32 firmVersion, FirmwareSource nandType, u32 emuHeader, boo
{ {
ret += patchZeroKeyNcchEncryptionCheck(process9Offset, process9Size); ret += patchZeroKeyNcchEncryptionCheck(process9Offset, process9Size);
ret += patchNandNcchEncryptionCheck(process9Offset, process9Size); ret += patchNandNcchEncryptionCheck(process9Offset, process9Size);
ret += patchCheckForDevCommonKey(process9Offset, process9Size);
} }
//11.0 FIRM patches //11.0 FIRM patches
@ -173,7 +172,11 @@ u32 patchNativeFirm(u32 firmVersion, FirmwareSource nandType, u32 emuHeader, boo
ret += implementSvcGetCFWInfo(arm11Section1, arm11SvcTable, baseK11VA, &freeK11Space, isSafeMode); ret += implementSvcGetCFWInfo(arm11Section1, arm11SvcTable, baseK11VA, &freeK11Space, isSafeMode);
//Apply UNITINFO patch //Apply UNITINFO patch
if(devMode == 2) ret += patchUnitInfoValueSet(arm9Section, kernel9Size); if(devMode == 2)
{
ret += patchUnitInfoValueSet(arm9Section, kernel9Size);
ret += patchCheckForDevCommonKey(process9Offset, process9Size);
}
if(devMode != 0 && isA9lhInstalled) if(devMode != 0 && isA9lhInstalled)
{ {