mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-09 13:41:45 +00:00
Reorder BIS menu options
This commit is contained in:
parent
4e1368faaf
commit
d5c23ebf96
3 changed files with 4 additions and 19 deletions
|
@ -55,8 +55,7 @@ enum mainmenu_tools_return {
|
|||
TOOLS_DISPLAY_GPIO,
|
||||
TOOLS_DUMPFIRMWARE,
|
||||
TOOLS_DUMPUSERSAVE,
|
||||
TOOLS_DUMP_BOOT,
|
||||
TOOLS_RESTORE_BOOT
|
||||
TOOLS_DUMP_BOOT
|
||||
};
|
||||
|
||||
extern menu_entry mainmenu_tools[];
|
||||
|
|
|
@ -31,8 +31,7 @@ menu_entry mainmenu_tools[] = {
|
|||
{"Display GPIO pins", COLOR_VIOLET, ISMENU},
|
||||
{"Dump Firmware", COLOR_BLUE, ISMENU},
|
||||
{"Dump User Saves", COLOR_YELLOW, ISMENU},
|
||||
{"[DEBUG] Dump bis", COLOR_RED, ISMENU},
|
||||
{"[DEBUG] Restore bis", COLOR_RED, ISMENU}
|
||||
{"Dump bis", COLOR_ORANGE, ISMENU}
|
||||
};
|
||||
|
||||
menu_entry mainmenu_format[] = {
|
||||
|
@ -58,7 +57,7 @@ menu_entry fs_menu_file[] = {
|
|||
{"Launch Payload", COLOR_ORANGE, ISMENU},
|
||||
{"Launch Script", COLOR_YELLOW, ISMENU},
|
||||
{"View Hex", COLOR_GREEN, ISMENU},
|
||||
{"Extract BIS", COLOR_RED, ISMENU},
|
||||
{"\nExtract BIS", COLOR_YELLOW, ISMENU},
|
||||
{"Restore BIS", COLOR_RED, ISMENU}
|
||||
};
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ void MainMenu_MountSD(){
|
|||
|
||||
void MainMenu_Tools(){
|
||||
//res = makemenu(toolsmenu, 8);
|
||||
res = menu_make(mainmenu_tools, 7, "-- Tools Menu --");
|
||||
res = menu_make(mainmenu_tools, 6, "-- Tools Menu --");
|
||||
|
||||
switch(res){
|
||||
case TOOLS_DISPLAY_INFO:
|
||||
|
@ -128,19 +128,6 @@ void MainMenu_Tools(){
|
|||
case TOOLS_DUMP_BOOT:
|
||||
dump_emmc_parts(PART_BOOT | PART_PKG2, SYSMMC);
|
||||
break;
|
||||
case TOOLS_RESTORE_BOOT:
|
||||
/*
|
||||
gfx_printf("WARNING!\nThis will mess with your switch boot files\nMake a nand backup beforehand!\n\nThis will pull from path:\nsd:/tegraexplorer/boot.bis\n\nVol +/- to cancel\n");
|
||||
if (gfx_makewaitmenu(
|
||||
"Power to confirm",
|
||||
5
|
||||
))
|
||||
{
|
||||
if ((res = utils_mmcMenu()) > 0)
|
||||
restore_bis_using_file("sd:/tegraexplorer/boot.bis", res);
|
||||
}
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue