2020-03-17 23:41:09 +00:00
|
|
|
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
extern const char *gfx_file_size_names[];
|
|
|
|
extern const char *menu_sd_states[];
|
|
|
|
extern const char *emmc_fs_entries[];
|
2020-03-18 11:18:39 +00:00
|
|
|
extern const char *utils_err_codes[];
|
2020-03-19 12:00:42 +00:00
|
|
|
extern const char *pkg2names[];
|
2020-03-19 22:01:30 +00:00
|
|
|
extern const char *mainmenu_credits;
|
2020-03-17 23:41:09 +00:00
|
|
|
|
2020-03-18 22:58:32 +00:00
|
|
|
enum utils_err_codes_te_call {
|
|
|
|
ERR_SAME_LOC = 50,
|
|
|
|
ERR_DISK_WRITE_FAILED,
|
|
|
|
ERR_EMPTY_CLIPBOARD,
|
|
|
|
ERR_FOLDER_ROOT = 54,
|
2020-03-19 12:00:42 +00:00
|
|
|
ERR_DEST_PART_OF_SRC,
|
|
|
|
ERR_PART_NOT_FOUND,
|
|
|
|
ERR_BISKEY_DUMP_FAILED,
|
|
|
|
ERR_MEM_ALLOC_FAILED,
|
2020-03-19 15:11:18 +00:00
|
|
|
ERR_EMMC_READ_FAILED,
|
|
|
|
ERR_EMMC_WRITE_FAILED,
|
2020-03-22 21:56:36 +00:00
|
|
|
ERR_FILE_TOO_BIG_FOR_DEST,
|
2020-03-31 14:34:19 +01:00
|
|
|
ERR_SD_EJECTED,
|
2020-04-04 21:15:13 +01:00
|
|
|
ERR_PARSE_FAIL,
|
|
|
|
ERR_CANNOT_COPY_FILE_TO_FS_PART,
|
|
|
|
ERR_NO_DESTENATION
|
2020-03-18 22:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const char *utils_err_codes_te[];
|
|
|
|
|
2020-03-17 23:41:09 +00:00
|
|
|
enum mainmenu_main_return {
|
|
|
|
MAIN_SDCARD = 0,
|
|
|
|
MAIN_EMMC_SAF,
|
|
|
|
MAIN_EMMC_SYS,
|
|
|
|
MAIN_EMMC_USR,
|
|
|
|
MAIN_EMUMMC_SAF,
|
|
|
|
MAIN_EMUMMC_SYS,
|
|
|
|
MAIN_EMUMMC_USR,
|
|
|
|
MAIN_MOUNT_SD,
|
|
|
|
MAIN_TOOLS,
|
|
|
|
MAIN_SD_FORMAT,
|
|
|
|
MAIN_CREDITS,
|
|
|
|
MAIN_EXIT
|
|
|
|
};
|
|
|
|
|
|
|
|
extern menu_entry mainmenu_main[];
|
|
|
|
|
|
|
|
enum mainmenu_shutdown_return {
|
|
|
|
SHUTDOWN_REBOOT_RCM = 1,
|
|
|
|
SHUTDOWN_REBOOT_NORMAL,
|
|
|
|
SHUTDOWN_POWER_OFF,
|
|
|
|
SHUTDOWN_HEKATE,
|
|
|
|
SHUTDOWN_AMS
|
|
|
|
};
|
|
|
|
|
|
|
|
extern menu_entry mainmenu_shutdown[];
|
|
|
|
|
|
|
|
enum mainmenu_tools_return {
|
|
|
|
TOOLS_DISPLAY_INFO = 1,
|
|
|
|
TOOLS_DISPLAY_GPIO,
|
|
|
|
TOOLS_DUMPFIRMWARE,
|
2020-04-04 23:22:23 +01:00
|
|
|
TOOLS_DUMPUSERSAVE
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern menu_entry mainmenu_tools[];
|
|
|
|
|
|
|
|
enum mainmenu_format_return {
|
2020-03-19 15:11:18 +00:00
|
|
|
FORMAT_ALL_FAT32 = 1,
|
|
|
|
FORMAT_EMUMMC
|
2020-03-17 23:41:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern menu_entry mainmenu_format[];
|
|
|
|
|
|
|
|
enum mmc_types {
|
|
|
|
SYSMMC = 1,
|
|
|
|
EMUMMC
|
|
|
|
};
|
|
|
|
|
2020-03-18 22:58:32 +00:00
|
|
|
extern menu_entry utils_mmcChoice[];
|
|
|
|
|
|
|
|
enum fs_menu_file_return {
|
|
|
|
FILE_COPY = 4,
|
|
|
|
FILE_MOVE,
|
|
|
|
FILE_DELETE,
|
|
|
|
FILE_PAYLOAD,
|
|
|
|
FILE_SCRIPT,
|
|
|
|
FILE_HEXVIEW,
|
2020-04-05 15:07:25 +01:00
|
|
|
FILE_DUMPBIS
|
2020-03-18 22:58:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern menu_entry fs_menu_file[];
|
|
|
|
|
|
|
|
enum fs_menu_folder_return {
|
|
|
|
DIR_EXITFOLDER = 2,
|
|
|
|
DIR_COPYFOLDER,
|
|
|
|
DIR_DELETEFOLDER
|
|
|
|
};
|
|
|
|
|
|
|
|
extern menu_entry fs_menu_folder[];
|
|
|
|
|
|
|
|
enum fs_menu_startdir_return {
|
|
|
|
FILEMENU_RETURN = 0,
|
|
|
|
FILEMENU_CLIPBOARD,
|
|
|
|
FILEMENU_CURFOLDER
|
|
|
|
};
|
|
|
|
|
2020-04-04 15:49:47 +01:00
|
|
|
extern menu_entry fs_menu_startdir[];
|
|
|
|
|
|
|
|
extern gpt_entry_rule gpt_fs_rules[];
|
|
|
|
|
2020-04-04 17:40:27 +01:00
|
|
|
extern menu_entry mmcmenu_start[];
|
|
|
|
|
|
|
|
extern menu_entry mmcmenu_filemenu[];
|