(Menu) Menu hashes

This commit is contained in:
twinaphex 2015-06-19 08:51:27 +02:00
parent 7afe1559bc
commit 1fd9d172f6
4 changed files with 11 additions and 3 deletions

View File

@ -1008,7 +1008,8 @@ static int action_ok_compressed_archive_push(const char *path,
info.list = menu_list->menu_stack;
info.directory_ptr = idx;
strlcpy(info.path, path, sizeof(info.path));
strlcpy(info.label, "load_open_zip", sizeof(info.label));
strlcpy(info.label,
menu_hash_to_str(MENU_LABEL_LOAD_OPEN_ZIP), sizeof(info.label));
return menu_displaylist_push_list(&info, DISPLAYLIST_INFO);
}

View File

@ -58,6 +58,12 @@ static const char *menu_hash_to_str_english(uint32_t hash)
{
switch (hash)
{
case MENU_LABEL_CONFIGURATIONS:
return "configurations";
case MENU_LABEL_VALUE_CONFIGURATIONS:
return "Configuration Files";
case MENU_LABEL_LOAD_OPEN_ZIP:
return "load_open_zip";
case MENU_LABEL_REWIND_GRANULARITY:
return "rewind_granularity";
case MENU_LABEL_VALUE_REWIND_GRANULARITY:

View File

@ -423,6 +423,7 @@ extern "C" {
#define MENU_LABEL_FILE_LOAD_OR_RESUME 0x952941f4U
#define MENU_LABEL_DISK_IMAGE_APPEND 0x5af7d709U
#define MENU_LABEL_CONFIGURATIONS 0x3e930a50U
#define MENU_LABEL_VALUE_CONFIGURATIONS 0x88eb27f0U
#define MENU_LABEL_VALUE_CHEAT_FILE_SAVE_AS 0xf2498a2dU
#define MENU_LABEL_CHEAT_FILE_SAVE_AS 0x1f58dccaU
#define MENU_LABEL_VALUE_REMAP_FILE_SAVE_AS 0x3ce7a81dU

View File

@ -3711,8 +3711,8 @@ static bool setting_append_list_main_menu_options(
#endif
CONFIG_ACTION(
"configurations",
"Configuration Files",
menu_hash_to_str(MENU_LABEL_CONFIGURATIONS),
menu_hash_to_str(MENU_LABEL_VALUE_CONFIGURATIONS),
group_info.name,
subgroup_info.name,
parent_group);