mirror of
https://github.com/rvtr/TDT.git
synced 2025-10-31 13:51:07 -04:00
Add option to force FAT copy mismatch fix
This commit is contained in:
parent
ee8da6519d
commit
0dd8b943f8
@ -16,6 +16,7 @@ enum {
|
|||||||
MAIN_MENU_TITLES,
|
MAIN_MENU_TITLES,
|
||||||
MAIN_MENU_BACKUP,
|
MAIN_MENU_BACKUP,
|
||||||
MAIN_MENU_TEST,
|
MAIN_MENU_TEST,
|
||||||
|
MAIN_MENU_FIX,
|
||||||
MAIN_MENU_EXIT
|
MAIN_MENU_EXIT
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -60,6 +61,7 @@ static int _mainMenu(int cursor)
|
|||||||
addMenuItem(m, "Titles", NULL, 0);
|
addMenuItem(m, "Titles", NULL, 0);
|
||||||
addMenuItem(m, "Restore", NULL, 0);
|
addMenuItem(m, "Restore", NULL, 0);
|
||||||
addMenuItem(m, "Test", NULL, 0);
|
addMenuItem(m, "Test", NULL, 0);
|
||||||
|
addMenuItem(m, "Fix FAT copy mismatch", NULL, 0);
|
||||||
addMenuItem(m, "Shut Down", NULL, 0);
|
addMenuItem(m, "Shut Down", NULL, 0);
|
||||||
|
|
||||||
m->cursor = cursor;
|
m->cursor = cursor;
|
||||||
@ -146,6 +148,11 @@ int main(int argc, char **argv)
|
|||||||
testMenu();
|
testMenu();
|
||||||
break;
|
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:
|
case MAIN_MENU_EXIT:
|
||||||
programEnd = true;
|
programEnd = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -233,3 +233,10 @@ bool nandio_shutdown()
|
|||||||
crypt_buf = 0;
|
crypt_buf = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool nandio_force_fat_fix()
|
||||||
|
{
|
||||||
|
nandWritten = true;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|||||||
@ -22,6 +22,8 @@ void getConsoleID(uint8_t *consoleID) ;
|
|||||||
|
|
||||||
extern bool nandio_shutdown() ;
|
extern bool nandio_shutdown() ;
|
||||||
|
|
||||||
|
extern bool nandio_force_fat_fix() ;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user