RetroArch/menu/cbs/menu_cbs_title.c

1673 lines
64 KiB
C
Raw Normal View History

2015-06-01 10:24:48 +00:00
/* RetroArch - A frontend for libretro.
2016-01-10 03:06:50 +00:00
* Copyright (C) 2011-2016 - Daniel De Matteis
2015-06-01 10:24:48 +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/>.
*/
#include <lists/string_list.h>
2015-06-01 10:24:48 +00:00
#include <string/stdstring.h>
#include <file/file_path.h>
#include <compat/strl.h>
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-06-13 17:12:10 +00:00
#ifndef BIND_ACTION_GET_TITLE
#define BIND_ACTION_GET_TITLE(cbs, name) \
cbs->action_get_title = name; \
cbs->action_get_title_ident = #name;
#endif
static void replace_chars(char *str, char c1, char c2)
2015-06-01 10:24:48 +00:00
{
2015-06-12 15:23:31 +00:00
char *pos = NULL;
2015-06-01 10:24:48 +00:00
while((pos = strchr(str, c1)))
*pos = c2;
}
static void sanitize_to_string(char *s, const char *label, size_t len)
2015-06-01 10:24:48 +00:00
{
2016-10-27 07:32:07 +00:00
char new_label[255];
new_label[0] = '\0';
2015-06-12 15:23:31 +00:00
2015-06-01 10:24:48 +00:00
strlcpy(new_label, label, sizeof(new_label));
strlcpy(s, new_label, len);
2015-06-02 16:28:51 +00:00
replace_chars(s, '_', ' ');
2015-06-01 10:24:48 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_user_accounts_cheevos_list(const char *path, const char *label,
2015-06-08 11:28:28 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACCOUNTS_RETRO_ACHIEVEMENTS), len);
2015-07-17 18:33:09 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_download_core_content_list(const char *path, const char *label,
2015-06-08 11:28:28 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE_CONTENT), len);
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_user_accounts_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACCOUNTS_LIST), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_core_information_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFORMATION), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_core_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_LIST), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_online_updater_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER), len);
return 0;
2015-06-08 10:45:29 +00:00
}
static int action_get_netplay_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY), len);
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_online_thumbnails_updater_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_core_updater_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_add_content_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-11-04 14:03:09 +00:00
static int action_get_configurations_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-11-18 19:45:10 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONFIGURATIONS_SETTINGS), len);
2016-11-04 14:03:09 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_core_options_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_OPTIONS), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_load_recent_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_HISTORY), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_quick_menu_list(const char *path, const char *label,
2015-06-08 10:45:29 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONTENT_SETTINGS), len);
return 0;
2015-06-08 10:45:29 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_input_remapping_options_list(const char *path, const char *label,
2015-06-02 16:28:51 +00:00
unsigned menu_type, char *s, size_t len)
2015-06-01 10:24:48 +00:00
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INPUT_REMAPPING_OPTIONS), len);
2015-06-01 10:24:48 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_shader_options_list(const char *path, const char *label,
2015-06-08 10:04:11 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS), len);
2015-06-08 10:04:11 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_disk_options_list(const char *path, const char *label,
2015-10-28 07:25:15 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISK_OPTIONS), len);
2015-10-28 07:25:15 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_frontend_counters_list(const char *path, const char *label,
2015-10-28 07:25:15 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FRONTEND_COUNTERS), len);
2015-10-28 07:25:15 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_core_counters_list(const char *path, const char *label,
2015-10-28 07:25:15 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_COUNTERS), len);
2015-10-28 07:25:15 +00:00
return 0;
}
2016-10-08 13:05:31 +00:00
static int action_get_recording_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS), len);
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_playlist_settings_list(const char *path, const char *label,
2015-10-28 03:26:53 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLIST_SETTINGS), len);
2015-10-28 03:26:53 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_input_hotkey_binds_settings_list(const char *path, const char *label,
2015-10-28 04:00:48 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_HOTKEY_BINDS), len);
2015-10-28 04:00:48 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_driver_settings_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_core_settings_list(const char *path, const char *label,
2016-05-02 12:16:47 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_SETTINGS), len);
2016-05-02 12:16:47 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_video_settings_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-07-02 08:17:09 +00:00
static int action_get_configuration_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-11-20 08:08:08 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONFIGURATIONS_SETTINGS), len);
2016-07-02 08:17:09 +00:00
return 0;
}
static int action_get_saving_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVING_SETTINGS), len);
return 0;
}
static int action_get_logging_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS), len);
return 0;
}
static int action_get_frame_throttle_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS), len);
return 0;
}
static int action_get_rewind_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REWIND_SETTINGS), len);
return 0;
}
static int action_get_onscreen_display_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS), len);
return 0;
}
static int action_get_onscreen_overlay_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONSCREEN_OVERLAY_SETTINGS), len);
return 0;
}
2016-07-02 18:40:27 +00:00
static int action_get_menu_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS), len);
return 0;
}
static int action_get_user_interface_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER_INTERFACE_SETTINGS), len);
return 0;
}
static int action_get_menu_file_browser_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS), len);
return 0;
}
static int action_get_retro_achievements_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RETRO_ACHIEVEMENTS_SETTINGS), len);
return 0;
}
static int action_get_wifi_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_WIFI_SETTINGS), len);
return 0;
}
2016-07-02 18:40:27 +00:00
static int action_get_network_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETWORK_SETTINGS), len);
return 0;
}
static int action_get_lakka_services_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LAKKA_SERVICES), len);
return 0;
}
2016-07-02 18:40:27 +00:00
static int action_get_user_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER_SETTINGS), len);
return 0;
}
static int action_get_directory_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DIRECTORY_SETTINGS), len);
return 0;
}
static int action_get_privacy_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PRIVACY_SETTINGS), len);
return 0;
}
static int action_get_updater_settings_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATER_SETTINGS), len);
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_audio_settings_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_input_settings_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_core_cheat_options_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_CHEAT_OPTIONS), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_load_content_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_cursor_manager_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CURSOR_MANAGER), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_database_manager_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DATABASE_MANAGER), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_system_information_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFORMATION), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_network_information_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETWORK_INFORMATION), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_settings_list(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SETTINGS), len);
2015-10-28 05:25:24 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_title_information_list(const char *path, const char *label,
2015-10-28 05:31:58 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INFORMATION_LIST), len);
2015-10-28 05:31:58 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_title_action_generic(const char *path, const char *label,
2015-10-28 05:31:58 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
sanitize_to_string(s, label, len);
2015-10-28 05:31:58 +00:00
return 0;
}
2016-06-20 20:57:11 +00:00
static int fill_title(char *s, const char *title, const char *path, size_t len)
{
2016-06-20 20:57:11 +00:00
fill_pathname_join_delim(s, title, path, ' ', len);
return 0;
}
2016-06-20 20:57:11 +00:00
static int action_get_title_disk_image_append(const char *path, const char *label,
2016-06-18 20:17:39 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISK_IMAGE_APPEND),
path, len);
2016-06-18 20:17:39 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_cheat_file_load(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT_FILE),
path, len);
}
2016-06-20 20:57:11 +00:00
static int action_get_title_remap_file_load(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REMAP_FILE), path, len);
}
2016-06-20 20:57:11 +00:00
static int action_get_title_overlay(const char *path, const char *label,
2015-10-28 05:31:58 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OVERLAY), path, len);
2015-10-28 05:31:58 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_video_filter(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_FILTER), path, len);
2015-10-28 05:25:24 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_cheat_directory(const char *path, const char *label,
2015-10-28 05:25:24 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT_DATABASE_PATH), path, len);
2015-10-28 05:25:24 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_core_directory(const char *path, const char *label,
2015-10-28 03:26:53 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LIBRETRO_DIR_PATH), path, len);
2015-10-28 03:26:53 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_core_info_directory(const char *path, const char *label,
2015-10-28 03:26:53 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LIBRETRO_INFO_PATH), path, len);
2015-10-28 03:26:53 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_audio_filter(const char *path, const char *label,
2015-10-28 03:26:53 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_AUDIO_FILTER_DIR), path, len);
2015-10-28 03:26:53 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_font_path(const char *path, const char *label,
2016-03-03 06:27:47 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-06-20 20:57:11 +00:00
return fill_title(s, "Font", path, len);
2016-03-03 06:27:47 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_video_shader_preset(const char *path, const char *label,
2015-10-28 03:11:43 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_TWO), path, len);
2015-10-28 03:11:43 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_deferred_core_list(const char *path, const char *label,
2015-06-08 10:22:13 +00:00
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SUPPORTED_CORES),
path, len);
2015-06-08 10:22:13 +00:00
}
2015-06-08 11:16:56 +00:00
static int action_get_title_configurations(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONFIG), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_content_database_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONTENT_DATABASE_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_savestate_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_dynamic_wallpapers_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DYNAMIC_WALLPAPERS_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_core_assets_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:47:11 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIR), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_config_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RGUI_CONFIG_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_input_remapping_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_REMAPPING_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_autoconfig_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_JOYPAD_AUTOCONFIG_DIR), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_playlist_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLIST_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_browser_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RGUI_BROWSER_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_content_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:47:11 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONTENT_DIR), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_screenshot_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCREENSHOT_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_cursor_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CURSOR_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_onscreen_overlay_keyboard_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OSK_OVERLAY_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_recording_config_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RECORDING_CONFIG_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_recording_output_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RECORDING_OUTPUT_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_video_shader_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_DIR), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_audio_filter_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_AUDIO_FILTER_DIR), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_video_filter_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_DIR), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_savefile_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVEFILE_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_overlay_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OVERLAY_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_system_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:13:24 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_assets_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ASSETS_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
static int action_get_title_extraction_directory(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return fill_title(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CACHE_DIRECTORY), path, len);
2015-06-08 11:16:56 +00:00
}
2015-06-08 11:48:39 +00:00
static int action_get_title_menu(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:29:27 +00:00
return fill_title(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS), path, len);
2015-06-08 11:48:39 +00:00
}
2016-06-20 20:57:11 +00:00
static int action_get_title_help(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_LIST), len);
return 0;
}
static int action_get_title_generic(char *s, size_t len, const char *path,
const char *text)
{
struct string_list *list_path = NULL;
if (!string_is_empty(path))
list_path = string_split(path, "|");
if (list_path)
{
2016-10-27 07:32:07 +00:00
char elem0_path[255];
elem0_path[0] = '\0';
2016-06-20 20:57:11 +00:00
if (list_path->size > 0)
strlcpy(elem0_path, list_path->elems[0].data, sizeof(elem0_path));
string_list_free(list_path);
snprintf(s, len, "%s - %s", text,
(string_is_empty(elem0_path)) ? "" : path_basename(elem0_path));
}
else
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE), len);
2016-06-20 20:57:11 +00:00
return 0;
}
static int action_get_title_deferred_database_manager_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION));
}
static int action_get_title_deferred_cursor_manager_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List");
}
static int action_get_title_list_rdb_entry_developer(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Developer ");
}
static int action_get_title_list_rdb_entry_publisher(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Publisher ");
}
static int action_get_title_list_rdb_entry_origin(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Origin ");
}
static int action_get_title_list_rdb_entry_franchise(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Franchise ");
}
static int action_get_title_list_rdb_entry_edge_magazine_rating(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Edge Magazine Rating ");
}
static int action_get_title_list_rdb_entry_edge_magazine_issue(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Edge Magazine Issue ");
}
static int action_get_title_list_rdb_entry_releasedate_by_month(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Releasedate By Month ");
}
static int action_get_title_list_rdb_entry_releasedate_by_year(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Releasedate By Year ");
}
static int action_get_title_list_rdb_entry_esrb_rating(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: ESRB Rating ");
}
static int action_get_title_list_rdb_entry_database_info(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Info ");
}
static int action_get_title_list_rdb_entry_elspa_rating(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Databsae Cursor List - Filter: ELSPA Rating ");
}
static int action_get_title_list_rdb_entry_pegi_rating(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: PEGI Rating ");
}
static int action_get_title_list_rdb_entry_cero_rating(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: CERO Rating ");
}
static int action_get_title_list_rdb_entry_bbfc_rating(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: BBFC Rating ");
}
static int action_get_title_list_rdb_entry_max_users(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
return action_get_title_generic(s, len, path, "Database Cursor List - Filter: Max Users ");
}
static int action_get_title_default(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
snprintf(s, len, "%s %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_CONTENT), path);
return 0;
}
static int action_get_title_group_settings(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MAIN_MENU), len);
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_HISTORY_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HISTORY_TAB), len);
2016-07-30 17:29:10 +00:00
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_TAB), len);
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_IMAGES_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_IMAGES_TAB), len);
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_MUSIC_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MUSIC_TAB), len);
2016-06-20 20:57:11 +00:00
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SETTINGS_TAB), len);
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_PLAYLISTS_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PLAYLISTS_TAB), len);
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_ADD_TAB)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ADD_TAB), len);
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_HORIZONTAL_MENU)))
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HORIZONTAL_MENU), len);
else
{
2016-10-27 07:32:07 +00:00
char elem0[255];
char elem1[255];
2016-06-20 20:57:11 +00:00
struct string_list *list_label = string_split(label, "|");
elem0[0] = elem1[0] = '\0';
2016-06-20 20:57:11 +00:00
if (list_label)
{
if (list_label->size > 0)
{
strlcpy(elem0, list_label->elems[0].data, sizeof(elem0));
if (list_label->size > 1)
strlcpy(elem1, list_label->elems[1].data, sizeof(elem1));
}
string_list_free(list_label);
}
strlcpy(s, elem0, len);
if (!string_is_empty(elem1))
{
strlcat(s, " - ", len);
strlcat(s, elem1, len);
}
}
return 0;
}
2015-06-08 11:48:39 +00:00
static int action_get_title_input_settings(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-07-14 22:11:16 +00:00
strlcpy(s,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS), len);
2015-06-08 11:48:39 +00:00
return 0;
}
static int action_get_title_input_binds_list(const char *path, const char *label,
unsigned menu_type, char *s, size_t len)
{
2016-06-20 19:17:28 +00:00
unsigned val = (((unsigned)path[0]) - 49) + 1;
snprintf(s, len, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS), val);
return 0;
}
static int menu_cbs_init_bind_title_compare_label(menu_file_list_cbs_t *cbs,
2016-07-01 17:24:26 +00:00
const char *label, uint32_t label_hash)
2015-06-01 10:24:48 +00:00
{
if (cbs->setting)
2015-06-08 10:04:11 +00:00
{
const char *parent_group = cbs->setting->parent_group;
2015-06-14 14:08:28 +00:00
if (string_is_equal(parent_group, msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU))
2016-10-31 14:01:40 +00:00
&& setting_get_type(cbs->setting) == ST_GROUP)
2015-06-08 10:04:11 +00:00
{
BIND_ACTION_GET_TITLE(cbs, action_get_title_group_settings);
2015-06-08 11:32:54 +00:00
return 0;
2015-06-08 10:04:11 +00:00
}
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST)))
2016-06-18 20:17:39 +00:00
{
BIND_ACTION_GET_TITLE(cbs, action_get_core_settings_list);
return 0;
}
2016-11-20 08:08:08 +00:00
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CONFIGURATIONS_SETTINGS)))
2016-07-02 08:17:09 +00:00
{
BIND_ACTION_GET_TITLE(cbs, action_get_configuration_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_SAVING_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_saving_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LOGGING_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_logging_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_FRAME_THROTTLE_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_frame_throttle_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_REWIND_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_rewind_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ONSCREEN_DISPLAY_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_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_GET_TITLE(cbs, action_get_onscreen_overlay_settings_list);
return 0;
}
2016-07-02 18:40:27 +00:00
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MENU_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_menu_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_INTERFACE_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_user_interface_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_MENU_FILE_BROWSER_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_menu_file_browser_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RETRO_ACHIEVEMENTS_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_retro_achievements_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_WIFI_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_wifi_settings_list);
return 0;
}
2016-07-02 18:40:27 +00:00
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_UPDATER_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_updater_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_NETWORK_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_network_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_LAKKA_SERVICES_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_lakka_services_list);
return 0;
}
2016-07-02 18:40:27 +00:00
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_USER_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_user_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_DIRECTORY_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_directory_settings_list);
return 0;
}
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_PRIVACY_SETTINGS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_privacy_settings_list);
return 0;
}
2016-06-21 02:21:18 +00:00
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_download_core_content_list);
return 0;
}
2016-07-12 16:43:00 +00:00
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST)))
{
BIND_ACTION_GET_TITLE(cbs, action_get_download_core_content_list);
return 0;
}
if (cbs->enum_idx != MSG_UNKNOWN)
{
2016-06-16 18:14:15 +00:00
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_database_manager_list);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_cursor_manager_list);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_developer);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_publisher);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_origin);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_franchise);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_edge_magazine_rating);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_edge_magazine_issue);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_releasedate_by_month);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_releasedate_by_year);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_esrb_rating);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_elspa_rating);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_pegi_rating);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_cero_rating);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_bbfc_rating);
break;
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_max_users);
break;
case MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_database_info);
break;
case MENU_ENUM_LABEL_DEFERRED_CORE_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_core_list);
break;
2016-11-18 19:45:10 +00:00
case MENU_ENUM_LABEL_CONFIG_LOAD:
2016-06-16 18:14:15 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_title_configurations);
break;
case MENU_ENUM_LABEL_JOYPAD_AUTOCONFIG_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_autoconfig_directory);
break;
case MENU_ENUM_LABEL_CACHE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_extraction_directory);
break;
case MENU_ENUM_LABEL_SYSTEM_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_system_directory);
break;
case MENU_ENUM_LABEL_ASSETS_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_assets_directory);
break;
case MENU_ENUM_LABEL_SAVEFILE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_savefile_directory);
break;
case MENU_ENUM_LABEL_OVERLAY_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_overlay_directory);
break;
case MENU_ENUM_LABEL_RGUI_BROWSER_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_browser_directory);
break;
case MENU_ENUM_LABEL_PLAYLIST_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_playlist_directory);
break;
case MENU_ENUM_LABEL_CONTENT_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_content_directory);
break;
case MENU_ENUM_LABEL_SCREENSHOT_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_screenshot_directory);
break;
case MENU_ENUM_LABEL_VIDEO_SHADER_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_shader_directory);
break;
case MENU_ENUM_LABEL_VIDEO_FILTER_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_filter_directory);
break;
case MENU_ENUM_LABEL_AUDIO_FILTER_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_audio_filter_directory);
break;
case MENU_ENUM_LABEL_CURSOR_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_cursor_directory);
break;
case MENU_ENUM_LABEL_RECORDING_CONFIG_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_recording_config_directory);
break;
case MENU_ENUM_LABEL_RECORDING_OUTPUT_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_recording_output_directory);
break;
case MENU_ENUM_LABEL_OSK_OVERLAY_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_onscreen_overlay_keyboard_directory);
break;
case MENU_ENUM_LABEL_INPUT_REMAPPING_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_input_remapping_directory);
break;
case MENU_ENUM_LABEL_CONTENT_DATABASE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_content_database_directory);
break;
case MENU_ENUM_LABEL_SAVESTATE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_savestate_directory);
break;
case MENU_ENUM_LABEL_DYNAMIC_WALLPAPERS_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_dynamic_wallpapers_directory);
break;
case MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_core_assets_directory);
break;
case MENU_ENUM_LABEL_RGUI_CONFIG_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_config_directory);
break;
case MENU_ENUM_LABEL_INFORMATION_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_information_list);
break;
case MENU_ENUM_LABEL_SETTINGS:
BIND_ACTION_GET_TITLE(cbs, action_get_settings_list);
break;
case MENU_ENUM_LABEL_DATABASE_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_database_manager_list);
break;
case MENU_ENUM_LABEL_SYSTEM_INFORMATION:
BIND_ACTION_GET_TITLE(cbs, action_get_system_information_list);
break;
case MENU_ENUM_LABEL_NETWORK_INFORMATION:
BIND_ACTION_GET_TITLE(cbs, action_get_network_information_list);
break;
case MENU_ENUM_LABEL_CURSOR_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_cursor_manager_list);
break;
case MENU_ENUM_LABEL_CORE_INFORMATION:
BIND_ACTION_GET_TITLE(cbs, action_get_core_information_list);
break;
case MENU_ENUM_LABEL_CORE_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_core_list);
break;
case MENU_ENUM_LABEL_LOAD_CONTENT_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_load_content_list);
break;
case MENU_ENUM_LABEL_ONLINE_UPDATER:
BIND_ACTION_GET_TITLE(cbs, action_get_online_updater_list);
break;
case MENU_ENUM_LABEL_NETPLAY:
BIND_ACTION_GET_TITLE(cbs, action_get_netplay_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_ENUM_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_online_thumbnails_updater_list);
break;
case MENU_ENUM_LABEL_DEFERRED_CORE_UPDATER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_core_updater_list);
break;
case MENU_ENUM_LABEL_ADD_CONTENT_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_add_content_list);
break;
2016-11-18 19:45:10 +00:00
case MENU_ENUM_LABEL_CONFIGURATIONS_SETTINGS:
2016-11-04 14:03:09 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_configurations_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_ENUM_LABEL_CORE_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_core_options_list);
break;
case MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_load_recent_list);
break;
case MENU_ENUM_LABEL_CONTENT_SETTINGS:
BIND_ACTION_GET_TITLE(cbs, action_get_quick_menu_list);
break;
case MENU_ENUM_LABEL_CORE_INPUT_REMAPPING_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_input_remapping_options_list);
break;
case MENU_ENUM_LABEL_CORE_CHEAT_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_core_cheat_options_list);
break;
case MENU_ENUM_LABEL_SHADER_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_shader_options_list);
break;
case MENU_ENUM_LABEL_DISK_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_disk_options_list);
break;
case MENU_ENUM_LABEL_FRONTEND_COUNTERS:
BIND_ACTION_GET_TITLE(cbs, action_get_frontend_counters_list);
break;
case MENU_ENUM_LABEL_CORE_COUNTERS:
BIND_ACTION_GET_TITLE(cbs, action_get_core_counters_list);
break;
case MENU_ENUM_LABEL_DEFERRED_USER_BINDS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_input_binds_list);
break;
case MENU_ENUM_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_input_hotkey_binds_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_DRIVER_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_driver_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_video_settings_list);
break;
2016-11-20 08:08:08 +00:00
case MENU_ENUM_LABEL_DEFERRED_CONFIGURATIONS_SETTINGS:
2016-07-02 08:17:09 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_configuration_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_LOGGING_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_logging_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_SAVING_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_saving_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_FRAME_THROTTLE_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_frame_throttle_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_REWIND_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_rewind_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_ONSCREEN_DISPLAY_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_onscreen_display_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_ONSCREEN_OVERLAY_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_onscreen_overlay_settings_list);
break;
2016-06-18 20:17:39 +00:00
case MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_core_settings_list);
break;
case MENU_ENUM_LABEL_DEFERRED_AUDIO_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_audio_settings_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_ENUM_LABEL_DEFERRED_INPUT_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_input_settings_list);
break;
2016-10-08 13:05:31 +00:00
case MENU_ENUM_LABEL_DEFERRED_RECORDING_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_recording_settings_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_ENUM_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_playlist_settings_list);
break;
case MENU_ENUM_LABEL_MANAGEMENT:
case MENU_ENUM_LABEL_ACHIEVEMENT_LIST:
2016-11-05 21:55:57 +00:00
case MENU_ENUM_LABEL_ACHIEVEMENT_LIST_HARDCORE:
2016-06-16 18:14:15 +00:00
case MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS:
case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS:
case MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_action_generic);
break;
case MENU_ENUM_LABEL_DISK_IMAGE_APPEND:
BIND_ACTION_GET_TITLE(cbs, action_get_title_disk_image_append);
break;
case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_shader_preset);
break;
case MENU_ENUM_LABEL_CHEAT_FILE_LOAD:
BIND_ACTION_GET_TITLE(cbs, action_get_title_cheat_file_load);
break;
case MENU_ENUM_LABEL_REMAP_FILE_LOAD:
BIND_ACTION_GET_TITLE(cbs, action_get_title_remap_file_load);
break;
case MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_CHEEVOS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_user_accounts_cheevos_list);
break;
case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_LIST:
2016-07-12 16:43:00 +00:00
case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST:
2016-06-16 18:14:15 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_download_core_content_list);
break;
case MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_user_accounts_list);
break;
case MENU_ENUM_LABEL_HELP_LIST:
case MENU_ENUM_LABEL_HELP:
BIND_ACTION_GET_TITLE(cbs, action_get_title_help);
break;
case MENU_ENUM_LABEL_INPUT_OVERLAY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_overlay);
break;
case MENU_ENUM_LABEL_VIDEO_FONT_PATH:
case MENU_ENUM_LABEL_XMB_FONT:
2016-10-25 21:32:18 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_title_font_path);
2016-06-16 18:14:15 +00:00
break;
case MENU_ENUM_LABEL_VIDEO_FILTER:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_filter);
break;
case MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN:
BIND_ACTION_GET_TITLE(cbs, action_get_title_audio_filter);
break;
case MENU_ENUM_LABEL_CHEAT_DATABASE_PATH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_cheat_directory);
break;
case MENU_ENUM_LABEL_LIBRETRO_DIR_PATH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_core_directory);
break;
case MENU_ENUM_LABEL_LIBRETRO_INFO_PATH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_core_info_directory);
break;
default:
return -1;
}
}
else
{
switch (label_hash)
{
case MENU_LABEL_DEFERRED_DATABASE_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_database_manager_list);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_cursor_manager_list);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_developer);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_publisher);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_origin);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_franchise);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_edge_magazine_rating);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_edge_magazine_issue);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_releasedate_by_month);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_releasedate_by_year);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_esrb_rating);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_elspa_rating);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_pegi_rating);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_cero_rating);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_bbfc_rating);
break;
case MENU_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_max_users);
break;
case MENU_LABEL_DEFERRED_RDB_ENTRY_DETAIL:
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_database_info);
break;
case MENU_LABEL_DEFERRED_CORE_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_core_list);
break;
2016-11-18 19:45:10 +00:00
case MENU_LABEL_CONFIG_LOAD:
2016-06-16 18:14:15 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_title_configurations);
break;
case MENU_LABEL_JOYPAD_AUTOCONFIG_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_autoconfig_directory);
break;
case MENU_LABEL_CACHE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_extraction_directory);
break;
case MENU_LABEL_SYSTEM_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_system_directory);
break;
case MENU_LABEL_ASSETS_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_assets_directory);
break;
case MENU_LABEL_SAVEFILE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_savefile_directory);
break;
case MENU_LABEL_OVERLAY_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_overlay_directory);
break;
case MENU_LABEL_RGUI_BROWSER_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_browser_directory);
break;
case MENU_LABEL_PLAYLIST_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_playlist_directory);
break;
case MENU_LABEL_CONTENT_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_content_directory);
break;
case MENU_LABEL_SCREENSHOT_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_screenshot_directory);
break;
case MENU_LABEL_VIDEO_SHADER_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_shader_directory);
break;
case MENU_LABEL_VIDEO_FILTER_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_filter_directory);
break;
case MENU_LABEL_AUDIO_FILTER_DIR:
BIND_ACTION_GET_TITLE(cbs, action_get_title_audio_filter_directory);
break;
case MENU_LABEL_CURSOR_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_cursor_directory);
break;
case MENU_LABEL_RECORDING_CONFIG_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_recording_config_directory);
break;
case MENU_LABEL_RECORDING_OUTPUT_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_recording_output_directory);
break;
case MENU_LABEL_OSK_OVERLAY_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_onscreen_overlay_keyboard_directory);
break;
case MENU_LABEL_INPUT_REMAPPING_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_input_remapping_directory);
break;
case MENU_LABEL_CONTENT_DATABASE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_content_database_directory);
break;
case MENU_LABEL_SAVESTATE_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_savestate_directory);
break;
case MENU_LABEL_DYNAMIC_WALLPAPERS_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_dynamic_wallpapers_directory);
break;
case MENU_LABEL_CORE_ASSETS_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_core_assets_directory);
break;
case MENU_LABEL_RGUI_CONFIG_DIRECTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_config_directory);
break;
case MENU_LABEL_INFORMATION_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_information_list);
break;
case MENU_LABEL_SETTINGS:
BIND_ACTION_GET_TITLE(cbs, action_get_settings_list);
break;
case MENU_LABEL_DATABASE_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_database_manager_list);
break;
case MENU_LABEL_SYSTEM_INFORMATION:
BIND_ACTION_GET_TITLE(cbs, action_get_system_information_list);
break;
case MENU_LABEL_NETWORK_INFORMATION:
BIND_ACTION_GET_TITLE(cbs, action_get_network_information_list);
break;
case MENU_LABEL_CURSOR_MANAGER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_cursor_manager_list);
break;
case MENU_LABEL_CORE_INFORMATION:
BIND_ACTION_GET_TITLE(cbs, action_get_core_information_list);
break;
case MENU_LABEL_CORE_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_core_list);
break;
case MENU_LABEL_LOAD_CONTENT_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_load_content_list);
break;
case MENU_LABEL_ONLINE_UPDATER:
BIND_ACTION_GET_TITLE(cbs, action_get_online_updater_list);
break;
case MENU_LABEL_NETPLAY:
BIND_ACTION_GET_TITLE(cbs, action_get_netplay_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_online_thumbnails_updater_list);
break;
case MENU_LABEL_DEFERRED_CORE_UPDATER_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_core_updater_list);
break;
2016-11-18 19:45:10 +00:00
case MENU_LABEL_DEFERRED_CONFIGURATIONS_SETTINGS:
2016-11-04 14:03:09 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_configurations_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_LABEL_ADD_CONTENT_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_add_content_list);
break;
case MENU_LABEL_CORE_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_core_options_list);
break;
case MENU_LABEL_LOAD_CONTENT_HISTORY:
BIND_ACTION_GET_TITLE(cbs, action_get_load_recent_list);
break;
case MENU_LABEL_CONTENT_SETTINGS:
BIND_ACTION_GET_TITLE(cbs, action_get_quick_menu_list);
break;
case MENU_LABEL_CORE_INPUT_REMAPPING_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_input_remapping_options_list);
break;
case MENU_LABEL_CORE_CHEAT_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_core_cheat_options_list);
break;
case MENU_LABEL_SHADER_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_shader_options_list);
break;
case MENU_LABEL_DISK_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_disk_options_list);
break;
case MENU_LABEL_FRONTEND_COUNTERS:
BIND_ACTION_GET_TITLE(cbs, action_get_frontend_counters_list);
break;
case MENU_LABEL_CORE_COUNTERS:
BIND_ACTION_GET_TITLE(cbs, action_get_core_counters_list);
break;
case MENU_LABEL_DEFERRED_USER_BINDS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_input_binds_list);
break;
case MENU_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_input_hotkey_binds_settings_list);
break;
case MENU_LABEL_DEFERRED_DRIVER_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_driver_settings_list);
break;
case MENU_LABEL_DEFERRED_VIDEO_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_video_settings_list);
break;
case MENU_LABEL_DEFERRED_AUDIO_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_audio_settings_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_LABEL_DEFERRED_INPUT_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_input_settings_list);
break;
2016-10-08 13:05:31 +00:00
case MENU_LABEL_DEFERRED_RECORDING_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_recording_settings_list);
break;
2016-06-16 18:14:15 +00:00
case MENU_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_playlist_settings_list);
break;
case MENU_LABEL_MANAGEMENT:
case MENU_LABEL_ACHIEVEMENT_LIST:
case MENU_LABEL_VIDEO_SHADER_PARAMETERS:
case MENU_LABEL_VIDEO_SHADER_PRESET_PARAMETERS:
case MENU_LABEL_CONTENT_COLLECTION_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_title_action_generic);
break;
case MENU_LABEL_DISK_IMAGE_APPEND:
BIND_ACTION_GET_TITLE(cbs, action_get_title_disk_image_append);
break;
case MENU_LABEL_VIDEO_SHADER_PRESET:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_shader_preset);
break;
case MENU_LABEL_CHEAT_FILE_LOAD:
BIND_ACTION_GET_TITLE(cbs, action_get_title_cheat_file_load);
break;
case MENU_LABEL_REMAP_FILE_LOAD:
BIND_ACTION_GET_TITLE(cbs, action_get_title_remap_file_load);
break;
case MENU_LABEL_DEFERRED_ACCOUNTS_CHEEVOS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_user_accounts_cheevos_list);
break;
case MENU_LABEL_DEFERRED_CORE_CONTENT_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_download_core_content_list);
break;
case MENU_LABEL_DEFERRED_ACCOUNTS_LIST:
BIND_ACTION_GET_TITLE(cbs, action_get_user_accounts_list);
break;
case MENU_LABEL_HELP_LIST:
case MENU_LABEL_HELP:
BIND_ACTION_GET_TITLE(cbs, action_get_title_help);
break;
case MENU_LABEL_INPUT_OVERLAY:
BIND_ACTION_GET_TITLE(cbs, action_get_title_overlay);
break;
case MENU_LABEL_VIDEO_FONT_PATH:
case MENU_LABEL_XMB_FONT:
2016-10-25 21:32:18 +00:00
BIND_ACTION_GET_TITLE(cbs, action_get_title_font_path);
2016-06-16 18:14:15 +00:00
break;
case MENU_LABEL_VIDEO_FILTER:
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_filter);
break;
case MENU_LABEL_AUDIO_DSP_PLUGIN:
BIND_ACTION_GET_TITLE(cbs, action_get_title_audio_filter);
break;
case MENU_LABEL_CHEAT_DATABASE_PATH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_cheat_directory);
break;
case MENU_LABEL_LIBRETRO_DIR_PATH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_core_directory);
break;
case MENU_LABEL_LIBRETRO_INFO_PATH:
BIND_ACTION_GET_TITLE(cbs, action_get_title_core_info_directory);
break;
default:
return -1;
}
}
2015-06-08 11:19:54 +00:00
return 0;
}
static int menu_cbs_init_bind_title_compare_type(menu_file_list_cbs_t *cbs,
2015-06-08 11:40:24 +00:00
unsigned type)
{
switch (type)
{
case MENU_SETTINGS:
BIND_ACTION_GET_TITLE(cbs, action_get_title_menu);
2015-06-08 11:40:24 +00:00
break;
case MENU_SETTINGS_CUSTOM_BIND:
case MENU_SETTINGS_CUSTOM_BIND_KEYBOARD:
BIND_ACTION_GET_TITLE(cbs, action_get_title_input_settings);
2015-06-08 11:40:24 +00:00
break;
case MENU_SETTING_ACTION_CORE_DISK_OPTIONS:
BIND_ACTION_GET_TITLE(cbs, action_get_title_action_generic);
break;
2015-06-08 11:40:24 +00:00
default:
return -1;
}
return 0;
}
int menu_cbs_init_bind_title(menu_file_list_cbs_t *cbs,
2015-06-08 11:19:54 +00:00
const char *path, const char *label, unsigned type, size_t idx,
2016-07-01 18:57:23 +00:00
uint32_t label_hash)
2015-06-08 11:19:54 +00:00
{
if (!cbs)
return -1;
BIND_ACTION_GET_TITLE(cbs, action_get_title_default);
2015-06-08 11:19:54 +00:00
2016-07-01 17:24:26 +00:00
if (menu_cbs_init_bind_title_compare_label(cbs, label, label_hash) == 0)
2015-06-08 11:19:54 +00:00
return 0;
if (menu_cbs_init_bind_title_compare_type(cbs, type) == 0)
2015-06-08 11:40:24 +00:00
return 0;
2015-06-07 16:36:10 +00:00
return -1;
2015-06-01 10:24:48 +00:00
}