From 422e54dca4f22efdcd36ad580b9f15076736b2ca Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 14 Oct 2019 22:18:00 +0200 Subject: [PATCH] FIRMInstaller: Remove crypto check ... this interfered with installation to corrupted partitions and is no more required anyways. --- arm9/source/utils/nandutil.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arm9/source/utils/nandutil.c b/arm9/source/utils/nandutil.c index 9c1bec1..0124d4a 100644 --- a/arm9/source/utils/nandutil.c +++ b/arm9/source/utils/nandutil.c @@ -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); 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