Disable size checks for essential backup

This commit is contained in:
d0k3 2017-04-24 01:58:33 +02:00
parent 33fabef720
commit 761a3a7a91

View File

@ -62,10 +62,10 @@ u32 BuildEssentialBackup(const char* path, EssentialBackup* essential) {
// mount original file // mount original file
InitImgFS(path_bak); InitImgFS(path_bak);
// check sizes // check sizes - stubbed
if ((files[0].size != 0x200) || (files[1].size != 0x111) || /*if ((files[0].size != 0x200) || (files[1].size != 0x111) ||
((files[2].size != 0x120) && (files[2].size != 0x140)) || (files[3].size != 0x110)) ((files[2].size != 0x120) && (files[2].size != 0x140)) || (files[3].size != 0x110))
return 1; return 1;*/
// fill nand cid / otp hash // fill nand cid / otp hash
if (GetNandCid(&(essential->nand_cid)) != 0) return 1; if (GetNandCid(&(essential->nand_cid)) != 0) return 1;