2020-03-17 23:41:09 +00:00
|
|
|
#include "common.h"
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
menu_entry mainmenu_main[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"[SD:/] SD CARD", COLOR_GREEN, {ISMENU}},
|
|
|
|
{"[EMMC:/] EMMC", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"[EMMC:/] EMUMMC", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"\nMount/Unmount SD", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"Tools", COLOR_VIOLET, {ISMENU}},
|
|
|
|
{"SD format", COLOR_VIOLET, {ISMENU}},
|
|
|
|
{"\nCredits", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"Exit", COLOR_WHITE, {ISMENU}}
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry mainmenu_shutdown[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Back", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"\nReboot to RCM", COLOR_VIOLET, {ISMENU}},
|
|
|
|
{"Reboot normally", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"Power off\n", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"Reboot to Hekate", COLOR_GREEN, {ISMENU}},
|
|
|
|
{"Reboot to Atmosphere", COLOR_GREEN, {ISMENU}}
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry mainmenu_tools[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Back", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"\nDisplay Console Info", COLOR_GREEN, {ISMENU}},
|
|
|
|
{"Display GPIO pins", COLOR_VIOLET, {ISMENU}},
|
2020-05-09 12:52:46 +01:00
|
|
|
{"Dump Firmware", COLOR_BLUE, {ISMENU}}
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry mainmenu_format[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Back\n", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"Format entire SD to FAT32", COLOR_RED, {ISMENU}},
|
|
|
|
{"Format for EmuMMC setup (FAT32/RAW)", COLOR_RED, {ISMENU}}
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry utils_mmcChoice[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Back\n", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"SysMMC", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"EmuMMC", COLOR_BLUE, {ISMENU}}
|
2020-03-18 22:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry fs_menu_file[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{NULL, COLOR_GREEN, {ISMENU | ISSKIP}},
|
|
|
|
{NULL, COLOR_VIOLET, {ISMENU | ISSKIP}},
|
|
|
|
{NULL, COLOR_VIOLET, {ISMENU | ISSKIP}},
|
|
|
|
{"\n\n\nBack", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"\nCopy to clipboard", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"Move to clipboard", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"Rename file", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"\nDelete file\n", COLOR_RED, {ISMENU}},
|
|
|
|
{"Launch Payload", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"Launch Script", COLOR_YELLOW, {ISMENU}},
|
|
|
|
{"View Hex", COLOR_GREEN, {ISMENU}},
|
2020-05-08 23:22:35 +01:00
|
|
|
{"\nExtract BIS", COLOR_YELLOW, {ISMENU}},
|
|
|
|
{"Sign Save", COLOR_ORANGE, {ISMENU}}
|
2020-03-18 22:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry fs_menu_folder[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{NULL, COLOR_VIOLET, {ISMENU | ISSKIP}},
|
|
|
|
{"\nBack", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"Return to main menu\n", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"Copy to clipboard", COLOR_VIOLET, {ISMENU}},
|
|
|
|
{"Delete folder\n", COLOR_RED, {ISMENU}},
|
|
|
|
{"Rename folder", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"Create folder", COLOR_BLUE, {ISMENU}}
|
2020-03-18 22:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry fs_menu_startdir[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Folder -> previous folder ", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"Clipboard -> Current folder", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"Current folder menu ", COLOR_ORANGE, {ISMENU}}
|
2020-04-04 15:49:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
gpt_entry_rule gpt_fs_rules[] = {
|
|
|
|
{"PRODINFOF", 0 | isFS},
|
|
|
|
{"SAFE", 1 | isFS },
|
|
|
|
{"SYSTEM", 2 | isFS},
|
|
|
|
{"USER", 3 | isFS},
|
|
|
|
{NULL, 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry mmcmenu_start[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Back", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"Dump File Partitions", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"Clipboard -> Partition\n", COLOR_ORANGE, {ISMENU}},
|
|
|
|
{"BOOT0/1", COLOR_BLUE, {ISNULL | ISMENU}}
|
2020-04-04 17:40:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry mmcmenu_filemenu[] = {
|
2020-05-04 12:55:26 +01:00
|
|
|
{"Part:", COLOR_ORANGE, {ISSKIP | ISMENU}},
|
|
|
|
{NULL, COLOR_VIOLET, {ISSKIP | ISMENU}},
|
|
|
|
{"\nBack", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"Dump to SD", COLOR_YELLOW, {ISMENU}}
|
2020-07-14 16:38:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
menu_entry fwDump_typeMenu[] = {
|
|
|
|
{"Back\n", COLOR_WHITE, {ISMENU}},
|
|
|
|
{"Firmware format type:", COLOR_WHITE, {ISMENU | ISSKIP}},
|
|
|
|
{"Daybreak (prod.keys required!)", COLOR_BLUE, {ISMENU}},
|
|
|
|
{"ChoiNX", COLOR_VIOLET, {ISMENU}}
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|