int menu_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx, const char *elem0, const char *elem1, uint32_t label_hash, uint32_t menu_label_hash) { settings_t *settings = config_get_ptr(); if (!cbs) return -1; BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_default); if (cbs->setting) { const char *parent_group = menu_setting_get_parent_group(cbs->setting); uint32_t parent_group_hash = menu_hash_calculate(parent_group); if ((parent_group_hash == MENU_VALUE_MAIN_MENU) && menu_setting_get_type(cbs->setting) == ST_GROUP) { if (!settings->menu.collapse_subgroups_enable) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_settings_subgroup); return 0; } } } if (menu_cbs_init_bind_deferred_push_compare_label(cbs, label, label_hash) == 0) return 0; if (menu_cbs_init_bind_deferred_push_compare_type(cbs, type, label_hash) == 0) return 0; return -1; }
static int menu_cbs_init_bind_deferred_push_compare_type( menu_file_list_cbs_t *cbs, unsigned type) { if (type == FILE_TYPE_PLAYLIST_COLLECTION) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rdb_collection); } else if (type == MENU_SETTING_ACTION_CORE_DISK_OPTIONS) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_disk_options); } else return -1; return 0; }
int menu_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs, const char *path, const char *label, unsigned type, size_t idx, const char *elem0, const char *elem1, uint32_t label_hash, uint32_t menu_label_hash) { if (!cbs) return -1; BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_default); if (menu_cbs_init_bind_deferred_push_compare_label(cbs, label, label_hash) == 0) return 0; if (menu_cbs_init_bind_deferred_push_compare_type(cbs, type, label_hash) == 0) return 0; return -1; }
static int menu_cbs_init_bind_deferred_push_compare_label(menu_file_list_cbs_t *cbs, const char *label, uint32_t label_hash) { if (strstr(label, menu_hash_to_str(MENU_LABEL_DEFERRED_RDB_ENTRY_DETAIL))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rdb_entry_detail); } else if (strstr(label, menu_hash_to_str(MENU_LABEL_DEFERRED_RPL_ENTRY_ACTIONS))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rpl_entry_actions); } else { switch (label_hash) { case MENU_LABEL_DEFERRED_USER_BINDS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_user_binds_list); break; case MENU_LABEL_DEFERRED_ACCOUNTS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_list); break; case MENU_LABEL_DEFERRED_INPUT_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_settings_list); break; case MENU_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_playlist_settings_list); break; case MENU_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_hotkey_binds_list); break; case MENU_LABEL_DEFERRED_ACCOUNTS_CHEEVOS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_cheevos_list); break; case MENU_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action_detect_core); break; case MENU_LABEL_DEFERRED_ARCHIVE_ACTION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action); break; case MENU_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_open_detect_core); break; case MENU_LABEL_DEFERRED_ARCHIVE_OPEN: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_open); break; case MENU_LABEL_DEFERRED_CORE_CONTENT_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_list); #endif break; case MENU_LABEL_DEFERRED_CORE_UPDATER_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_updater_list); #endif break; case MENU_LABEL_LOAD_CONTENT_HISTORY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_history_list); break; case MENU_LABEL_DATABASE_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_database_manager_list); break; case MENU_LABEL_CURSOR_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list); break; case MENU_LABEL_CHEAT_FILE_LOAD: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_file_load); break; case MENU_LABEL_REMAP_FILE_LOAD: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_remap_file_load); break; case MENU_LABEL_RECORD_CONFIG: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_record_configfile); break; case MENU_LABEL_SHADER_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_shader_options); break; case MENU_LABEL_ONLINE_UPDATER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_options); break; case MENU_LABEL_CONTENT_SETTINGS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_settings); break; case MENU_LABEL_ADD_CONTENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_add_content_list); break; case MENU_LABEL_LOAD_CONTENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_load_content_list); break; case MENU_LABEL_INFORMATION_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_information_list); break; case MENU_LABEL_MANAGEMENT: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_management_options); break; case MENU_LABEL_HELP_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_help); break; case MENU_LABEL_DEFERRED_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list_deferred); break; case MENU_LABEL_DEFERRED_CORE_LIST_SET: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_collection_list_deferred); break; case MENU_LABEL_DEFERRED_VIDEO_FILTER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_filter); break; case MENU_LABEL_DEFERRED_DATABASE_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_database_manager_list_deferred); break; case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred); break; case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ENHANCEMENT_HW: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FAMITSU_MAGAZINE_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_subsearch); break; case MENU_LABEL_CORE_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_information); break; case MENU_LABEL_SYSTEM_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_system_information); break; case MENU_LABEL_DEBUG_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_debug_information); break; case MENU_LABEL_ACHIEVEMENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_achievement_list); break; case MENU_LABEL_CORE_COUNTERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_counters); break; case MENU_LABEL_FRONTEND_COUNTERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_frontend_counters); break; case MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_preset_parameters); break; case MENU_LABEL_VIDEO_SHADER_PARAMETERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_parameters); break; case MENU_LABEL_SETTINGS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_settings); break; case MENU_LABEL_CORE_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_options); break; case MENU_LABEL_CORE_CHEAT_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_cheat_options); break; case MENU_LABEL_CORE_INPUT_REMAPPING_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_input_remapping_options); break; case MENU_LABEL_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list); break; case MENU_LABEL_CONTENT_COLLECTION_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_collection_list); break; case MENU_LABEL_CONFIGURATIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configurations); break; case MENU_LABEL_VIDEO_SHADER_PRESET: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_preset); break; case MENU_LABEL_VIDEO_SHADER_PASS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_pass); break; case MENU_LABEL_VIDEO_FILTER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_filter); break; case MENU_LABEL_MENU_WALLPAPER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_images); break; case MENU_LABEL_AUDIO_DSP_PLUGIN: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_dsp_plugin); break; case MENU_LABEL_INPUT_OVERLAY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_overlay); break; case MENU_LABEL_INPUT_OSK_OVERLAY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_osk_overlay); break; case MENU_LABEL_VIDEO_FONT_PATH: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_font_path); break; case MENU_LABEL_CONTENT_HISTORY_PATH: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_history_path); break; case MENU_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST: case MENU_LABEL_DETECT_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_detect_core_list); break; default: return -1; } } return 0; }
static int menu_cbs_init_bind_deferred_push_compare_label( menu_file_list_cbs_t *cbs, const char *label, uint32_t label_hash) { if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CONFIGURATION_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configuration_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_SAVING_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_saving_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LOGGING_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_logging_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_FRAME_THROTTLE_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_frame_throttle_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_REWIND_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rewind_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ONSCREEN_DISPLAY_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_display_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ONSCREEN_OVERLAY_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_overlay_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MENU_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_menu_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_INTERFACE_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_user_interface_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RETRO_ACHIEVEMENTS_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_retro_achievements_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_UPDATER_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_updater_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_NETWORK_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_network_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LAKKA_SERVICES_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_lakka_services_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_user_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_DIRECTORY_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_directory_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_PRIVACY_SETTINGS_LIST))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_privacy_settings_list); return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST))) { #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_list); #endif return 0; } if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST))) { #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_subdir_list); #endif return 0; } if (strstr(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rdb_entry_detail); } else if (strstr(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS))) { BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rpl_entry_actions); } else { if (cbs->enum_idx != MSG_UNKNOWN) { switch (cbs->enum_idx) { case MENU_ENUM_LABEL_MAIN_MENU: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_main_menu_list); break; case MENU_ENUM_LABEL_DEFERRED_USER_BINDS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_user_binds_list); break; case MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_list); break; case MENU_ENUM_LABEL_DEFERRED_INPUT_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_playlist_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_hotkey_binds_list); break; case MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_CHEEVOS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_cheevos_list); break; case MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action_detect_core); break; case MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action); break; case MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_open_detect_core); break; case MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_open); break; case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_list); #endif break; case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_list); #endif break; case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_subdir_list); #endif break; case MENU_ENUM_LABEL_DEFERRED_CORE_UPDATER_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_updater_list); #endif break; case MENU_ENUM_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_thumbnails_updater_list); #endif break; case MENU_ENUM_LABEL_DEFERRED_LAKKA_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_lakka_list); #endif break; case MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_history_list); break; case MENU_ENUM_LABEL_DATABASE_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_database_manager_list); break; case MENU_ENUM_LABEL_CURSOR_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list); break; case MENU_ENUM_LABEL_CHEAT_FILE_LOAD: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_file_load); break; case MENU_ENUM_LABEL_REMAP_FILE_LOAD: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_remap_file_load); break; case MENU_ENUM_LABEL_RECORD_CONFIG: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_record_configfile); break; case MENU_ENUM_LABEL_SHADER_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_shader_options); break; case MENU_ENUM_LABEL_ONLINE_UPDATER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_options); break; case MENU_ENUM_LABEL_CONTENT_SETTINGS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_settings); break; case MENU_ENUM_LABEL_ADD_CONTENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_add_content_list); break; case MENU_ENUM_LABEL_LOAD_CONTENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_load_content_list); break; case MENU_ENUM_LABEL_INFORMATION_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_information_list); break; case MENU_ENUM_LABEL_MANAGEMENT: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_management_options); break; case MENU_ENUM_LABEL_HELP_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_help); break; case MENU_ENUM_LABEL_DEFERRED_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list_deferred); break; case MENU_ENUM_LABEL_DEFERRED_CORE_LIST_SET: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_collection_list_deferred); break; case MENU_ENUM_LABEL_DEFERRED_VIDEO_FILTER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_filter); break; case MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_database_manager_list_deferred); break; case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred); break; case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ENHANCEMENT_HW: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FAMITSU_MAGAZINE_RATING: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH: case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_subsearch); break; case MENU_ENUM_LABEL_CORE_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_information); break; case MENU_ENUM_LABEL_SYSTEM_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_system_information); break; case MENU_ENUM_LABEL_NETWORK_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_network_information); break; case MENU_ENUM_LABEL_ACHIEVEMENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_achievement_list); break; case MENU_ENUM_LABEL_CORE_COUNTERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_counters); break; case MENU_ENUM_LABEL_FRONTEND_COUNTERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_frontend_counters); break; case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_preset_parameters); break; case MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_parameters); break; case MENU_ENUM_LABEL_SETTINGS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_settings); break; case MENU_ENUM_LABEL_CORE_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_options); break; case MENU_ENUM_LABEL_CORE_CHEAT_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_cheat_options); break; case MENU_ENUM_LABEL_CORE_INPUT_REMAPPING_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_input_remapping_options); break; case MENU_ENUM_LABEL_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list); break; case MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_collection_list); break; case MENU_ENUM_LABEL_CONFIGURATIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configurations); break; case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_preset); break; case MENU_ENUM_LABEL_VIDEO_SHADER_PASS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_pass); break; case MENU_ENUM_LABEL_VIDEO_FILTER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_filter); break; case MENU_ENUM_LABEL_MENU_WALLPAPER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_images); break; case MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_dsp_plugin); break; case MENU_ENUM_LABEL_INPUT_OVERLAY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_overlay); break; case MENU_ENUM_LABEL_INPUT_OSK_OVERLAY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_osk_overlay); break; case MENU_ENUM_LABEL_VIDEO_FONT_PATH: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_font_path); break; case MENU_ENUM_LABEL_XMB_FONT: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_xmb_font_path); break; case MENU_ENUM_LABEL_CONTENT_HISTORY_PATH: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_history_path); break; case MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_CONFIGURATION_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configuration_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_SAVING_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_saving_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_LOGGING_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_saving_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_FRAME_THROTTLE_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_frame_throttle_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_REWIND_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rewind_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_ONSCREEN_DISPLAY_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_display_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_ONSCREEN_OVERLAY_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_overlay_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_AUDIO_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_settings_list); break; case MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_settings_list); break; case MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST: case MENU_ENUM_LABEL_DETECT_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_detect_core_list); break; default: return -1; } } else { switch (label_hash) { case MENU_LABEL_DEFERRED_USER_BINDS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_user_binds_list); break; case MENU_LABEL_DEFERRED_ACCOUNTS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_list); break; case MENU_LABEL_DEFERRED_DRIVER_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_driver_settings_list); break; case MENU_LABEL_DEFERRED_VIDEO_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_settings_list); break; case MENU_LABEL_DEFERRED_AUDIO_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_settings_list); break; case MENU_LABEL_DEFERRED_INPUT_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_settings_list); break; case MENU_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_playlist_settings_list); break; case MENU_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_hotkey_binds_list); break; case MENU_LABEL_DEFERRED_ACCOUNTS_CHEEVOS_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_cheevos_list); break; case MENU_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action_detect_core); break; case MENU_LABEL_DEFERRED_ARCHIVE_ACTION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_action); break; case MENU_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_open_detect_core); break; case MENU_LABEL_DEFERRED_ARCHIVE_OPEN: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_archive_open); break; case MENU_LABEL_DEFERRED_CORE_CONTENT_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_list); #endif break; case MENU_LABEL_DEFERRED_CORE_UPDATER_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_updater_list); #endif break; case MENU_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_thumbnails_updater_list); #endif break; case MENU_LABEL_DEFERRED_LAKKA_LIST: #ifdef HAVE_NETWORKING BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_lakka_list); #endif break; case MENU_LABEL_LOAD_CONTENT_HISTORY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_history_list); break; case MENU_LABEL_DATABASE_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_database_manager_list); break; case MENU_LABEL_CURSOR_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list); break; case MENU_LABEL_CHEAT_FILE_LOAD: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_file_load); break; case MENU_LABEL_REMAP_FILE_LOAD: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_remap_file_load); break; case MENU_LABEL_RECORD_CONFIG: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_record_configfile); break; case MENU_LABEL_SHADER_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_shader_options); break; case MENU_LABEL_ONLINE_UPDATER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_options); break; case MENU_LABEL_CONTENT_SETTINGS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_settings); break; case MENU_LABEL_ADD_CONTENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_add_content_list); break; case MENU_LABEL_LOAD_CONTENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_load_content_list); break; case MENU_LABEL_INFORMATION_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_information_list); break; case MENU_LABEL_MANAGEMENT: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_management_options); break; case MENU_LABEL_HELP_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_help); break; case MENU_LABEL_DEFERRED_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list_deferred); break; case MENU_LABEL_DEFERRED_CORE_LIST_SET: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_collection_list_deferred); break; case MENU_LABEL_DEFERRED_VIDEO_FILTER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_filter); break; case MENU_LABEL_DEFERRED_DATABASE_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_database_manager_list_deferred); break; case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred); break; case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ENHANCEMENT_HW: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FAMITSU_MAGAZINE_RATING: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH: case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_subsearch); break; case MENU_LABEL_CORE_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_information); break; case MENU_LABEL_SYSTEM_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_system_information); break; case MENU_LABEL_NETWORK_INFORMATION: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_network_information); break; case MENU_LABEL_ACHIEVEMENT_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_achievement_list); break; case MENU_LABEL_CORE_COUNTERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_counters); break; case MENU_LABEL_FRONTEND_COUNTERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_frontend_counters); break; case MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_preset_parameters); break; case MENU_LABEL_VIDEO_SHADER_PARAMETERS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_parameters); break; case MENU_LABEL_SETTINGS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_settings); break; case MENU_LABEL_CORE_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_options); break; case MENU_LABEL_CORE_CHEAT_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_cheat_options); break; case MENU_LABEL_CORE_INPUT_REMAPPING_OPTIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_input_remapping_options); break; case MENU_LABEL_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list); break; case MENU_LABEL_CONTENT_COLLECTION_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_collection_list); break; case MENU_LABEL_CONFIGURATIONS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configurations); break; case MENU_LABEL_VIDEO_SHADER_PRESET: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_preset); break; case MENU_LABEL_VIDEO_SHADER_PASS: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_shader_pass); break; case MENU_LABEL_VIDEO_FILTER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_filter); break; case MENU_LABEL_MENU_WALLPAPER: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_images); break; case MENU_LABEL_AUDIO_DSP_PLUGIN: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_dsp_plugin); break; case MENU_LABEL_INPUT_OVERLAY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_overlay); break; case MENU_LABEL_INPUT_OSK_OVERLAY: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_osk_overlay); break; case MENU_LABEL_VIDEO_FONT_PATH: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_font_path); break; case MENU_LABEL_XMB_FONT: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_xmb_font_path); break; case MENU_LABEL_CONTENT_HISTORY_PATH: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_content_history_path); break; case MENU_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST: case MENU_LABEL_DETECT_CORE_LIST: BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_detect_core_list); break; default: return -1; } } } return 0; }