2019-11-21 16:02:45 +01:00
|
|
|
#pragma once
|
|
|
|
#include "../utils/types.h"
|
|
|
|
|
2020-01-27 23:51:59 +01:00
|
|
|
#define MAINMENU_AMOUNT 12
|
2019-11-21 16:02:45 +01:00
|
|
|
|
2020-03-19 00:11:18 +01:00
|
|
|
/*
|
2019-11-21 16:02:45 +01:00
|
|
|
typedef struct _menu_item {
|
|
|
|
char name[50];
|
|
|
|
u32 color;
|
|
|
|
short internal_function;
|
|
|
|
short property;
|
|
|
|
} menu_item;
|
|
|
|
|
2020-03-19 00:11:18 +01:00
|
|
|
|
2019-11-21 21:27:48 +01:00
|
|
|
enum mainmenu_return {
|
|
|
|
SD_CARD = 1,
|
2019-12-22 12:10:59 +01:00
|
|
|
EMMC_SAF,
|
2019-12-11 13:18:57 +01:00
|
|
|
EMMC_SYS,
|
|
|
|
EMMC_USR,
|
2020-01-27 23:51:59 +01:00
|
|
|
EMUMMC_SAF,
|
|
|
|
EMUMMC_SYS,
|
|
|
|
EMUMMC_USR,
|
2019-11-21 21:27:48 +01:00
|
|
|
MOUNT_SD,
|
|
|
|
TOOLS,
|
2019-12-11 13:18:57 +01:00
|
|
|
SD_FORMAT,
|
2019-11-21 21:27:48 +01:00
|
|
|
CREDITS,
|
|
|
|
EXIT
|
|
|
|
};
|
|
|
|
|
|
|
|
enum shutdownmenu_return {
|
|
|
|
REBOOT_RCM = 1,
|
|
|
|
REBOOT_NORMAL,
|
2019-12-01 15:42:37 +01:00
|
|
|
POWER_OFF,
|
|
|
|
HEKATE,
|
|
|
|
AMS
|
2019-11-21 21:27:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enum toolsmenu_return {
|
2019-12-03 10:06:11 +01:00
|
|
|
DISPLAY_INFO = 1,
|
2019-12-03 17:11:08 +01:00
|
|
|
DISPLAY_GPIO,
|
2020-01-07 21:53:02 +01:00
|
|
|
DUMPFIRMWARE,
|
2020-03-14 15:03:08 +01:00
|
|
|
DUMPUSERSAVE,
|
2020-03-15 12:35:18 +01:00
|
|
|
DUMP_BOOT,
|
|
|
|
RESTORE_BOOT
|
2019-12-11 14:45:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enum formatmenu_return {
|
2019-12-12 13:18:43 +01:00
|
|
|
FORMAT_EMUMMC = 0,
|
|
|
|
FORMAT_ALL_FAT32
|
2019-11-21 21:27:48 +01:00
|
|
|
};
|
2020-03-18 00:41:09 +01:00
|
|
|
*/
|
2019-11-21 21:27:48 +01:00
|
|
|
|
2019-11-21 16:02:45 +01:00
|
|
|
void te_main();
|