Remove more hashes

This commit is contained in:
twinaphex 2020-02-23 10:20:14 +01:00
parent 387cb8bf8b
commit 6c82a3802e
1 changed files with 12 additions and 13 deletions

View File

@ -7712,12 +7712,12 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs,
break; break;
case FILE_TYPE_DIRECTORY: case FILE_TYPE_DIRECTORY:
if (cbs->enum_idx != MSG_UNKNOWN if (cbs->enum_idx != MSG_UNKNOWN
|| menu_label_hash == MENU_LABEL_DISK_IMAGE_APPEND || string_is_equal(menu_label, "disk_image_append")
|| menu_label_hash == MENU_LABEL_SUBSYSTEM_ADD || string_is_equal(menu_label, "subsystem_add")
|| menu_label_hash == MENU_LABEL_VIDEO_FONT_PATH || string_is_equal(menu_label, "video_font_path")
|| menu_label_hash == MENU_LABEL_XMB_FONT || string_is_equal(menu_label, "xmb_font")
|| menu_label_hash == MENU_LABEL_AUDIO_DSP_PLUGIN || string_is_equal(menu_label, "audio_dsp_plugin")
|| menu_label_hash == MENU_LABEL_VIDEO_FILTER) || string_is_equal(menu_label, "video_filter"))
BIND_ACTION_OK(cbs, action_ok_directory_push); BIND_ACTION_OK(cbs, action_ok_directory_push);
else else
BIND_ACTION_OK(cbs, action_ok_push_random_dir); BIND_ACTION_OK(cbs, action_ok_push_random_dir);
@ -7731,14 +7731,13 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs,
} }
else else
{ {
switch (menu_label_hash) if (string_is_equal(menu_label, "favorites"))
{ {
case MENU_LABEL_FAVORITES:
BIND_ACTION_OK(cbs, action_ok_compressed_archive_push_detect_core); BIND_ACTION_OK(cbs, action_ok_compressed_archive_push_detect_core);
break; }
default: else
{
BIND_ACTION_OK(cbs, action_ok_compressed_archive_push); BIND_ACTION_OK(cbs, action_ok_compressed_archive_push);
break;
} }
} }
break; break;