Safe Restore: ask to create a backup if not found

This commit is contained in:
d0k3 2017-12-19 01:10:08 +01:00
parent c17a2a9155
commit 0b7076ced3

View File

@ -369,6 +369,11 @@ u32 SafeRestoreNandDump(const char* path) {
ShowPrompt(false, "Error: B9S/A9LH not detected.");
return 1;
}
if (fvx_stat("S:/essential.exefs", NULL) != FR_OK) {
if (ShowPrompt(true, "Essential files backup is required.\nCreate one now?"))
EmbedEssentialBackup("S:/nand.bin");
else return 1;
}
if (!ShowUnlockSequence(5, "!WARNING!\n \nProceeding will overwrite the\nSysNAND with the provided dump.\n \n(B9S/A9LH will be left intact.)"))
return 1;