From 761a3a7a91c92fe99efec76d512a2032b12f0213 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 24 Apr 2017 01:58:33 +0200 Subject: [PATCH] Disable size checks for essential backup --- source/nand/nandutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/nand/nandutil.c b/source/nand/nandutil.c index c7a1765..02b1cf1 100644 --- a/source/nand/nandutil.c +++ b/source/nand/nandutil.c @@ -62,10 +62,10 @@ u32 BuildEssentialBackup(const char* path, EssentialBackup* essential) { // mount original file InitImgFS(path_bak); - // check sizes - if ((files[0].size != 0x200) || (files[1].size != 0x111) || + // check sizes - stubbed + /*if ((files[0].size != 0x200) || (files[1].size != 0x111) || ((files[2].size != 0x120) && (files[2].size != 0x140)) || (files[3].size != 0x110)) - return 1; + return 1;*/ // fill nand cid / otp hash if (GetNandCid(&(essential->nand_cid)) != 0) return 1;