2015-02-26 16:33:00 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 12:40:32 +00:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2015-02-26 16:33:00 +00:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2016-09-05 22:56:00 +00:00
|
|
|
#include <compat/strl.h>
|
2015-02-26 16:33:00 +00:00
|
|
|
#include <file/file_path.h>
|
2015-12-26 06:37:44 +00:00
|
|
|
#include <string/stdstring.h>
|
2016-03-20 13:53:54 +00:00
|
|
|
#include <lists/string_list.h>
|
2015-06-05 07:31:07 +00:00
|
|
|
|
2016-09-08 03:35:39 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../../config.h"
|
|
|
|
#endif
|
|
|
|
|
2015-12-06 16:55:27 +00:00
|
|
|
#include "../menu_driver.h"
|
2015-06-26 13:28:01 +00:00
|
|
|
#include "../menu_cbs.h"
|
2015-11-23 14:13:26 +00:00
|
|
|
#include "../../msg_hash.h"
|
2015-02-26 16:33:00 +00:00
|
|
|
|
2015-06-13 17:15:48 +00:00
|
|
|
#include "../../database_info.h"
|
|
|
|
|
2015-06-23 04:13:57 +00:00
|
|
|
#include "../../cores/internal_cores.h"
|
|
|
|
|
2016-09-05 16:31:32 +00:00
|
|
|
#include "../../configuration.h"
|
2016-09-06 04:11:44 +00:00
|
|
|
#include "../../core.h"
|
2015-12-11 12:56:00 +00:00
|
|
|
#include "../../core_info.h"
|
2017-05-11 07:11:46 +00:00
|
|
|
#include "../../retroarch.h"
|
2015-11-23 14:28:20 +00:00
|
|
|
#include "../../verbosity.h"
|
2015-11-23 14:13:26 +00:00
|
|
|
|
2015-10-11 19:08:07 +00:00
|
|
|
#ifndef BIND_ACTION_DEFERRED_PUSH
|
|
|
|
#define BIND_ACTION_DEFERRED_PUSH(cbs, name) \
|
2018-04-11 04:11:54 +00:00
|
|
|
cbs->action_deferred_push = name; \
|
2015-10-11 19:08:07 +00:00
|
|
|
cbs->action_deferred_push_ident = #name;
|
|
|
|
#endif
|
|
|
|
|
2016-02-03 14:50:51 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
PUSH_ARCHIVE_OPEN_DETECT_CORE = 0,
|
|
|
|
PUSH_ARCHIVE_OPEN,
|
|
|
|
PUSH_DEFAULT,
|
|
|
|
PUSH_DETECT_CORE_LIST
|
|
|
|
};
|
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
static int deferred_push_dlist(menu_displaylist_info_t *info, enum menu_displaylist_ctl_state state)
|
2015-10-21 23:38:41 +00:00
|
|
|
{
|
2018-04-11 04:11:45 +00:00
|
|
|
if (!menu_displaylist_ctl(state, info))
|
2016-02-10 20:42:18 +00:00
|
|
|
return menu_cbs_exit();
|
2017-05-26 18:12:52 +00:00
|
|
|
menu_displaylist_process(info);
|
2015-10-21 23:38:41 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-12-05 13:11:50 +00:00
|
|
|
static int deferred_push_database_manager_list_deferred(
|
2018-04-11 04:11:54 +00:00
|
|
|
menu_displaylist_info_t *info)
|
2016-07-02 10:03:50 +00:00
|
|
|
{
|
2017-12-05 13:11:50 +00:00
|
|
|
if (!string_is_empty(info->path_b))
|
|
|
|
free(info->path_b);
|
|
|
|
if (!string_is_empty(info->path_c))
|
|
|
|
free(info->path_c);
|
2016-07-02 10:03:50 +00:00
|
|
|
|
2017-12-05 13:11:50 +00:00
|
|
|
info->path_b = strdup(info->path);
|
|
|
|
info->path_c = NULL;
|
2016-07-02 10:03:50 +00:00
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
return deferred_push_dlist(info, DISPLAYLIST_DATABASE_QUERY);
|
2016-07-02 11:17:24 +00:00
|
|
|
}
|
|
|
|
|
2017-12-05 13:11:50 +00:00
|
|
|
#define generic_deferred_push(name, type) \
|
2018-04-11 04:11:54 +00:00
|
|
|
static int (name)(menu_displaylist_info_t *info) \
|
2017-12-05 13:11:50 +00:00
|
|
|
{ \
|
2018-04-11 04:11:54 +00:00
|
|
|
return deferred_push_dlist(info, type); \
|
2017-12-05 13:11:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
generic_deferred_push(deferred_push_video_shader_preset_parameters, DISPLAYLIST_SHADER_PARAMETERS_PRESET)
|
|
|
|
generic_deferred_push(deferred_push_video_shader_parameters, DISPLAYLIST_SHADER_PARAMETERS)
|
|
|
|
generic_deferred_push(deferred_push_settings, DISPLAYLIST_SETTINGS_ALL)
|
|
|
|
generic_deferred_push(deferred_push_shader_options, DISPLAYLIST_OPTIONS_SHADERS)
|
2018-05-02 22:04:19 +00:00
|
|
|
generic_deferred_push(deferred_push_quick_menu_override_options, DISPLAYLIST_OPTIONS_OVERRIDES)
|
2017-12-05 13:11:50 +00:00
|
|
|
generic_deferred_push(deferred_push_options, DISPLAYLIST_OPTIONS)
|
|
|
|
generic_deferred_push(deferred_push_netplay, DISPLAYLIST_NETPLAY_ROOM_LIST)
|
|
|
|
generic_deferred_push(deferred_push_netplay_sublist, DISPLAYLIST_NETPLAY)
|
|
|
|
generic_deferred_push(deferred_push_content_settings, DISPLAYLIST_CONTENT_SETTINGS)
|
|
|
|
generic_deferred_push(deferred_push_add_content_list, DISPLAYLIST_ADD_CONTENT_LIST)
|
|
|
|
generic_deferred_push(deferred_push_history_list, DISPLAYLIST_HISTORY)
|
|
|
|
generic_deferred_push(deferred_push_database_manager_list, DISPLAYLIST_DATABASES)
|
|
|
|
generic_deferred_push(deferred_push_cursor_manager_list, DISPLAYLIST_DATABASE_CURSORS)
|
|
|
|
generic_deferred_push(deferred_push_content_collection_list, DISPLAYLIST_DATABASE_PLAYLISTS)
|
|
|
|
generic_deferred_push(deferred_push_configurations_list, DISPLAYLIST_CONFIGURATIONS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_load_content_special, DISPLAYLIST_LOAD_CONTENT_LIST)
|
|
|
|
generic_deferred_push(deferred_push_load_content_list, DISPLAYLIST_LOAD_CONTENT_LIST)
|
|
|
|
generic_deferred_push(deferred_push_information_list, DISPLAYLIST_INFORMATION_LIST)
|
|
|
|
generic_deferred_push(deferred_archive_action_detect_core, DISPLAYLIST_ARCHIVE_ACTION_DETECT_CORE)
|
|
|
|
generic_deferred_push(deferred_archive_action, DISPLAYLIST_ARCHIVE_ACTION)
|
|
|
|
generic_deferred_push(deferred_push_management_options, DISPLAYLIST_OPTIONS_MANAGEMENT)
|
|
|
|
generic_deferred_push(deferred_push_core_counters, DISPLAYLIST_PERFCOUNTERS_CORE)
|
|
|
|
generic_deferred_push(deferred_push_frontend_counters, DISPLAYLIST_PERFCOUNTERS_FRONTEND)
|
|
|
|
generic_deferred_push(deferred_push_core_cheat_options, DISPLAYLIST_OPTIONS_CHEATS)
|
|
|
|
generic_deferred_push(deferred_push_core_input_remapping_options, DISPLAYLIST_OPTIONS_REMAPPINGS)
|
|
|
|
generic_deferred_push(deferred_push_core_options, DISPLAYLIST_CORE_OPTIONS)
|
|
|
|
generic_deferred_push(deferred_push_disk_options, DISPLAYLIST_OPTIONS_DISK)
|
|
|
|
generic_deferred_push(deferred_push_browse_url_list, DISPLAYLIST_BROWSE_URL_LIST)
|
|
|
|
generic_deferred_push(deferred_push_browse_url_start, DISPLAYLIST_BROWSE_URL_START)
|
|
|
|
generic_deferred_push(deferred_push_core_list, DISPLAYLIST_CORES)
|
|
|
|
generic_deferred_push(deferred_push_configurations, DISPLAYLIST_CONFIG_FILES)
|
|
|
|
generic_deferred_push(deferred_push_video_shader_preset, DISPLAYLIST_SHADER_PRESET)
|
|
|
|
generic_deferred_push(deferred_push_video_shader_pass, DISPLAYLIST_SHADER_PASS)
|
|
|
|
generic_deferred_push(deferred_push_video_filter, DISPLAYLIST_VIDEO_FILTERS)
|
|
|
|
generic_deferred_push(deferred_push_images, DISPLAYLIST_IMAGES)
|
|
|
|
generic_deferred_push(deferred_push_audio_dsp_plugin, DISPLAYLIST_AUDIO_FILTERS)
|
|
|
|
generic_deferred_push(deferred_push_cheat_file_load, DISPLAYLIST_CHEAT_FILES)
|
2018-07-25 23:19:14 +00:00
|
|
|
generic_deferred_push(deferred_push_cheat_file_load_append, DISPLAYLIST_CHEAT_FILES)
|
2017-12-05 13:11:50 +00:00
|
|
|
generic_deferred_push(deferred_push_remap_file_load, DISPLAYLIST_REMAP_FILES)
|
|
|
|
generic_deferred_push(deferred_push_record_configfile, DISPLAYLIST_RECORD_CONFIG_FILES)
|
|
|
|
generic_deferred_push(deferred_push_input_overlay, DISPLAYLIST_OVERLAYS)
|
|
|
|
generic_deferred_push(deferred_push_video_font_path, DISPLAYLIST_FONTS)
|
|
|
|
generic_deferred_push(deferred_push_xmb_font_path, DISPLAYLIST_FONTS)
|
|
|
|
generic_deferred_push(deferred_push_content_history_path, DISPLAYLIST_CONTENT_HISTORY)
|
|
|
|
generic_deferred_push(deferred_push_core_information, DISPLAYLIST_CORE_INFO)
|
|
|
|
generic_deferred_push(deferred_push_system_information, DISPLAYLIST_SYSTEM_INFO)
|
|
|
|
generic_deferred_push(deferred_push_network_information, DISPLAYLIST_NETWORK_INFO)
|
|
|
|
generic_deferred_push(deferred_push_achievement_list, DISPLAYLIST_ACHIEVEMENT_LIST)
|
|
|
|
generic_deferred_push(deferred_push_rdb_collection, DISPLAYLIST_PLAYLIST_COLLECTION)
|
|
|
|
generic_deferred_push(deferred_main_menu_list, DISPLAYLIST_MAIN_MENU)
|
|
|
|
generic_deferred_push(deferred_music_list, DISPLAYLIST_MUSIC_LIST)
|
|
|
|
generic_deferred_push(deferred_user_binds_list, DISPLAYLIST_USER_BINDS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_accounts_list, DISPLAYLIST_ACCOUNTS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_driver_settings_list, DISPLAYLIST_DRIVER_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_core_settings_list, DISPLAYLIST_CORE_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_video_settings_list, DISPLAYLIST_VIDEO_SETTINGS_LIST)
|
2018-09-16 06:06:06 +00:00
|
|
|
generic_deferred_push(deferred_push_crt_switchres_settings_list, DISPLAYLIST_CRT_SWITCHRES_SETTINGS_LIST)
|
2017-12-05 13:11:50 +00:00
|
|
|
generic_deferred_push(deferred_push_configuration_settings_list, DISPLAYLIST_CONFIGURATION_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_saving_settings_list, DISPLAYLIST_SAVING_SETTINGS_LIST)
|
2018-04-30 12:34:25 +00:00
|
|
|
generic_deferred_push(deferred_push_mixer_stream_settings_list, DISPLAYLIST_MIXER_STREAM_SETTINGS_LIST)
|
2017-12-05 13:11:50 +00:00
|
|
|
generic_deferred_push(deferred_push_logging_settings_list, DISPLAYLIST_LOGGING_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_frame_throttle_settings_list, DISPLAYLIST_FRAME_THROTTLE_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_rewind_settings_list, DISPLAYLIST_REWIND_SETTINGS_LIST)
|
2018-07-25 23:19:14 +00:00
|
|
|
generic_deferred_push(deferred_push_cheat_details_settings_list, DISPLAYLIST_CHEAT_DETAILS_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_cheat_search_settings_list, DISPLAYLIST_CHEAT_SEARCH_SETTINGS_LIST)
|
2017-12-05 13:30:54 +00:00
|
|
|
generic_deferred_push(deferred_push_onscreen_display_settings_list, DISPLAYLIST_ONSCREEN_DISPLAY_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_onscreen_notifications_settings_list, DISPLAYLIST_ONSCREEN_NOTIFICATIONS_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_onscreen_overlay_settings_list, DISPLAYLIST_ONSCREEN_OVERLAY_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_menu_file_browser_settings_list,DISPLAYLIST_MENU_FILE_BROWSER_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_menu_views_settings_list, DISPLAYLIST_MENU_VIEWS_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_quick_menu_views_settings_list, DISPLAYLIST_QUICK_MENU_VIEWS_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_menu_settings_list, DISPLAYLIST_MENU_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_user_interface_settings_list, DISPLAYLIST_USER_INTERFACE_SETTINGS_LIST)
|
2018-06-19 04:23:38 +00:00
|
|
|
generic_deferred_push(deferred_push_power_management_settings_list, DISPLAYLIST_POWER_MANAGEMENT_SETTINGS_LIST)
|
2017-12-05 13:30:54 +00:00
|
|
|
generic_deferred_push(deferred_push_retro_achievements_settings_list,DISPLAYLIST_RETRO_ACHIEVEMENTS_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_updater_settings_list, DISPLAYLIST_UPDATER_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_wifi_settings_list, DISPLAYLIST_WIFI_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_network_settings_list, DISPLAYLIST_NETWORK_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_lakka_services_list, DISPLAYLIST_LAKKA_SERVICES_LIST)
|
|
|
|
generic_deferred_push(deferred_push_user_settings_list, DISPLAYLIST_USER_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_directory_settings_list, DISPLAYLIST_DIRECTORY_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_privacy_settings_list, DISPLAYLIST_PRIVACY_SETTINGS_LIST)
|
2018-06-04 05:48:08 +00:00
|
|
|
generic_deferred_push(deferred_push_midi_settings_list, DISPLAYLIST_MIDI_SETTINGS_LIST)
|
2017-12-05 13:30:54 +00:00
|
|
|
generic_deferred_push(deferred_push_audio_settings_list, DISPLAYLIST_AUDIO_SETTINGS_LIST)
|
2018-04-30 12:34:25 +00:00
|
|
|
generic_deferred_push(deferred_push_audio_mixer_settings_list, DISPLAYLIST_AUDIO_MIXER_SETTINGS_LIST)
|
2017-12-05 13:30:54 +00:00
|
|
|
generic_deferred_push(deferred_push_input_settings_list, DISPLAYLIST_INPUT_SETTINGS_LIST)
|
2018-04-16 21:21:14 +00:00
|
|
|
generic_deferred_push(deferred_push_latency_settings_list, DISPLAYLIST_LATENCY_SETTINGS_LIST)
|
2017-12-05 13:30:54 +00:00
|
|
|
generic_deferred_push(deferred_push_recording_settings_list, DISPLAYLIST_RECORDING_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_playlist_settings_list, DISPLAYLIST_PLAYLIST_SETTINGS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_input_hotkey_binds_list, DISPLAYLIST_INPUT_HOTKEY_BINDS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_accounts_cheevos_list, DISPLAYLIST_ACCOUNTS_CHEEVOS_LIST)
|
|
|
|
generic_deferred_push(deferred_push_help, DISPLAYLIST_HELP_SCREEN_LIST)
|
|
|
|
generic_deferred_push(deferred_push_rdb_entry_detail, DISPLAYLIST_DATABASE_ENTRY)
|
|
|
|
generic_deferred_push(deferred_push_rpl_entry_actions, DISPLAYLIST_HORIZONTAL_CONTENT_ACTIONS)
|
|
|
|
generic_deferred_push(deferred_push_core_list_deferred, DISPLAYLIST_CORES_SUPPORTED)
|
|
|
|
generic_deferred_push(deferred_push_core_collection_list_deferred, DISPLAYLIST_CORES_COLLECTION_SUPPORTED)
|
2015-02-26 16:33:00 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_NETWORKING
|
2017-12-05 13:11:50 +00:00
|
|
|
generic_deferred_push(deferred_push_thumbnails_updater_list, DISPLAYLIST_THUMBNAILS_UPDATER)
|
|
|
|
generic_deferred_push(deferred_push_core_updater_list, DISPLAYLIST_CORES_UPDATER)
|
|
|
|
generic_deferred_push(deferred_push_core_content_list, DISPLAYLIST_CORE_CONTENT)
|
|
|
|
generic_deferred_push(deferred_push_core_content_dirs_list, DISPLAYLIST_CORE_CONTENT_DIRS)
|
|
|
|
generic_deferred_push(deferred_push_core_content_dirs_subdir_list, DISPLAYLIST_CORE_CONTENT_DIRS_SUBDIR)
|
|
|
|
generic_deferred_push(deferred_push_lakka_list, DISPLAYLIST_LAKKA)
|
2015-03-01 03:40:15 +00:00
|
|
|
#endif
|
|
|
|
|
2016-06-20 20:51:48 +00:00
|
|
|
static int deferred_push_cursor_manager_list_deferred(
|
2018-04-11 04:11:54 +00:00
|
|
|
menu_displaylist_info_t *info)
|
2016-06-20 20:51:48 +00:00
|
|
|
{
|
2016-10-15 23:49:54 +00:00
|
|
|
char rdb_path[PATH_MAX_LENGTH];
|
2016-06-20 20:51:48 +00:00
|
|
|
int ret = -1;
|
|
|
|
char *query = NULL;
|
|
|
|
char *rdb = NULL;
|
|
|
|
settings_t *settings = config_get_ptr();
|
2017-09-28 01:06:54 +00:00
|
|
|
const char *path = info->path;
|
|
|
|
config_file_t *conf = path ? config_file_new(path) : NULL;
|
2016-06-20 20:51:48 +00:00
|
|
|
|
|
|
|
if (!conf || !settings)
|
|
|
|
goto end;
|
|
|
|
|
|
|
|
if (!config_get_string(conf, "query", &query))
|
|
|
|
goto end;
|
|
|
|
|
|
|
|
if (!config_get_string(conf, "rdb", &rdb))
|
|
|
|
goto end;
|
|
|
|
|
2016-10-15 23:49:54 +00:00
|
|
|
rdb_path[0] = '\0';
|
|
|
|
|
2017-04-28 22:39:29 +00:00
|
|
|
fill_pathname_join(rdb_path,
|
|
|
|
settings->paths.path_content_database,
|
2016-06-20 20:51:48 +00:00
|
|
|
rdb, sizeof(rdb_path));
|
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path_b))
|
2017-09-28 00:30:31 +00:00
|
|
|
free(info->path_b);
|
2018-04-09 14:42:12 +00:00
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path_c))
|
2017-09-28 00:30:31 +00:00
|
|
|
free(info->path_c);
|
2018-04-09 14:42:12 +00:00
|
|
|
|
|
|
|
info->path_b = strdup(info->path);
|
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path))
|
2017-09-28 01:06:54 +00:00
|
|
|
free(info->path);
|
2017-09-28 00:30:31 +00:00
|
|
|
|
|
|
|
info->path_c = strdup(query);
|
2017-09-28 01:06:54 +00:00
|
|
|
info->path = strdup(rdb_path);
|
2017-09-28 00:30:31 +00:00
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
ret = deferred_push_dlist(info, DISPLAYLIST_DATABASE_QUERY);
|
2016-06-20 20:51:48 +00:00
|
|
|
|
|
|
|
end:
|
|
|
|
if (conf)
|
|
|
|
config_file_free(conf);
|
|
|
|
free(rdb);
|
|
|
|
free(query);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2016-12-20 20:27:02 +00:00
|
|
|
|
2016-12-24 02:21:29 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-12-20 20:27:02 +00:00
|
|
|
static int deferred_push_cursor_manager_list_generic(
|
2018-04-11 04:11:54 +00:00
|
|
|
menu_displaylist_info_t *info, enum database_query_type type)
|
2016-12-20 20:27:02 +00:00
|
|
|
{
|
|
|
|
char query[PATH_MAX_LENGTH];
|
2017-09-28 01:06:54 +00:00
|
|
|
int ret = -1;
|
|
|
|
const char *path = info->path;
|
2017-12-12 07:55:31 +00:00
|
|
|
struct string_list *str_list = path ? string_split(path, "|") : NULL;
|
2017-09-28 01:06:54 +00:00
|
|
|
|
|
|
|
if (!str_list)
|
|
|
|
goto end;
|
2016-12-20 20:27:02 +00:00
|
|
|
|
|
|
|
query[0] = '\0';
|
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
database_info_build_query_enum(query, sizeof(query), type, str_list->elems[0].data);
|
2016-12-20 20:27:02 +00:00
|
|
|
|
|
|
|
if (string_is_empty(query))
|
|
|
|
goto end;
|
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path_b))
|
2017-09-28 00:30:31 +00:00
|
|
|
free(info->path_b);
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path_c))
|
2017-09-28 00:30:31 +00:00
|
|
|
free(info->path_c);
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path))
|
2017-09-28 01:06:54 +00:00
|
|
|
free(info->path);
|
2017-09-28 00:30:31 +00:00
|
|
|
|
2017-09-28 01:06:54 +00:00
|
|
|
info->path = strdup(str_list->elems[1].data);
|
2017-09-28 00:30:31 +00:00
|
|
|
info->path_b = strdup(str_list->elems[0].data);
|
|
|
|
info->path_c = strdup(query);
|
2016-12-20 20:27:02 +00:00
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
ret = deferred_push_dlist(info, DISPLAYLIST_DATABASE_QUERY);
|
2016-12-20 20:27:02 +00:00
|
|
|
|
|
|
|
end:
|
|
|
|
string_list_free(str_list);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2017-12-05 14:44:41 +00:00
|
|
|
#define generic_deferred_cursor_manager(name, type) \
|
2018-04-11 04:11:54 +00:00
|
|
|
static int (name)(menu_displaylist_info_t *info) \
|
2017-12-05 14:44:41 +00:00
|
|
|
{ \
|
2018-04-11 04:11:54 +00:00
|
|
|
return deferred_push_cursor_manager_list_generic(info, type); \
|
2016-12-20 20:27:02 +00:00
|
|
|
}
|
|
|
|
|
2017-12-05 14:44:41 +00:00
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_max_users, DATABASE_QUERY_ENTRY_MAX_USERS)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_famitsu_magazine_rating, DATABASE_QUERY_ENTRY_FAMITSU_MAGAZINE_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_rating, DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_issue, DATABASE_QUERY_ENTRY_EDGE_MAGAZINE_ISSUE)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_elspa_rating, DATABASE_QUERY_ENTRY_ELSPA_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_cero_rating, DATABASE_QUERY_ENTRY_CERO_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_pegi_rating, DATABASE_QUERY_ENTRY_PEGI_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_bbfc_rating, DATABASE_QUERY_ENTRY_BBFC_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_esrb_rating, DATABASE_QUERY_ENTRY_ESRB_RATING)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_enhancement_hw, DATABASE_QUERY_ENTRY_ENHANCEMENT_HW)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_franchise, DATABASE_QUERY_ENTRY_FRANCHISE)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_publisher, DATABASE_QUERY_ENTRY_PUBLISHER)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_developer, DATABASE_QUERY_ENTRY_DEVELOPER)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_origin, DATABASE_QUERY_ENTRY_ORIGIN)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_releasemonth, DATABASE_QUERY_ENTRY_RELEASEDATE_MONTH)
|
|
|
|
generic_deferred_cursor_manager(deferred_push_cursor_manager_list_deferred_query_rdb_entry_releaseyear, DATABASE_QUERY_ENTRY_RELEASEDATE_YEAR)
|
2016-12-20 20:40:41 +00:00
|
|
|
|
2016-12-24 02:21:29 +00:00
|
|
|
#endif
|
2016-12-20 20:40:41 +00:00
|
|
|
|
|
|
|
#if 0
|
2016-06-20 20:51:48 +00:00
|
|
|
static int deferred_push_cursor_manager_list_deferred_query_subsearch(
|
2018-04-11 04:11:54 +00:00
|
|
|
menu_displaylist_info_t *info)
|
2016-06-20 20:51:48 +00:00
|
|
|
{
|
|
|
|
int ret = -1;
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-10-26 04:23:05 +00:00
|
|
|
char query[PATH_MAX_LENGTH];
|
2017-12-12 07:55:31 +00:00
|
|
|
struct string_list *str_list = string_split(info->path, "|");
|
2016-06-20 20:51:48 +00:00
|
|
|
|
2016-10-26 04:23:05 +00:00
|
|
|
query[0] = '\0';
|
|
|
|
|
2016-06-20 20:51:48 +00:00
|
|
|
database_info_build_query(query, sizeof(query),
|
|
|
|
info->label, str_list->elems[0].data);
|
|
|
|
|
|
|
|
if (string_is_empty(query))
|
|
|
|
goto end;
|
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path))
|
2017-09-28 01:06:54 +00:00
|
|
|
free(info->path);
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path_b))
|
2017-09-28 00:30:31 +00:00
|
|
|
free(info->path_b);
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path_c))
|
2017-09-28 00:30:31 +00:00
|
|
|
free(info->path_c);
|
2017-09-28 01:06:54 +00:00
|
|
|
info->path = strdup(str_list->elems[1].data);
|
|
|
|
info->path_b = strdup(str_list->elems[0].data);
|
2017-09-28 00:30:31 +00:00
|
|
|
info->path_c = strdup(query);
|
2016-06-20 20:51:48 +00:00
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
ret = deferred_push_dlist(info, DISPLAYLIST_DATABASE_QUERY);
|
2016-06-20 20:51:48 +00:00
|
|
|
|
|
|
|
end:
|
|
|
|
string_list_free(str_list);
|
|
|
|
#endif
|
|
|
|
return ret;
|
|
|
|
}
|
2016-12-20 20:40:41 +00:00
|
|
|
#endif
|
2016-06-20 20:51:48 +00:00
|
|
|
|
2016-01-25 17:21:48 +00:00
|
|
|
static int general_push(menu_displaylist_info_t *info,
|
2016-02-25 21:11:02 +00:00
|
|
|
unsigned id, enum menu_displaylist_ctl_state state)
|
2015-07-14 10:49:54 +00:00
|
|
|
{
|
2017-09-27 23:37:39 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
char *newstring2 = NULL;
|
|
|
|
core_info_list_t *list = NULL;
|
2018-04-11 04:11:54 +00:00
|
|
|
menu_handle_t *menu = NULL;
|
2017-09-27 23:37:39 +00:00
|
|
|
rarch_system_info_t *system = runloop_get_system_info();
|
2017-05-29 23:44:49 +00:00
|
|
|
struct retro_system_info *system_menu = &system->info;
|
2016-02-10 20:15:23 +00:00
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
2016-02-10 20:42:18 +00:00
|
|
|
return menu_cbs_exit();
|
2016-02-07 15:10:42 +00:00
|
|
|
|
2016-05-09 16:11:17 +00:00
|
|
|
core_info_get_list(&list);
|
2015-07-14 10:49:54 +00:00
|
|
|
|
2015-09-01 22:10:40 +00:00
|
|
|
switch (id)
|
2015-09-01 18:27:14 +00:00
|
|
|
{
|
2015-09-01 22:10:40 +00:00
|
|
|
case PUSH_DEFAULT:
|
|
|
|
case PUSH_DETECT_CORE_LIST:
|
|
|
|
break;
|
|
|
|
default:
|
2017-09-28 01:06:54 +00:00
|
|
|
{
|
|
|
|
char tmp_str[PATH_MAX_LENGTH];
|
|
|
|
char tmp_str2[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
tmp_str[0] = '\0';
|
|
|
|
tmp_str2[0] = '\0';
|
|
|
|
|
|
|
|
fill_pathname_join(tmp_str, menu->scratch2_buf,
|
|
|
|
menu->scratch_buf, sizeof(tmp_str));
|
|
|
|
fill_pathname_join(tmp_str2, menu->scratch2_buf,
|
|
|
|
menu->scratch_buf, sizeof(tmp_str2));
|
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->path))
|
2017-09-28 01:06:54 +00:00
|
|
|
free(info->path);
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->label))
|
2017-09-28 01:06:54 +00:00
|
|
|
free(info->label);
|
|
|
|
|
|
|
|
info->path = strdup(tmp_str);
|
|
|
|
info->label = strdup(tmp_str2);
|
|
|
|
}
|
2015-09-01 22:10:40 +00:00
|
|
|
break;
|
2015-09-01 18:27:14 +00:00
|
|
|
}
|
2015-07-14 10:49:54 +00:00
|
|
|
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_PLAIN;
|
2015-07-14 10:49:54 +00:00
|
|
|
|
2015-09-01 17:22:33 +00:00
|
|
|
switch (id)
|
2015-07-14 10:49:54 +00:00
|
|
|
{
|
2015-09-01 18:27:14 +00:00
|
|
|
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
|
2016-03-21 19:56:11 +00:00
|
|
|
case PUSH_ARCHIVE_OPEN:
|
|
|
|
case PUSH_DEFAULT:
|
2016-07-01 08:40:31 +00:00
|
|
|
info->setting = menu_setting_find_enum(info->enum_idx);
|
2016-03-21 19:56:11 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2017-09-27 23:37:39 +00:00
|
|
|
newstring2 = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
|
|
|
|
|
|
|
|
newstring2[0] = '\0';
|
|
|
|
|
2016-03-21 19:56:11 +00:00
|
|
|
switch (id)
|
|
|
|
{
|
2015-09-01 18:27:14 +00:00
|
|
|
case PUSH_ARCHIVE_OPEN:
|
2017-09-27 23:37:39 +00:00
|
|
|
|
2017-05-28 14:25:46 +00:00
|
|
|
if (system_menu && system_menu->valid_extensions)
|
2015-09-01 17:22:33 +00:00
|
|
|
{
|
2015-12-10 22:08:34 +00:00
|
|
|
if (*system_menu->valid_extensions)
|
2017-09-27 23:37:39 +00:00
|
|
|
strlcpy(newstring2, system_menu->valid_extensions,
|
|
|
|
PATH_MAX_LENGTH * sizeof(char));
|
2015-09-01 17:22:33 +00:00
|
|
|
}
|
|
|
|
else
|
2015-10-11 11:16:38 +00:00
|
|
|
{
|
2017-09-27 23:37:39 +00:00
|
|
|
strlcpy(newstring2, system->valid_extensions,
|
|
|
|
PATH_MAX_LENGTH * sizeof(char));
|
2015-10-11 11:16:38 +00:00
|
|
|
}
|
2017-09-27 23:37:39 +00:00
|
|
|
break;
|
|
|
|
case PUSH_DEFAULT:
|
2017-08-04 19:16:49 +00:00
|
|
|
{
|
2017-09-29 03:39:06 +00:00
|
|
|
bool new_exts_allocated = false;
|
|
|
|
char *new_exts = NULL;
|
2017-08-04 19:16:49 +00:00
|
|
|
|
2017-09-27 23:37:39 +00:00
|
|
|
if (menu_setting_get_browser_selection_type(info->setting) == ST_DIR)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
else if (system_menu && system_menu->valid_extensions)
|
|
|
|
{
|
|
|
|
if (*system_menu->valid_extensions)
|
2017-09-29 03:39:06 +00:00
|
|
|
{
|
|
|
|
new_exts = strdup(system_menu->valid_extensions);
|
|
|
|
new_exts_allocated = true;
|
|
|
|
}
|
2017-09-27 23:37:39 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (!string_is_empty(system->valid_extensions))
|
2017-09-29 03:39:06 +00:00
|
|
|
{
|
|
|
|
new_exts = strdup(system->valid_extensions);
|
|
|
|
new_exts_allocated = true;
|
|
|
|
}
|
2017-09-27 23:37:39 +00:00
|
|
|
}
|
|
|
|
|
2017-09-28 14:29:45 +00:00
|
|
|
if (!new_exts)
|
|
|
|
new_exts = info->exts;
|
|
|
|
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(new_exts))
|
2017-09-27 23:37:39 +00:00
|
|
|
{
|
|
|
|
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
|
2017-12-12 07:55:31 +00:00
|
|
|
struct string_list *str_list3 = string_split(new_exts, "|");
|
2017-09-27 23:37:39 +00:00
|
|
|
|
2017-08-04 19:08:02 +00:00
|
|
|
#ifdef HAVE_IBXM
|
2018-01-30 17:07:12 +00:00
|
|
|
{
|
|
|
|
union string_list_elem_attr attr;
|
|
|
|
attr.i = 0;
|
|
|
|
string_list_append(str_list3, "s3m", attr);
|
|
|
|
string_list_append(str_list3, "mod", attr);
|
|
|
|
string_list_append(str_list3, "xm", attr);
|
|
|
|
}
|
2017-08-04 19:08:02 +00:00
|
|
|
#endif
|
2017-09-27 23:37:39 +00:00
|
|
|
string_list_join_concat(newstring2, path_size,
|
|
|
|
str_list3, "|");
|
|
|
|
string_list_free(str_list3);
|
2017-09-29 03:39:06 +00:00
|
|
|
|
2017-09-27 23:37:39 +00:00
|
|
|
}
|
2017-09-29 03:39:06 +00:00
|
|
|
|
|
|
|
if (new_exts_allocated)
|
|
|
|
free(new_exts);
|
2017-08-04 19:16:49 +00:00
|
|
|
}
|
2015-09-01 18:27:14 +00:00
|
|
|
break;
|
2017-04-29 19:19:20 +00:00
|
|
|
case PUSH_ARCHIVE_OPEN_DETECT_CORE:
|
2015-09-01 22:10:40 +00:00
|
|
|
case PUSH_DETECT_CORE_LIST:
|
2016-12-12 15:20:43 +00:00
|
|
|
{
|
2017-04-29 18:27:40 +00:00
|
|
|
union string_list_elem_attr attr;
|
2017-09-09 20:02:49 +00:00
|
|
|
size_t path_size = PATH_MAX_LENGTH * sizeof(char);
|
|
|
|
char *newstring = (char*)malloc(PATH_MAX_LENGTH * sizeof(char));
|
2017-04-29 18:27:40 +00:00
|
|
|
struct string_list *str_list2 = string_list_new();
|
|
|
|
|
2017-09-27 23:37:39 +00:00
|
|
|
newstring[0] = '\0';
|
|
|
|
attr.i = 0;
|
2017-04-29 18:27:40 +00:00
|
|
|
|
2017-05-28 14:25:46 +00:00
|
|
|
if (system_menu && system_menu->valid_extensions)
|
2017-04-29 18:27:40 +00:00
|
|
|
{
|
|
|
|
if (!string_is_empty(system_menu->valid_extensions))
|
|
|
|
{
|
|
|
|
unsigned x;
|
|
|
|
struct string_list *str_list = string_split(system_menu->valid_extensions, "|");
|
|
|
|
|
|
|
|
for (x = 0; x < str_list->size; x++)
|
|
|
|
{
|
|
|
|
const char *elem = str_list->elems[x].data;
|
|
|
|
string_list_append(str_list2, elem, attr);
|
|
|
|
}
|
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-05-31 22:25:13 +00:00
|
|
|
if (!settings->bools.filter_by_current_core)
|
2017-04-29 18:27:40 +00:00
|
|
|
{
|
|
|
|
if (list && !string_is_empty(list->all_ext))
|
|
|
|
{
|
|
|
|
unsigned x;
|
|
|
|
struct string_list *str_list = string_split(list->all_ext, "|");
|
|
|
|
|
|
|
|
for (x = 0; x < str_list->size; x++)
|
|
|
|
{
|
|
|
|
if (!string_list_find_elem(str_list2, str_list->elems[x].data))
|
|
|
|
{
|
|
|
|
const char *elem = str_list->elems[x].data;
|
|
|
|
string_list_append(str_list2, elem, attr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-09 20:02:49 +00:00
|
|
|
string_list_join_concat(newstring, path_size,
|
2017-04-29 18:27:40 +00:00
|
|
|
str_list2, "|");
|
|
|
|
|
2017-08-04 19:16:49 +00:00
|
|
|
{
|
2017-12-12 07:55:31 +00:00
|
|
|
struct string_list *str_list3 = string_split(newstring, "|");
|
2017-08-04 19:16:49 +00:00
|
|
|
|
2017-08-04 19:08:02 +00:00
|
|
|
#ifdef HAVE_IBXM
|
2018-01-30 17:07:12 +00:00
|
|
|
{
|
|
|
|
union string_list_elem_attr attr;
|
|
|
|
attr.i = 0;
|
|
|
|
string_list_append(str_list3, "s3m", attr);
|
|
|
|
string_list_append(str_list3, "mod", attr);
|
|
|
|
string_list_append(str_list3, "xm", attr);
|
|
|
|
}
|
2017-08-04 19:08:02 +00:00
|
|
|
#endif
|
2017-09-09 20:02:49 +00:00
|
|
|
string_list_join_concat(newstring2, path_size,
|
2017-08-04 19:16:49 +00:00
|
|
|
str_list3, "|");
|
|
|
|
string_list_free(str_list3);
|
|
|
|
}
|
2017-09-09 20:02:49 +00:00
|
|
|
free(newstring);
|
2017-04-29 18:27:40 +00:00
|
|
|
string_list_free(str_list2);
|
2016-12-12 15:20:43 +00:00
|
|
|
}
|
2015-09-01 22:10:40 +00:00
|
|
|
break;
|
2015-07-14 10:49:54 +00:00
|
|
|
}
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings->bools.multimedia_builtin_mediaplayer_enable ||
|
|
|
|
settings->bools.multimedia_builtin_imageviewer_enable)
|
2015-07-14 10:49:54 +00:00
|
|
|
{
|
|
|
|
struct retro_system_info sysinfo = {0};
|
|
|
|
|
|
|
|
(void)sysinfo;
|
2018-06-20 02:50:58 +00:00
|
|
|
#if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings->bools.multimedia_builtin_mediaplayer_enable)
|
2015-07-14 10:49:54 +00:00
|
|
|
{
|
2018-07-01 20:22:02 +00:00
|
|
|
#if defined(HAVE_FFMPEG)
|
2015-07-14 10:49:54 +00:00
|
|
|
libretro_ffmpeg_retro_get_system_info(&sysinfo);
|
2018-07-01 20:22:02 +00:00
|
|
|
#elif defined(HAVE_MPV)
|
|
|
|
libretro_mpv_retro_get_system_info(&sysinfo);
|
|
|
|
#endif
|
2017-09-27 23:37:39 +00:00
|
|
|
strlcat(newstring2, "|", PATH_MAX_LENGTH * sizeof(char));
|
|
|
|
strlcat(newstring2, sysinfo.valid_extensions,
|
|
|
|
PATH_MAX_LENGTH * sizeof(char));
|
2015-07-14 10:49:54 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_IMAGEVIEWER
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings->bools.multimedia_builtin_imageviewer_enable)
|
2015-07-14 10:49:54 +00:00
|
|
|
{
|
|
|
|
libretro_imageviewer_retro_get_system_info(&sysinfo);
|
2017-09-27 23:37:39 +00:00
|
|
|
strlcat(newstring2, "|",
|
|
|
|
PATH_MAX_LENGTH * sizeof(char));
|
|
|
|
strlcat(newstring2, sysinfo.valid_extensions,
|
|
|
|
PATH_MAX_LENGTH * sizeof(char));
|
2015-07-14 10:49:54 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2017-09-27 23:37:39 +00:00
|
|
|
if (!string_is_empty(newstring2))
|
|
|
|
{
|
2017-10-04 04:53:47 +00:00
|
|
|
if (!string_is_empty(info->exts))
|
2017-09-27 23:37:39 +00:00
|
|
|
free(info->exts);
|
|
|
|
info->exts = strdup(newstring2);
|
|
|
|
}
|
|
|
|
free(newstring2);
|
|
|
|
|
2018-04-11 04:11:54 +00:00
|
|
|
return deferred_push_dlist(info, state);
|
2015-07-14 10:49:54 +00:00
|
|
|
}
|
|
|
|
|
2017-12-06 03:05:38 +00:00
|
|
|
#define generic_deferred_push_general(name, a, b) \
|
2018-04-11 04:11:54 +00:00
|
|
|
static int (name)(menu_displaylist_info_t *info) \
|
2017-12-06 03:05:38 +00:00
|
|
|
{ \
|
2018-04-11 04:11:54 +00:00
|
|
|
return general_push(info, a, b); \
|
2015-09-01 17:22:33 +00:00
|
|
|
}
|
2015-07-14 10:49:54 +00:00
|
|
|
|
2017-12-06 03:05:38 +00:00
|
|
|
#define generic_deferred_push_clear_general(name, a, b) \
|
2018-04-11 04:11:54 +00:00
|
|
|
static int (name)(menu_displaylist_info_t *info) \
|
2017-12-06 03:05:38 +00:00
|
|
|
{ \
|
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list); \
|
2018-04-11 04:11:54 +00:00
|
|
|
return general_push(info, a, b); \
|
2015-09-01 18:27:14 +00:00
|
|
|
}
|
|
|
|
|
2017-12-06 03:05:38 +00:00
|
|
|
generic_deferred_push_general(deferred_push_detect_core_list, PUSH_DETECT_CORE_LIST, DISPLAYLIST_CORES_DETECTED)
|
|
|
|
generic_deferred_push_general(deferred_archive_open_detect_core, PUSH_ARCHIVE_OPEN_DETECT_CORE, DISPLAYLIST_DEFAULT)
|
|
|
|
generic_deferred_push_general(deferred_archive_open, PUSH_ARCHIVE_OPEN, DISPLAYLIST_DEFAULT)
|
|
|
|
generic_deferred_push_general(deferred_push_default, PUSH_DEFAULT, DISPLAYLIST_DEFAULT)
|
|
|
|
generic_deferred_push_general(deferred_push_favorites_list, PUSH_DEFAULT, DISPLAYLIST_FAVORITES)
|
2015-07-14 10:49:54 +00:00
|
|
|
|
2017-12-06 03:05:38 +00:00
|
|
|
generic_deferred_push_clear_general(deferred_playlist_list, PUSH_DEFAULT, DISPLAYLIST_PLAYLIST)
|
|
|
|
generic_deferred_push_clear_general(deferred_music_history_list, PUSH_DEFAULT, DISPLAYLIST_MUSIC_HISTORY)
|
|
|
|
generic_deferred_push_clear_general(deferred_image_history_list, PUSH_DEFAULT, DISPLAYLIST_IMAGES_HISTORY)
|
|
|
|
generic_deferred_push_clear_general(deferred_video_history_list, PUSH_DEFAULT, DISPLAYLIST_VIDEO_HISTORY)
|
2018-09-23 08:59:09 +00:00
|
|
|
generic_deferred_push_clear_general(deferred_push_dropdown_box_list, PUSH_DEFAULT, DISPLAYLIST_DROPDOWN_LIST)
|
2017-08-15 22:01:56 +00:00
|
|
|
|
2018-02-09 00:09:17 +00:00
|
|
|
static int menu_cbs_init_bind_deferred_push_compare_label(
|
|
|
|
menu_file_list_cbs_t *cbs,
|
|
|
|
const char *label, uint32_t label_hash)
|
2015-06-07 16:07:25 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST)))
|
2016-06-18 20:17:39 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_favorites_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-09-23 08:59:09 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_dropdown_box_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_LIST)))
|
2016-07-02 08:17:09 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_browse_url_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_BROWSE_URL_START)))
|
2016-07-02 10:03:50 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_browse_url_start);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST)))
|
2016-07-02 10:03:50 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CONFIGURATION_SETTINGS_LIST)))
|
2016-07-02 11:17:24 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configuration_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_SAVING_SETTINGS_LIST)))
|
2016-07-02 11:17:24 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_saving_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-04-30 12:34:25 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MIXER_STREAM_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_mixer_stream_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LOGGING_SETTINGS_LIST)))
|
2016-07-02 11:49:05 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_logging_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_FRAME_THROTTLE_SETTINGS_LIST)))
|
2016-11-23 13:28:15 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_frame_throttle_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_REWIND_SETTINGS_LIST)))
|
2016-07-02 11:49:05 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rewind_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-07-25 23:19:14 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CHEAT_DETAILS_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_details_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CHEAT_SEARCH_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_search_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ONSCREEN_DISPLAY_SETTINGS_LIST)))
|
2017-02-02 03:00:55 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_display_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ONSCREEN_NOTIFICATIONS_SETTINGS_LIST)))
|
2017-06-20 00:04:23 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_notifications_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ONSCREEN_OVERLAY_SETTINGS_LIST)))
|
2017-10-09 06:14:52 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_onscreen_overlay_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MENU_FILE_BROWSER_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_menu_file_browser_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MENU_VIEWS_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_menu_views_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_QUICK_MENU_VIEWS_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_quick_menu_views_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MENU_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_menu_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_INTERFACE_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_user_interface_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-06-19 04:23:38 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_POWER_MANAGEMENT_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_power_management_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RETRO_ACHIEVEMENTS_SETTINGS_LIST)))
|
2016-09-21 21:08:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_retro_achievements_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_UPDATER_SETTINGS_LIST)))
|
2016-08-09 23:46:47 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_updater_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_NETWORK_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_network_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_WIFI_SETTINGS_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_wifi_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LAKKA_SERVICES_LIST)))
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_lakka_services_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_SETTINGS_LIST)))
|
2016-06-20 23:40:55 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_user_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_DIRECTORY_SETTINGS_LIST)))
|
2016-07-12 16:29:31 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_directory_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_PRIVACY_SETTINGS_LIST)))
|
2018-02-05 13:19:50 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_privacy_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-06-04 05:48:08 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MIDI_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_midi_settings_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST)))
|
2018-02-05 13:19:50 +00:00
|
|
|
{
|
2016-07-12 16:29:31 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_list);
|
2016-07-12 16:29:31 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST)))
|
2017-05-27 21:56:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_subdir_list);
|
2018-02-07 18:36:59 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (
|
|
|
|
string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MUSIC)))
|
2018-02-07 21:22:04 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_music_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (
|
|
|
|
string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MUSIC_LIST)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_music_history_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (
|
|
|
|
string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_playlist_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (
|
|
|
|
string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_image_history_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (
|
|
|
|
string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_VIDEO_LIST)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_video_history_list);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
else if (strstr(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
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)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rpl_entry_actions);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_NETPLAY)))
|
2018-02-07 21:52:45 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_netplay_sublist);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_INPUT_SETTINGS_LIST)))
|
2018-02-07 18:36:59 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_settings_list);
|
2017-05-27 21:56:10 +00:00
|
|
|
}
|
2018-02-05 13:27:00 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_UPDATER_LIST)))
|
2018-02-06 20:55:49 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_updater_list);
|
|
|
|
}
|
2018-02-05 13:27:00 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_DRIVER_SETTINGS_LIST)))
|
2018-02-05 13:27:00 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_driver_settings_list);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_video_settings_list);
|
|
|
|
}
|
2018-09-16 06:06:06 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CRT_SWITCHRES_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_crt_switchres_settings_list);
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_AUDIO_SETTINGS_LIST)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_settings_list);
|
|
|
|
}
|
2018-04-30 12:34:25 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_AUDIO_MIXER_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_audio_mixer_settings_list);
|
|
|
|
}
|
2018-04-16 21:21:14 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LATENCY_SETTINGS_LIST)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_latency_settings_list);
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_INFORMATION)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_information);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SYSTEM_INFORMATION)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_system_information);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_LIST)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_accounts_list);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_LIST)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_list);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_history_list);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_OPTIONS)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_options);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_INFORMATION)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_network_information);
|
|
|
|
}
|
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_thumbnails_updater_list);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_LIST)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_list);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_ONLINE_UPDATER)))
|
2018-02-05 14:10:10 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_options);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_LIST)))
|
2018-02-05 14:50:16 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_help);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INFORMATION_LIST)))
|
2018-02-05 14:55:58 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_information_list);
|
|
|
|
}
|
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SHADER_OPTIONS)))
|
2018-02-06 20:55:49 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_shader_options);
|
2018-02-05 13:27:00 +00:00
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_BINDS_LIST)))
|
2017-08-16 01:15:04 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_user_binds_list);
|
2017-08-16 01:15:04 +00:00
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST)))
|
2017-08-16 01:15:04 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_input_hotkey_binds_list);
|
2017-08-16 17:20:24 +00:00
|
|
|
}
|
2018-05-02 22:04:19 +00:00
|
|
|
else if (strstr(label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_QUICK_MENU_OVERRIDE_OPTIONS)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_quick_menu_override_options);
|
|
|
|
}
|
2018-02-09 00:09:17 +00:00
|
|
|
else
|
2017-08-16 17:20:24 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
if (cbs->enum_idx != MSG_UNKNOWN)
|
2015-06-07 15:14:39 +00:00
|
|
|
{
|
2018-02-09 00:09:17 +00:00
|
|
|
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_PLAYLIST_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_playlist_settings_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_RECORDING_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_recording_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:
|
2016-06-16 15:54:06 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_list);
|
2016-06-20 22:54:14 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST:
|
2016-06-20 22:54:14 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_list);
|
2016-07-12 16:29:31 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST:
|
2016-07-12 16:29:31 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_core_content_dirs_subdir_list);
|
2016-06-16 15:54:06 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST:
|
2016-06-16 15:54:06 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_thumbnails_updater_list);
|
2016-06-16 15:54:06 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_LAKKA_LIST:
|
2015-07-04 01:37:43 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2018-02-09 00:09:17 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_lakka_list);
|
2015-07-04 01:37:43 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
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;
|
2018-07-25 23:19:14 +00:00
|
|
|
case MENU_ENUM_LABEL_CHEAT_FILE_LOAD_APPEND:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_file_load_append);
|
|
|
|
break;
|
2018-02-09 00:09:17 +00:00
|
|
|
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_NETPLAY:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_netplay);
|
|
|
|
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_CONFIGURATIONS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configurations_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_LOAD_CONTENT_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_load_content_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_LOAD_CONTENT_SPECIAL:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_load_content_special);
|
|
|
|
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;
|
2016-12-24 02:21:29 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2018-02-09 00:09:17 +00:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_publisher);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_developer);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_origin);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_franchise);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ENHANCEMENT_HW:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_enhancement_hw);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_esrb_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_bbfc_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_elspa_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_pegi_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_cero_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_issue);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FAMITSU_MAGAZINE_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_famitsu_magazine_rating);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_max_users);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_releasemonth);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_releaseyear);
|
|
|
|
break;
|
2016-12-24 02:21:29 +00:00
|
|
|
#endif
|
2018-02-09 00:09:17 +00:00
|
|
|
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_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;
|
2018-09-16 06:06:06 +00:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CRT_SWITCHRES_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_crt_switchres_settings_list);
|
|
|
|
break;
|
2018-02-09 00:09:17 +00:00
|
|
|
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;
|
2018-04-16 21:21:14 +00:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_LATENCY_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_latency_settings_list);
|
|
|
|
break;
|
2018-02-09 00:09:17 +00:00
|
|
|
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_FAVORITES:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_detect_core_list);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
switch (label_hash)
|
|
|
|
{
|
|
|
|
case MENU_LABEL_SETTINGS: /* TODO/FIXME */
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_settings);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CONFIGURATIONS_LIST: /* TODO/FIXME */
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_configurations_list);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_playlist_settings_list);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_RECORDING_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_recording_settings_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_LAKKA_LIST:
|
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_lakka_list);
|
|
|
|
#endif
|
|
|
|
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;
|
2018-07-25 23:19:14 +00:00
|
|
|
case MENU_LABEL_CHEAT_FILE_LOAD_APPEND:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cheat_file_load_append);
|
|
|
|
break;
|
2018-02-09 00:09:17 +00:00
|
|
|
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_NETPLAY:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_netplay);
|
|
|
|
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_MANAGEMENT:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_management_options);
|
|
|
|
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;
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
|
|
|
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:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_publisher);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_developer);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_origin);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_franchise);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ENHANCEMENT_HW:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_enhancement_hw);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_esrb_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_bbfc_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_elspa_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_pegi_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_cero_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_edge_magazine_issue);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FAMITSU_MAGAZINE_RATING:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_famitsu_magazine_rating);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_max_users);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_releasemonth);
|
|
|
|
break;
|
|
|
|
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_cursor_manager_list_deferred_query_rdb_entry_releaseyear);
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
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_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_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_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_FAVORITES:
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_detect_core_list);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
2016-06-16 15:54:06 +00:00
|
|
|
}
|
2018-02-05 14:10:10 +00:00
|
|
|
}
|
2015-06-07 15:10:06 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-01-25 17:21:48 +00:00
|
|
|
static int menu_cbs_init_bind_deferred_push_compare_type(
|
2016-07-01 17:58:08 +00:00
|
|
|
menu_file_list_cbs_t *cbs, unsigned type)
|
2015-06-07 22:09:12 +00:00
|
|
|
{
|
2016-07-02 18:49:38 +00:00
|
|
|
if (type == FILE_TYPE_PLAYLIST_COLLECTION)
|
2015-10-11 19:08:07 +00:00
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rdb_collection);
|
|
|
|
}
|
2015-06-25 07:15:34 +00:00
|
|
|
else if (type == MENU_SETTING_ACTION_CORE_DISK_OPTIONS)
|
2015-10-11 19:08:07 +00:00
|
|
|
{
|
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_disk_options);
|
|
|
|
}
|
2015-06-07 22:09:12 +00:00
|
|
|
else
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-06-12 14:01:46 +00:00
|
|
|
int menu_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs,
|
2018-02-09 00:09:17 +00:00
|
|
|
const char *path, const char *label, unsigned type, size_t idx,
|
|
|
|
uint32_t label_hash)
|
2015-02-26 16:33:00 +00:00
|
|
|
{
|
|
|
|
if (!cbs)
|
2015-06-07 16:36:10 +00:00
|
|
|
return -1;
|
2015-02-26 16:33:00 +00:00
|
|
|
|
2015-10-11 19:08:07 +00:00
|
|
|
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_default);
|
2015-02-26 16:33:00 +00:00
|
|
|
|
2017-09-01 00:27:14 +00:00
|
|
|
if (cbs->enum_idx != MENU_ENUM_LABEL_PLAYLIST_ENTRY &&
|
2018-02-09 00:09:17 +00:00
|
|
|
menu_cbs_init_bind_deferred_push_compare_label(cbs, label, label_hash) == 0)
|
2015-06-07 16:36:10 +00:00
|
|
|
return 0;
|
|
|
|
|
2016-01-25 17:21:48 +00:00
|
|
|
if (menu_cbs_init_bind_deferred_push_compare_type(
|
2016-07-01 17:58:08 +00:00
|
|
|
cbs, type) == 0)
|
2015-06-07 16:36:10 +00:00
|
|
|
return 0;
|
2015-06-05 10:54:58 +00:00
|
|
|
|
2015-06-07 16:36:10 +00:00
|
|
|
return -1;
|
2015-02-26 16:33:00 +00:00
|
|
|
}
|