Add option to force FAT copy mismatch fix

This commit is contained in:
Pk11 2022-01-09 14:41:58 -06:00
parent ee8da6519d
commit 0dd8b943f8
3 changed files with 16 additions and 0 deletions

View File

@ -16,6 +16,7 @@ enum {
MAIN_MENU_TITLES,
MAIN_MENU_BACKUP,
MAIN_MENU_TEST,
MAIN_MENU_FIX,
MAIN_MENU_EXIT
};
@ -60,6 +61,7 @@ static int _mainMenu(int cursor)
addMenuItem(m, "Titles", NULL, 0);
addMenuItem(m, "Restore", NULL, 0);
addMenuItem(m, "Test", NULL, 0);
addMenuItem(m, "Fix FAT copy mismatch", NULL, 0);
addMenuItem(m, "Shut Down", NULL, 0);
m->cursor = cursor;
@ -146,6 +148,11 @@ int main(int argc, char **argv)
testMenu();
break;
case MAIN_MENU_FIX:
nandio_force_fat_fix();
messageBox("Mismatch in FAT copies will be\nfixed on close.\n");
break;
case MAIN_MENU_EXIT:
programEnd = true;
break;

View File

@ -233,3 +233,10 @@ bool nandio_shutdown()
crypt_buf = 0;
return true;
}
bool nandio_force_fat_fix()
{
nandWritten = true;
return true;
}

View File

@ -22,6 +22,8 @@ void getConsoleID(uint8_t *consoleID) ;
extern bool nandio_shutdown() ;
extern bool nandio_force_fat_fix() ;
#ifdef __cplusplus
}
#endif