Use MENU_ENUM_LABEL_CONTENT_ACTIONS

This commit is contained in:
twinaphex 2016-06-18 04:09:07 +02:00
parent 054781c3f3
commit 28538b95a7
3 changed files with 13 additions and 8 deletions

View File

@ -3081,13 +3081,16 @@ static int deferred_push_content_actions(menu_displaylist_info_t *info)
static int xmb_list_bind_init_compare_label(menu_file_list_cbs_t *cbs,
uint32_t label_hash)
{
switch (label_hash)
if (cbs && cbs->enum_idx != MENU_ENUM_LABEL_UNKNOWN)
{
case MENU_LABEL_CONTENT_ACTIONS:
cbs->action_deferred_push = deferred_push_content_actions;
break;
default:
return -1;
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_CONTENT_ACTIONS:
cbs->action_deferred_push = deferred_push_content_actions;
break;
default:
return -1;
}
}
return 0;

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_CONTENT_ACTIONS:
return "content_actions";
case MENU_ENUM_LABEL_CPU_ARCHITECTURE:
return "system_information_cpu_architecture";
case MENU_ENUM_LABEL_CPU_CORES:

View File

@ -54,6 +54,8 @@ enum menu_hash_enums
MENU_ENUM_LABEL_VALUE_PARENT_DIRECTORY,
MENU_ENUM_LABEL_PARENT_DIRECTORY,
MENU_ENUM_LABEL_CONTENT_ACTIONS,
MENU_ENUM_LABEL_RUN,
MENU_ENUM_LABEL_CB_THUMBNAILS_UPDATER_DOWNLOAD,
@ -821,7 +823,6 @@ enum menu_hash_enums
MENU_ENUM_LABEL_VALUE_HISTORY_LIST_ENABLE,
MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE,
MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_SIZE,
MENU_ENUM_LABEL_CONTENT_ACTIONS,
MENU_ENUM_LABEL_DETECT_CORE_LIST,
MENU_ENUM_LABEL_VALUE_DETECT_CORE_LIST,
MENU_ENUM_LABEL_DETECT_CORE_LIST_OK,
@ -1701,7 +1702,6 @@ enum menu_hash_enums
#define MENU_LABEL_NETWORK_REMOTE_ENABLE 0x99cd4420U
#define MENU_LABEL_NETWORK_REMOTE_PORT 0x9aef9e18U
#define MENU_LABEL_CONTENT_ACTIONS 0xa0d76970U
#define MENU_LABEL_DETECT_CORE_LIST 0xaa07c341U
#define MENU_LABEL_DETECT_CORE_LIST_OK 0xabba2a7aU
#define MENU_LABEL_START_CORE 0xb0b6ae5bU