Add MENU_ENUM_LABEL_MAIN_MENU

This commit is contained in:
twinaphex 2016-06-16 13:13:43 +02:00
parent 707c56dab3
commit 2acb04649e
4 changed files with 8 additions and 3 deletions

View File

@ -401,8 +401,10 @@ bool generic_menu_init_list(void *data)
strlcpy(info.label,
menu_hash_to_str_enum(MENU_ENUM_LABEL_VALUE_MAIN_MENU), sizeof(info.label));
menu_entries_add(menu_stack, info.path,
info.label, info.type, info.flags, 0);
menu_entries_add_enum(menu_stack, info.path,
info.label,
MENU_ENUM_LABEL_MAIN_MENU,
info.type, info.flags, 0);
info.list = selection_buf;

View File

@ -3197,7 +3197,7 @@ static bool xmb_menu_init_list(void *data)
menu_entries_add_enum(menu_stack, info.path,
info.label,
MENU_ENUM_LABEL_VALUE_MAIN_MENU,
MENU_ENUM_LABEL_MAIN_MENU,
info.type, info.flags, 0);
info.list = selection_buf;

View File

@ -26,6 +26,8 @@ static const char *menu_hash_to_str_us_label_enum(enum menu_hash_enums msg)
{
switch (msg)
{
case MENU_ENUM_LABEL_MAIN_MENU:
return "main_menu";
case MENU_ENUM_LABEL_MENU_LINEAR_FILTER:
return "menu_linear_filter";
case MENU_ENUM_LABEL_MENU_ENUM_THROTTLE_FRAMERATE:

View File

@ -686,6 +686,7 @@ enum menu_hash_enums
MENU_ENUM_LABEL_VALUE_HISTORY_TAB,
MENU_ENUM_LABEL_VALUE_ADD_TAB,
MENU_ENUM_LABEL_VALUE_PLAYLISTS_TAB,
MENU_ENUM_LABEL_MAIN_MENU,
MENU_ENUM_LABEL_VALUE_MAIN_MENU,
MENU_ENUM_LABEL_VALUE_SETTINGS,
MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS,