Offer to fix FAT copy mismatch when Unlaunch not found

- Fixes #1
This commit is contained in:
Pk11 2023-03-11 20:29:22 -06:00
parent 4004fcae9d
commit 7ca8bd1a7c

View File

@ -199,10 +199,18 @@ int main(int argc, char **argv)
} }
} }
if (!unlaunchFound) { if (!unlaunchFound)
messageBox("Unlaunch not found, please\ninstall it.\n\n\x1B[46mhttps://dsi.cfw.guide/\x1B[47m"); {
return 0; if (choiceBox("Unlaunch not found, please\ninstall it.\n\n\x1B[46mhttps://dsi.cfw.guide/\x1B[47m\n\nFix FAT copy mismatch?") == YES && nandio_unlock_writing())
} else if (!unlaunchPatches) { {
nandio_force_fat_fix();
nandio_lock_writing();
messageBox("Mismatch in FAT copies will be\nfixed now.\n");
}
programEnd = true;
}
else if (!unlaunchPatches)
{
messageBox("Unlaunch's Launcher Patches are\nnot enabled. You will need to\nprovide TMD files or reinstall.\n\n\x1B[46mhttps://dsi.cfw.guide/\x1B[47m"); messageBox("Unlaunch's Launcher Patches are\nnot enabled. You will need to\nprovide TMD files or reinstall.\n\n\x1B[46mhttps://dsi.cfw.guide/\x1B[47m");
} }
} }