FIRMInstaller: Remove crypto check

... this interfered with installation to corrupted partitions and is no more required anyways.
This commit is contained in:
d0k3 2019-10-14 22:18:00 +02:00
parent 0f42426115
commit 422e54dca4

View File

@ -519,11 +519,6 @@ u32 SafeInstallFirmBuffered(const char* path, u32 slots, u8* buffer, u32 bufsiz)
ShowPrompt(false, "%s\nFIRM%lu not found or too small.", pathstr, s); ShowPrompt(false, "%s\nFIRM%lu not found or too small.", pathstr, s);
return 1; return 1;
} }
if ((ReadNandBytes(lmagic, info.sector*0x200, sizeof(firm_magic), info.keyslot, NAND_SYSNAND) != 0) ||
(memcmp(lmagic, firm_magic, sizeof(firm_magic)) != 0)) {
ShowPrompt(false, "%s\nFIRM%lu crypto fail.", pathstr, s);
return 1;
}
} }
// check sector 0x96 on N3DS, offer fix if required // check sector 0x96 on N3DS, offer fix if required