2015-06-01 12:24:48 +02:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 13:40:32 +01:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2015-06-01 12:24:48 +02: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-03-20 14:53:54 +01:00
|
|
|
#include <lists/string_list.h>
|
2015-06-01 12:24:48 +02:00
|
|
|
#include <string/stdstring.h>
|
|
|
|
#include <file/file_path.h>
|
|
|
|
|
2015-06-22 12:11:21 +02:00
|
|
|
#include <compat/strl.h>
|
|
|
|
|
2015-12-06 17:55:27 +01:00
|
|
|
#include "../menu_driver.h"
|
2015-06-26 15:28:01 +02:00
|
|
|
#include "../menu_cbs.h"
|
2015-06-13 19:12:10 +02:00
|
|
|
|
2019-06-17 12:49:21 +02:00
|
|
|
#include "../../retroarch.h"
|
2019-09-24 17:38:06 +01:00
|
|
|
#include "../../configuration.h"
|
2020-10-15 05:29:20 +02:00
|
|
|
#include "../../core_option_manager.h"
|
2020-06-04 12:19:24 +01:00
|
|
|
#include "../../core_info.h"
|
2019-06-17 12:49:21 +02:00
|
|
|
|
2015-10-11 20:40:23 +02:00
|
|
|
#ifndef BIND_ACTION_GET_TITLE
|
2020-03-28 01:59:15 +01:00
|
|
|
#define BIND_ACTION_GET_TITLE(cbs, name) (cbs)->action_get_title = (name)
|
2015-10-11 20:40:23 +02:00
|
|
|
#endif
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
#define DEFAULT_TITLE_GENERIC_MACRO(func_name, lbl) \
|
2020-05-29 10:37:01 +02:00
|
|
|
static int (func_name)(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(lbl)); \
|
|
|
|
} \
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
#define SANITIZE_TO_STRING(s, label, len) \
|
2019-12-24 16:53:13 +01:00
|
|
|
{ \
|
|
|
|
char *pos = NULL; \
|
|
|
|
strlcpy(s, label, len); \
|
2020-06-26 20:00:19 +02:00
|
|
|
while ((pos = strchr(s, '_'))) \
|
2019-12-24 16:53:13 +01:00
|
|
|
*pos = ' '; \
|
|
|
|
}
|
2016-11-23 15:18:51 +01:00
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
#define DEFAULT_TITLE_MACRO(func_name, lbl) \
|
2016-11-23 14:54:54 +01:00
|
|
|
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
|
|
|
|
{ \
|
2018-01-18 06:32:50 +01:00
|
|
|
const char *str = msg_hash_to_str(lbl); \
|
|
|
|
if (s && !string_is_empty(str)) \
|
2019-05-18 04:07:37 +02:00
|
|
|
{ \
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, str, len); \
|
2019-05-18 04:07:37 +02:00
|
|
|
} \
|
2019-05-18 08:21:14 +02:00
|
|
|
return 1; \
|
2016-11-23 14:54:54 +01:00
|
|
|
}
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
#define DEFAULT_FILL_TITLE_MACRO(func_name, lbl) \
|
2016-11-23 15:18:51 +01:00
|
|
|
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
|
|
|
|
{ \
|
2019-05-18 04:07:37 +02:00
|
|
|
const char *title = msg_hash_to_str(lbl); \
|
|
|
|
if (!string_is_empty(path) && !string_is_empty(title)) \
|
|
|
|
fill_pathname_join_delim(s, title, path, ' ', len); \
|
2019-11-29 17:13:35 +00:00
|
|
|
else if (!string_is_empty(title)) \
|
|
|
|
strlcpy(s, title, len); \
|
2019-05-18 08:21:14 +02:00
|
|
|
return 1; \
|
2016-11-23 15:18:51 +01:00
|
|
|
}
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
#define DEFAULT_TITLE_COPY_MACRO(func_name, lbl) \
|
2016-11-23 16:11:32 +01:00
|
|
|
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
|
|
|
|
{ \
|
|
|
|
strlcpy(s, msg_hash_to_str(lbl), len); \
|
2019-05-18 08:21:14 +02:00
|
|
|
return 1; \
|
2016-11-23 16:11:32 +01:00
|
|
|
}
|
|
|
|
|
2020-08-14 17:52:01 +01:00
|
|
|
static void action_get_title_fill_search_filter_default(
|
2020-07-31 15:13:43 +01:00
|
|
|
char *s, enum msg_hash_enums lbl, size_t len)
|
|
|
|
{
|
2020-08-14 17:52:01 +01:00
|
|
|
/* Copy label value */
|
2020-07-31 15:13:43 +01:00
|
|
|
strlcpy(s, msg_hash_to_str(lbl), len);
|
|
|
|
|
|
|
|
/* Add current search terms */
|
|
|
|
menu_driver_search_append_terms_string(s, len);
|
|
|
|
}
|
|
|
|
|
2020-08-14 17:52:01 +01:00
|
|
|
#define DEFAULT_TITLE_SEARCH_FILTER_MACRO(func_name, lbl) \
|
2020-07-31 15:13:43 +01:00
|
|
|
static int (func_name)(const char *path, const char *label, unsigned menu_type, char *s, size_t len) \
|
|
|
|
{ \
|
2020-08-14 17:52:01 +01:00
|
|
|
action_get_title_fill_search_filter_default(s, lbl, len); \
|
2020-07-31 15:13:43 +01:00
|
|
|
return 0; \
|
|
|
|
}
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
static int action_get_title_action_generic(
|
|
|
|
const char *path, const char *label,
|
2020-05-29 10:37:01 +02:00
|
|
|
unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
if (s && !string_is_empty(label))
|
|
|
|
{
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, label, len);
|
2020-05-29 10:37:01 +02:00
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
static int action_get_title_remap_port(
|
|
|
|
const char *path, const char *label,
|
2019-12-24 08:10:20 +01:00
|
|
|
unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
char lbl[128];
|
2020-05-29 10:50:08 +02:00
|
|
|
snprintf(lbl, sizeof(lbl), "%s %d %s",
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PORT),
|
|
|
|
atoi(path) + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INPUT_REMAPPING_OPTIONS)
|
|
|
|
);
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, lbl, len);
|
2019-12-24 08:10:20 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2019-09-24 17:38:06 +01:00
|
|
|
static int action_get_title_thumbnails(
|
2020-02-13 18:13:21 +01:00
|
|
|
const char *path, const char *label, unsigned menu_type,
|
|
|
|
char *s, size_t len)
|
2019-09-24 17:38:06 +01:00
|
|
|
{
|
2019-12-02 22:20:36 +01:00
|
|
|
const char *title = NULL;
|
|
|
|
enum msg_hash_enums label_value = MENU_ENUM_LABEL_VALUE_THUMBNAILS;
|
2020-03-04 20:47:39 +01:00
|
|
|
const char *menu_ident = menu_driver_ident();
|
2019-09-24 17:38:06 +01:00
|
|
|
/* Get label value */
|
2020-02-13 18:13:21 +01:00
|
|
|
#ifdef HAVE_RGUI
|
2020-03-04 20:47:39 +01:00
|
|
|
if (string_is_equal(menu_ident, "rgui"))
|
2019-09-24 17:38:06 +01:00
|
|
|
label_value = MENU_ENUM_LABEL_VALUE_THUMBNAILS_RGUI;
|
2020-02-13 18:13:21 +01:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_MATERIALUI
|
2020-03-04 20:47:39 +01:00
|
|
|
if (string_is_equal(menu_ident, "glui"))
|
2019-11-08 16:25:36 +00:00
|
|
|
label_value = MENU_ENUM_LABEL_VALUE_THUMBNAILS_MATERIALUI;
|
2020-02-13 18:13:21 +01:00
|
|
|
#endif
|
2019-09-24 17:38:06 +01:00
|
|
|
|
|
|
|
title = msg_hash_to_str(label_value);
|
|
|
|
|
|
|
|
if (s && !string_is_empty(title))
|
|
|
|
{
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, title, len);
|
2019-09-24 17:38:06 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int action_get_title_left_thumbnails(
|
2020-02-13 18:13:21 +01:00
|
|
|
const char *path, const char *label, unsigned menu_type,
|
|
|
|
char *s, size_t len)
|
2019-09-24 17:38:06 +01:00
|
|
|
{
|
2019-12-02 22:20:36 +01:00
|
|
|
const char *title = NULL;
|
|
|
|
enum msg_hash_enums label_value = MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS;
|
2020-02-13 18:13:21 +01:00
|
|
|
#if defined(HAVE_RGUI) || defined(HAVE_OZONE) || defined(HAVE_MATERIALUI)
|
2020-03-04 20:47:39 +01:00
|
|
|
const char *menu_ident = menu_driver_ident();
|
2019-09-24 17:38:06 +01:00
|
|
|
/* Get label value */
|
2020-02-13 18:13:21 +01:00
|
|
|
#ifdef HAVE_RGUI
|
2020-03-04 20:47:39 +01:00
|
|
|
if (string_is_equal(menu_ident, "rgui"))
|
2019-09-24 17:38:06 +01:00
|
|
|
label_value = MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_RGUI;
|
2020-02-13 18:13:21 +01:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_OZONE
|
2020-03-04 20:47:39 +01:00
|
|
|
if (string_is_equal(menu_ident, "ozone"))
|
2019-09-24 17:38:06 +01:00
|
|
|
label_value = MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_OZONE;
|
2020-02-13 18:13:21 +01:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_MATERIALUI
|
2020-03-04 20:47:39 +01:00
|
|
|
if (string_is_equal(menu_ident, "glui"))
|
2019-11-08 16:25:36 +00:00
|
|
|
label_value = MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS_MATERIALUI;
|
2020-02-13 18:13:21 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
2019-09-24 17:38:06 +01:00
|
|
|
|
|
|
|
title = msg_hash_to_str(label_value);
|
|
|
|
|
|
|
|
if (s && !string_is_empty(title))
|
|
|
|
{
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, title, len);
|
2019-09-24 17:38:06 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-02-13 18:13:21 +01:00
|
|
|
static int action_get_title_dropdown_item(
|
|
|
|
const char *path, const char *label, unsigned menu_type,
|
|
|
|
char *s, size_t len)
|
2018-09-23 10:59:09 +02:00
|
|
|
{
|
2019-09-24 17:38:06 +01:00
|
|
|
/* Sanity check */
|
|
|
|
if (string_is_empty(path))
|
|
|
|
return 0;
|
|
|
|
|
2020-06-25 12:51:04 +02:00
|
|
|
if (string_starts_with_size(path, "core_option_", STRLEN_CONST("core_option_")))
|
2019-09-24 17:38:06 +01:00
|
|
|
{
|
|
|
|
/* This is a core options item */
|
2020-08-26 12:41:57 +02:00
|
|
|
struct string_list tmp_str_list = {0};
|
2019-09-24 17:38:06 +01:00
|
|
|
int ret = 0;
|
|
|
|
|
2020-08-26 12:41:57 +02:00
|
|
|
string_list_initialize(&tmp_str_list);
|
|
|
|
string_split_noalloc(&tmp_str_list, path, "_");
|
|
|
|
|
|
|
|
if (tmp_str_list.size > 0)
|
2019-09-24 17:38:06 +01:00
|
|
|
{
|
|
|
|
core_option_manager_t *coreopts = NULL;
|
|
|
|
|
|
|
|
rarch_ctl(RARCH_CTL_CORE_OPTIONS_LIST_GET, &coreopts);
|
|
|
|
|
|
|
|
if (coreopts)
|
|
|
|
{
|
2020-02-13 18:13:21 +01:00
|
|
|
unsigned i;
|
2020-08-26 12:41:57 +02:00
|
|
|
unsigned menu_index = string_to_unsigned(
|
|
|
|
tmp_str_list.elems[(unsigned)tmp_str_list.size - 1].data);
|
2019-09-24 17:38:06 +01:00
|
|
|
unsigned visible_index = 0;
|
|
|
|
unsigned option_index = 0;
|
|
|
|
bool option_found = false;
|
2020-03-04 20:47:39 +01:00
|
|
|
settings_t *settings = config_get_ptr();
|
2020-02-13 18:13:21 +01:00
|
|
|
bool game_specific_options = settings->bools.game_specific_options;
|
2019-09-24 17:38:06 +01:00
|
|
|
|
|
|
|
/* Convert menu index to option index */
|
2020-02-13 18:13:21 +01:00
|
|
|
if (game_specific_options)
|
2019-09-24 17:38:06 +01:00
|
|
|
menu_index--;
|
|
|
|
|
|
|
|
for (i = 0; i < coreopts->size; i++)
|
|
|
|
{
|
|
|
|
if (core_option_manager_get_visible(coreopts, i))
|
|
|
|
{
|
|
|
|
if (visible_index == menu_index)
|
|
|
|
{
|
|
|
|
option_found = true;
|
|
|
|
option_index = i;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
visible_index++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* If option was found, title == option description */
|
|
|
|
if (option_found)
|
|
|
|
{
|
2020-02-13 18:13:21 +01:00
|
|
|
const char *title = core_option_manager_get_desc(
|
|
|
|
coreopts, option_index);
|
2019-09-24 17:38:06 +01:00
|
|
|
|
|
|
|
if (s && !string_is_empty(title))
|
|
|
|
{
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, title, len);
|
2019-09-24 17:38:06 +01:00
|
|
|
ret = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Clean up */
|
2020-08-26 12:41:57 +02:00
|
|
|
string_list_deinitialize(&tmp_str_list);
|
2019-09-24 17:38:06 +01:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* This is a 'normal' drop down list */
|
|
|
|
|
|
|
|
/* In msg_hash.h, msg_hash_enums are generated via
|
|
|
|
* the following macro:
|
|
|
|
* #define MENU_LABEL(STR) \
|
|
|
|
* MENU_ENUM_LABEL_##STR, \
|
|
|
|
* MENU_ENUM_SUBLABEL_##STR, \
|
|
|
|
* MENU_ENUM_LABEL_VALUE_##STR
|
|
|
|
* to get 'MENU_ENUM_LABEL_VALUE_' from a
|
|
|
|
* 'MENU_ENUM_LABEL_', we therefore add 2... */
|
2020-02-13 18:13:21 +01:00
|
|
|
enum msg_hash_enums enum_idx = (enum msg_hash_enums)
|
|
|
|
(string_to_unsigned(path) + 2);
|
2019-09-24 17:38:06 +01:00
|
|
|
|
|
|
|
/* Check if enum index is valid
|
|
|
|
* Note: This is a very crude check, but better than nothing */
|
|
|
|
if ((enum_idx > MSG_UNKNOWN) && (enum_idx < MSG_LAST))
|
|
|
|
{
|
|
|
|
/* An annoyance: MENU_ENUM_LABEL_THUMBNAILS and
|
|
|
|
* MENU_ENUM_LABEL_LEFT_THUMBNAILS require special
|
|
|
|
* treatment, since their titles depend upon the
|
|
|
|
* current menu driver... */
|
2020-02-13 18:13:21 +01:00
|
|
|
switch (enum_idx)
|
2019-09-24 17:38:06 +01:00
|
|
|
{
|
2020-02-13 18:13:21 +01:00
|
|
|
case MENU_ENUM_LABEL_VALUE_THUMBNAILS:
|
|
|
|
return action_get_title_thumbnails(
|
|
|
|
path, label, menu_type, s, len);
|
|
|
|
case MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS:
|
|
|
|
return action_get_title_left_thumbnails(
|
|
|
|
path, label, menu_type, s, len);
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
const char *title = msg_hash_to_str(enum_idx);
|
2019-09-24 17:38:06 +01:00
|
|
|
|
2020-02-13 18:13:21 +01:00
|
|
|
if (s && !string_is_empty(title))
|
|
|
|
{
|
2020-06-07 02:41:48 +02:00
|
|
|
SANITIZE_TO_STRING(s, title, len);
|
2020-02-13 18:13:21 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2019-09-24 17:38:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-23 10:59:09 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-07-11 11:51:06 +02:00
|
|
|
#ifdef HAVE_AUDIOMIXER
|
2018-04-30 18:12:22 +02:00
|
|
|
static int action_get_title_mixer_stream_actions(const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
unsigned offset = (menu_type - MENU_SETTINGS_AUDIO_MIXER_STREAM_ACTIONS_BEGIN);
|
2018-05-02 20:21:20 +02:00
|
|
|
|
|
|
|
snprintf(s, len, "Mixer Stream #%d: %s", offset + 1, audio_driver_mixer_get_stream_name(offset));
|
2018-04-30 18:12:22 +02:00
|
|
|
return 0;
|
|
|
|
}
|
2019-07-11 11:51:06 +02:00
|
|
|
#endif
|
2018-04-30 18:12:22 +02:00
|
|
|
|
2019-02-19 17:02:48 +00:00
|
|
|
static int action_get_title_deferred_playlist_list(const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
2019-08-06 16:53:52 +01:00
|
|
|
const char *playlist_file = NULL;
|
|
|
|
|
|
|
|
if (string_is_empty(path))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
playlist_file = path_basename(path);
|
|
|
|
|
|
|
|
if (string_is_empty(playlist_file))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
if (string_is_equal_noncase(path_get_extension(playlist_file),
|
2019-09-18 18:12:57 +02:00
|
|
|
"lpl"))
|
2019-08-06 16:53:52 +01:00
|
|
|
{
|
|
|
|
/* Handle content history */
|
2020-08-22 01:06:10 +02:00
|
|
|
if (string_is_equal(playlist_file, FILE_PATH_CONTENT_HISTORY))
|
2019-08-06 16:53:52 +01:00
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HISTORY_TAB), len);
|
|
|
|
/* Handle favourites */
|
2020-08-22 01:06:10 +02:00
|
|
|
else if (string_is_equal(playlist_file, FILE_PATH_CONTENT_FAVORITES))
|
2019-08-06 16:53:52 +01:00
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FAVORITES_TAB), len);
|
|
|
|
/* Handle collection playlists */
|
|
|
|
else
|
|
|
|
{
|
|
|
|
char playlist_name[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
playlist_name[0] = '\0';
|
|
|
|
|
|
|
|
strlcpy(playlist_name, playlist_file, sizeof(playlist_name));
|
|
|
|
path_remove_extension(playlist_name);
|
|
|
|
|
|
|
|
strlcpy(s, playlist_name, len);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* This should never happen, but if it does just set
|
|
|
|
* the label to the file name (it's better than nothing...) */
|
|
|
|
else
|
|
|
|
strlcpy(s, playlist_file, len);
|
|
|
|
|
2020-07-31 15:13:43 +01:00
|
|
|
/* Add current search terms */
|
|
|
|
menu_driver_search_append_terms_string(s, len);
|
|
|
|
|
2019-02-19 17:02:48 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-06-04 12:19:24 +01:00
|
|
|
static int action_get_title_deferred_core_backup_list(
|
|
|
|
const char *core_path, const char *prefix, char *s, size_t len)
|
|
|
|
{
|
|
|
|
core_info_ctx_find_t core_info;
|
|
|
|
|
|
|
|
if (string_is_empty(core_path) || string_is_empty(prefix))
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
/* Set title prefix */
|
|
|
|
strlcpy(s, prefix, len);
|
|
|
|
strlcat(s, ": ", len);
|
|
|
|
|
|
|
|
/* Search for specified core */
|
|
|
|
core_info.inf = NULL;
|
|
|
|
core_info.path = core_path;
|
|
|
|
|
|
|
|
/* If core is found, add display name */
|
2020-06-06 13:49:34 +01:00
|
|
|
if (core_info_find(&core_info) &&
|
2020-06-04 12:19:24 +01:00
|
|
|
core_info.inf->display_name)
|
|
|
|
strlcat(s, core_info.inf->display_name, len);
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* If not, use core file name */
|
|
|
|
const char *core_filename = path_basename(core_path);
|
|
|
|
|
|
|
|
if (!string_is_empty(core_filename))
|
|
|
|
strlcat(s, core_filename, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int action_get_title_deferred_core_restore_backup_list(
|
|
|
|
const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
return action_get_title_deferred_core_backup_list(path,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_RESTORE_BACKUP_LIST),
|
|
|
|
s, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int action_get_title_deferred_core_delete_backup_list(
|
|
|
|
const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
return action_get_title_deferred_core_backup_list(path,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_DELETE_BACKUP_LIST),
|
|
|
|
s, len);
|
|
|
|
}
|
|
|
|
|
2020-06-11 14:12:20 +01:00
|
|
|
static int action_get_core_information_list(
|
|
|
|
const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
core_info_t *core_info = NULL;
|
|
|
|
|
|
|
|
/* Check whether we are parsing information for a
|
|
|
|
* core updater/manager entry or the currently loaded core */
|
|
|
|
if ((menu_type == FILE_TYPE_DOWNLOAD_CORE) ||
|
|
|
|
(menu_type == MENU_SETTING_ACTION_CORE_MANAGER_OPTIONS))
|
|
|
|
{
|
|
|
|
const char *core_path = path;
|
|
|
|
core_info_ctx_find_t core_info_finder;
|
|
|
|
|
|
|
|
if (string_is_empty(core_path))
|
|
|
|
goto error;
|
|
|
|
|
|
|
|
/* Core updater/manager entry - search for
|
|
|
|
* corresponding core info */
|
|
|
|
core_info_finder.inf = NULL;
|
|
|
|
core_info_finder.path = core_path;
|
|
|
|
|
|
|
|
if (core_info_find(&core_info_finder))
|
|
|
|
core_info = core_info_finder.inf;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
core_info_get_current_core(&core_info);
|
|
|
|
|
|
|
|
if (!core_info || string_is_empty(core_info->display_name))
|
|
|
|
goto error;
|
|
|
|
|
|
|
|
/* Copy display name */
|
|
|
|
strlcpy(s, core_info->display_name, len);
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
error:
|
|
|
|
/* An unknown error has occurred - just set the
|
|
|
|
* title to the legacy 'Core Information' string */
|
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFORMATION), len);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-07-23 17:19:41 +01:00
|
|
|
static int action_get_title_dropdown_input_description_common(
|
|
|
|
const char *input_name, unsigned port, char *s, size_t len)
|
|
|
|
{
|
|
|
|
const char *input_label_ptr = input_name;
|
|
|
|
char input_label[256];
|
|
|
|
|
|
|
|
input_label[0] = '\0';
|
|
|
|
|
|
|
|
if (!string_is_empty(input_label_ptr))
|
|
|
|
{
|
|
|
|
/* Strip off 'Auto:' prefix, if required */
|
|
|
|
if (string_starts_with_size(input_label_ptr, "Auto:",
|
|
|
|
STRLEN_CONST("Auto:")))
|
|
|
|
input_label_ptr += STRLEN_CONST("Auto:");
|
|
|
|
|
|
|
|
strlcpy(input_label, input_label_ptr,
|
|
|
|
sizeof(input_label));
|
|
|
|
|
|
|
|
string_trim_whitespace_left(input_label);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sanity check */
|
|
|
|
if (string_is_empty(input_label))
|
|
|
|
strlcpy(input_label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
|
|
|
sizeof(input_label));
|
|
|
|
|
|
|
|
/* Build title string */
|
|
|
|
snprintf(s, len, "%s #%u - %s",
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PORT),
|
|
|
|
port + 1,
|
|
|
|
input_label);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int action_get_title_dropdown_input_description(
|
|
|
|
const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
unsigned port = (menu_type - MENU_SETTINGS_INPUT_DESC_BEGIN) /
|
|
|
|
(RARCH_FIRST_CUSTOM_BIND + 8);
|
|
|
|
|
|
|
|
return action_get_title_dropdown_input_description_common(
|
|
|
|
path, port, s, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int action_get_title_dropdown_input_description_kbd(
|
|
|
|
const char *path, const char *label, unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
unsigned port = (menu_type - MENU_SETTINGS_INPUT_DESC_KBD_BEGIN) /
|
|
|
|
RARCH_FIRST_CUSTOM_BIND;
|
|
|
|
|
|
|
|
return action_get_title_dropdown_input_description_common(
|
|
|
|
path, port, s, len);
|
|
|
|
}
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_quick_menu_override_options, MENU_ENUM_LABEL_VALUE_QUICK_MENU_OVERRIDE_OPTIONS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_user_accounts_cheevos_list, MENU_ENUM_LABEL_VALUE_ACCOUNTS_RETRO_ACHIEVEMENTS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_user_accounts_youtube_list, MENU_ENUM_LABEL_VALUE_ACCOUNTS_YOUTUBE)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_user_accounts_twitch_list, MENU_ENUM_LABEL_VALUE_ACCOUNTS_TWITCH)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_download_core_content_list, MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE_CONTENT)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_user_accounts_list, MENU_ENUM_LABEL_VALUE_ACCOUNTS_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_core_list, MENU_ENUM_LABEL_VALUE_CORE_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_online_updater_list, MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_netplay_list, MENU_ENUM_LABEL_VALUE_NETPLAY)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_online_thumbnails_updater_list, MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_online_pl_thumbnails_updater_list, MENU_ENUM_LABEL_VALUE_PL_THUMBNAILS_UPDATER_LIST)
|
2020-06-11 14:12:20 +01:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_core_manager_list, MENU_ENUM_LABEL_VALUE_CORE_MANAGER_LIST)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_add_content_list, MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_configurations_list, MENU_ENUM_LABEL_VALUE_CONFIGURATIONS_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_core_options_list, MENU_ENUM_LABEL_VALUE_CORE_OPTIONS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_quick_menu_list, MENU_ENUM_LABEL_VALUE_CONTENT_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_input_remapping_options_list, MENU_ENUM_LABEL_VALUE_CORE_INPUT_REMAPPING_OPTIONS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_shader_options_list, MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_disk_options_list, MENU_ENUM_LABEL_VALUE_DISK_OPTIONS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_frontend_counters_list, MENU_ENUM_LABEL_VALUE_FRONTEND_COUNTERS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_core_counters_list, MENU_ENUM_LABEL_VALUE_CORE_COUNTERS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_recording_settings_list, MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_playlist_settings_list, MENU_ENUM_LABEL_VALUE_PLAYLIST_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_playlist_manager_list, MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_input_hotkey_binds_settings_list,MENU_ENUM_LABEL_VALUE_INPUT_HOTKEY_BINDS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_driver_settings_list, MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_core_settings_list, MENU_ENUM_LABEL_VALUE_CORE_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_video_settings_list, MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_video_fullscreen_mode_settings_list, MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN_MODE_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_video_windowed_mode_settings_list, MENU_ENUM_LABEL_VALUE_VIDEO_WINDOWED_MODE_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_video_scaling_settings_list, MENU_ENUM_LABEL_VALUE_VIDEO_SCALING_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_video_output_settings_list, MENU_ENUM_LABEL_VALUE_VIDEO_OUTPUT_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_video_synchronization_settings_list, MENU_ENUM_LABEL_VALUE_VIDEO_SYNCHRONIZATION_SETTINGS)
|
|
|
|
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_input_menu_settings_list, MENU_ENUM_LABEL_VALUE_INPUT_MENU_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_input_haptic_feedback_settings_list, MENU_ENUM_LABEL_VALUE_INPUT_HAPTIC_FEEDBACK_SETTINGS)
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_crt_switchres_settings_list, MENU_ENUM_LABEL_VALUE_CRT_SWITCHRES_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_configuration_settings_list, MENU_ENUM_LABEL_VALUE_CONFIGURATION_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_load_disc_list, MENU_ENUM_LABEL_VALUE_LOAD_DISC)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_dump_disc_list, MENU_ENUM_LABEL_VALUE_DUMP_DISC)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_saving_settings_list, MENU_ENUM_LABEL_VALUE_SAVING_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_logging_settings_list, MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_frame_throttle_settings_list, MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_frame_time_counter_settings_list, MENU_ENUM_LABEL_VALUE_FRAME_TIME_COUNTER_SETTINGS)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_rewind_settings_list, MENU_ENUM_LABEL_VALUE_REWIND_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_cheat_details_settings_list, MENU_ENUM_LABEL_VALUE_CHEAT_DETAILS_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_cheat_search_settings_list, MENU_ENUM_LABEL_VALUE_CHEAT_SEARCH_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_onscreen_display_settings_list, MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_onscreen_notifications_settings_list, MENU_ENUM_LABEL_VALUE_ONSCREEN_NOTIFICATIONS_SETTINGS)
|
2020-07-16 16:30:38 +01:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_onscreen_notifications_views_settings_list, MENU_ENUM_LABEL_VALUE_ONSCREEN_NOTIFICATIONS_VIEWS_SETTINGS)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_onscreen_overlay_settings_list, MENU_ENUM_LABEL_VALUE_ONSCREEN_OVERLAY_SETTINGS)
|
2019-03-31 00:17:08 +00:00
|
|
|
#ifdef HAVE_VIDEO_LAYOUT
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_onscreen_video_layout_settings_list, MENU_ENUM_LABEL_VALUE_ONSCREEN_VIDEO_LAYOUT_SETTINGS)
|
2019-03-31 00:17:08 +00:00
|
|
|
#endif
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_menu_views_settings_list, MENU_ENUM_LABEL_VALUE_MENU_VIEWS_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_settings_views_settings_list, MENU_ENUM_LABEL_VALUE_SETTINGS_VIEWS_SETTINGS)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_quick_menu_views_settings_list, MENU_ENUM_LABEL_VALUE_QUICK_MENU_VIEWS_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_menu_settings_list, MENU_ENUM_LABEL_VALUE_MENU_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_user_interface_settings_list, MENU_ENUM_LABEL_VALUE_USER_INTERFACE_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_ai_service_settings_list, MENU_ENUM_LABEL_VALUE_AI_SERVICE_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_accessibility_settings_list, MENU_ENUM_LABEL_VALUE_ACCESSIBILITY_SETTINGS)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_power_management_settings_list, MENU_ENUM_LABEL_VALUE_POWER_MANAGEMENT_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_menu_sounds_list, MENU_ENUM_LABEL_VALUE_MENU_SOUNDS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_menu_file_browser_settings_list, MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_retro_achievements_settings_list,MENU_ENUM_LABEL_VALUE_RETRO_ACHIEVEMENTS_SETTINGS)
|
2020-06-17 14:56:44 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_bluetooth_settings_list, MENU_ENUM_LABEL_VALUE_BLUETOOTH_SETTINGS)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_wifi_settings_list, MENU_ENUM_LABEL_VALUE_WIFI_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_network_hosting_settings_list, MENU_ENUM_LABEL_VALUE_NETWORK_HOSTING_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_subsystem_settings_list, MENU_ENUM_LABEL_VALUE_SUBSYSTEM_SETTINGS)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_network_settings_list, MENU_ENUM_LABEL_VALUE_NETWORK_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_netplay_lan_scan_settings_list, MENU_ENUM_LABEL_VALUE_NETPLAY_LAN_SCAN_SETTINGS)
|
2019-09-30 10:29:04 +02:00
|
|
|
#ifdef HAVE_LAKKA
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_lakka_services_list, MENU_ENUM_LABEL_VALUE_LAKKA_SERVICES)
|
2019-09-30 10:29:04 +02:00
|
|
|
#endif
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_user_settings_list, MENU_ENUM_LABEL_VALUE_USER_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_directory_settings_list, MENU_ENUM_LABEL_VALUE_DIRECTORY_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_privacy_settings_list, MENU_ENUM_LABEL_VALUE_PRIVACY_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_midi_settings_list, MENU_ENUM_LABEL_VALUE_MIDI_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_updater_settings_list, MENU_ENUM_LABEL_VALUE_UPDATER_SETTINGS)
|
2020-10-16 01:54:11 +03:00
|
|
|
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_audio_settings_list, MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_audio_resampler_settings_list, MENU_ENUM_LABEL_VALUE_AUDIO_RESAMPLER_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_audio_output_settings_list, MENU_ENUM_LABEL_VALUE_AUDIO_OUTPUT_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_audio_synchronization_settings_list, MENU_ENUM_LABEL_VALUE_AUDIO_SYNCHRONIZATION_SETTINGS)
|
2019-07-11 11:51:06 +02:00
|
|
|
#ifdef HAVE_AUDIOMIXER
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_audio_mixer_settings_list, MENU_ENUM_LABEL_VALUE_AUDIO_MIXER_SETTINGS)
|
2019-07-11 11:51:06 +02:00
|
|
|
#endif
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_input_settings_list, MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_latency_settings_list, MENU_ENUM_LABEL_VALUE_LATENCY_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_core_cheat_options_list, MENU_ENUM_LABEL_VALUE_CORE_CHEAT_OPTIONS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_load_content_list, MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_load_content_special, MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_SPECIAL)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_cursor_manager_list, MENU_ENUM_LABEL_VALUE_CURSOR_MANAGER)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_database_manager_list, MENU_ENUM_LABEL_VALUE_DATABASE_MANAGER)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_system_information_list, MENU_ENUM_LABEL_VALUE_SYSTEM_INFORMATION)
|
2020-10-16 01:54:11 +03:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_disc_information_list, MENU_ENUM_LABEL_VALUE_DISC_INFORMATION)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_network_information_list, MENU_ENUM_LABEL_VALUE_NETWORK_INFORMATION)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_settings_list, MENU_ENUM_LABEL_VALUE_SETTINGS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_information_list, MENU_ENUM_LABEL_VALUE_INFORMATION_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_information, MENU_ENUM_LABEL_VALUE_INFORMATION)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_collection, MENU_ENUM_LABEL_VALUE_PLAYLISTS_TAB)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_deferred_core_list, MENU_ENUM_LABEL_VALUE_SUPPORTED_CORES)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_resolution_item, MENU_ENUM_LABEL_VALUE_SCREEN_RESOLUTION)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_video_shader_num_pass_item, MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_NUM_PASSES)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_video_shader_parameter_item, MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PARAMETERS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_video_shader_preset_parameter_item, MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PARAMETERS)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_playlist_default_core_item, MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_DEFAULT_CORE)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_playlist_label_display_mode_item, MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_LABEL_DISPLAY_MODE)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_playlist_sort_mode_item, MENU_ENUM_LABEL_VALUE_PLAYLIST_MANAGER_SORT_MODE)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_manual_content_scan_list, MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_LIST)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_manual_content_scan_system_name_item, MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_SYSTEM_NAME)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_manual_content_scan_core_name_item, MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_CORE_NAME)
|
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_dropdown_disk_index, MENU_ENUM_LABEL_VALUE_DISK_INDEX)
|
|
|
|
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_disk_image_append, MENU_ENUM_LABEL_VALUE_DISK_IMAGE_APPEND)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_cheat_file_load, MENU_ENUM_LABEL_VALUE_CHEAT_FILE)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_cheat_file_load_append, MENU_ENUM_LABEL_VALUE_CHEAT_FILE_APPEND)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_remap_file_load, MENU_ENUM_LABEL_VALUE_REMAP_FILE)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_overlay, MENU_ENUM_LABEL_VALUE_OVERLAY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_video_filter, MENU_ENUM_LABEL_VALUE_VIDEO_FILTER)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_cheat_directory, MENU_ENUM_LABEL_VALUE_CHEAT_DATABASE_PATH)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_core_directory, MENU_ENUM_LABEL_VALUE_LIBRETRO_DIR_PATH)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_core_info_directory, MENU_ENUM_LABEL_VALUE_LIBRETRO_INFO_PATH)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_audio_filter, MENU_ENUM_LABEL_VALUE_AUDIO_FILTER_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_video_shader_preset, MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_TWO)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_configurations, MENU_ENUM_LABEL_VALUE_CONFIG)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_content_database_directory, MENU_ENUM_LABEL_VALUE_CONTENT_DATABASE_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_savestate_directory, MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_dynamic_wallpapers_directory, MENU_ENUM_LABEL_VALUE_DYNAMIC_WALLPAPERS_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_core_assets_directory, MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_config_directory, MENU_ENUM_LABEL_VALUE_RGUI_CONFIG_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_thumbnail_directory, MENU_ENUM_LABEL_VALUE_THUMBNAILS_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_input_remapping_directory, MENU_ENUM_LABEL_VALUE_INPUT_REMAPPING_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_autoconfig_directory, MENU_ENUM_LABEL_VALUE_JOYPAD_AUTOCONFIG_DIR )
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_playlist_directory, MENU_ENUM_LABEL_VALUE_PLAYLIST_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_runtime_log_directory, MENU_ENUM_LABEL_VALUE_RUNTIME_LOG_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_browser_directory, MENU_ENUM_LABEL_VALUE_RGUI_BROWSER_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_content_directory, MENU_ENUM_LABEL_VALUE_CONTENT_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_screenshot_directory, MENU_ENUM_LABEL_VALUE_SCREENSHOT_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_cursor_directory, MENU_ENUM_LABEL_VALUE_CURSOR_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_onscreen_overlay_keyboard_directory, MENU_ENUM_LABEL_VALUE_OSK_OVERLAY_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_recording_config_directory, MENU_ENUM_LABEL_VALUE_RECORDING_CONFIG_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_recording_output_directory, MENU_ENUM_LABEL_VALUE_RECORDING_OUTPUT_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_video_shader_directory, MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_audio_filter_directory, MENU_ENUM_LABEL_VALUE_AUDIO_FILTER_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_video_filter_directory, MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_savefile_directory, MENU_ENUM_LABEL_VALUE_SAVEFILE_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_overlay_directory, MENU_ENUM_LABEL_VALUE_OVERLAY_DIRECTORY)
|
2019-03-31 00:17:08 +00:00
|
|
|
#ifdef HAVE_VIDEO_LAYOUT
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_video_layout_directory, MENU_ENUM_LABEL_VALUE_VIDEO_LAYOUT_DIRECTORY)
|
2019-03-31 00:17:08 +00:00
|
|
|
#endif
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_system_directory, MENU_ENUM_LABEL_VALUE_SYSTEM_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_assets_directory, MENU_ENUM_LABEL_VALUE_ASSETS_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_extraction_directory, MENU_ENUM_LABEL_VALUE_CACHE_DIRECTORY)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_menu, MENU_ENUM_LABEL_VALUE_MENU_SETTINGS)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_font_path, MENU_ENUM_LABEL_VALUE_XMB_FONT)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_log_dir, MENU_ENUM_LABEL_VALUE_LOG_DIR)
|
|
|
|
DEFAULT_FILL_TITLE_MACRO(action_get_title_manual_content_scan_dir, MENU_ENUM_LABEL_VALUE_MANUAL_CONTENT_SCAN_DIR)
|
|
|
|
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_help, MENU_ENUM_LABEL_VALUE_HELP_LIST)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_input_settings, MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_cheevos_list, MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_LIST)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_video_shader_parameters,MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PARAMETERS)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_video_shader_preset_parameters,MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_PARAMETERS)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_video_shader_preset_save,MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_video_shader_preset_remove,MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_REMOVE)
|
|
|
|
DEFAULT_TITLE_COPY_MACRO(action_get_title_video_shader_preset_save_list,MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE)
|
2016-06-20 22:57:11 +02:00
|
|
|
|
2019-02-03 15:49:35 -08:00
|
|
|
#if defined(HAVE_LAKKA_SWITCH) || defined(HAVE_LIBNX)
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_switch_cpu_profile, MENU_ENUM_LABEL_VALUE_SWITCH_CPU_PROFILE)
|
2018-11-29 18:42:44 +01:00
|
|
|
#endif
|
|
|
|
|
2018-10-06 14:52:44 +02:00
|
|
|
#ifdef HAVE_LAKKA_SWITCH
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_MACRO(action_get_title_switch_gpu_profile, MENU_ENUM_LABEL_VALUE_SWITCH_GPU_PROFILE)
|
2018-10-06 14:52:44 +02:00
|
|
|
#endif
|
|
|
|
|
2020-08-14 17:52:01 +01:00
|
|
|
DEFAULT_TITLE_SEARCH_FILTER_MACRO(action_get_title_deferred_history_list, MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_HISTORY)
|
|
|
|
DEFAULT_TITLE_SEARCH_FILTER_MACRO(action_get_title_deferred_favorites_list, MENU_ENUM_LABEL_VALUE_GOTO_FAVORITES)
|
|
|
|
DEFAULT_TITLE_SEARCH_FILTER_MACRO(action_get_title_deferred_images_list, MENU_ENUM_LABEL_VALUE_GOTO_IMAGES)
|
|
|
|
DEFAULT_TITLE_SEARCH_FILTER_MACRO(action_get_title_deferred_music_list, MENU_ENUM_LABEL_VALUE_GOTO_MUSIC)
|
|
|
|
DEFAULT_TITLE_SEARCH_FILTER_MACRO(action_get_title_deferred_video_list, MENU_ENUM_LABEL_VALUE_GOTO_VIDEO)
|
|
|
|
DEFAULT_TITLE_SEARCH_FILTER_MACRO(action_get_core_updater_list, MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST)
|
2020-07-31 15:13:43 +01:00
|
|
|
|
2016-06-20 22:57:11 +02:00
|
|
|
static int action_get_title_generic(char *s, size_t len, const char *path,
|
|
|
|
const char *text)
|
|
|
|
{
|
2020-08-26 03:43:09 +02:00
|
|
|
bool ret = false;
|
|
|
|
struct string_list list_path = {0};
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2016-06-20 22:57:11 +02:00
|
|
|
if (!string_is_empty(path))
|
2020-08-26 03:43:09 +02:00
|
|
|
{
|
|
|
|
string_list_initialize(&list_path);
|
|
|
|
ret = string_split_noalloc(&list_path, path, "|");
|
|
|
|
}
|
2016-06-20 22:57:11 +02:00
|
|
|
|
2020-08-26 03:43:09 +02:00
|
|
|
if (ret)
|
2016-06-20 22:57:11 +02:00
|
|
|
{
|
2016-10-27 09:32:07 +02:00
|
|
|
char elem0_path[255];
|
2016-10-08 18:23:10 +02:00
|
|
|
|
|
|
|
elem0_path[0] = '\0';
|
|
|
|
|
2020-08-26 03:43:09 +02:00
|
|
|
if (list_path.size > 0)
|
|
|
|
strlcpy(elem0_path, list_path.elems[0].data, sizeof(elem0_path));
|
|
|
|
string_list_deinitialize(&list_path);
|
2019-09-23 00:18:29 +02:00
|
|
|
strlcpy(s, text, len);
|
2019-09-17 07:30:29 +02:00
|
|
|
|
|
|
|
if (!string_is_empty(elem0_path))
|
|
|
|
{
|
2019-09-23 00:18:29 +02:00
|
|
|
strlcat(s, "- ", len);
|
2019-09-17 07:30:29 +02:00
|
|
|
strlcat(s, path_basename(elem0_path), len);
|
|
|
|
}
|
2016-06-20 22:57:11 +02:00
|
|
|
}
|
|
|
|
else
|
2016-06-29 02:40:05 +02:00
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE), len);
|
2016-06-20 22:57:11 +02:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-06-07 02:41:48 +02:00
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_deferred_database_manager_list,MENU_ENUM_LABEL_VALUE_DATABASE_SELECTION)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_deferred_cursor_manager_list,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_developer,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_DEVELOPER)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_publisher,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_PUBLISHER)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_origin,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_ORIGIN)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_franchise,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_FRANCHISE)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_edge_magazine_rating,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_EDGE_MAGAZINE_RATING)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_edge_magazine_issue,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_EDGE_MAGAZINE_ISSUE)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_releasedate_by_month,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_RELEASEDATE_BY_MONTH)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_releasedate_by_year,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_RELEASEDATE_BY_YEAR)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_esrb_rating,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_ESRB_RATING)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_elspa_rating,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_ELSPA_RATING)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_pegi_rating,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_PEGI_RATING)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_cero_rating,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_CERO_RATING)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_bbfc_rating,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_BBFC_RATING)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_max_users,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_MAX_USERS)
|
|
|
|
DEFAULT_TITLE_GENERIC_MACRO(action_get_title_list_rdb_entry_database_info,MENU_ENUM_LABEL_VALUE_DATABASE_CURSOR_LIST_ENTRY_DATABASE_INFO)
|
2017-12-11 23:55:31 -08:00
|
|
|
|
2020-01-09 16:44:04 +01:00
|
|
|
static int action_get_sideload_core_list(const char *path, const char *label,
|
|
|
|
unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SIDELOAD_CORE_LIST), len);
|
|
|
|
strlcat(s, " ", len);
|
|
|
|
if (!string_is_empty(path))
|
|
|
|
strlcat(s, path, len);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-12-11 23:55:31 -08:00
|
|
|
static int action_get_title_default(const char *path, const char *label,
|
2016-06-20 22:57:11 +02:00
|
|
|
unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
2019-09-23 00:18:29 +02:00
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SELECT_FILE), len);
|
|
|
|
strlcat(s, " ", len);
|
2019-10-17 01:07:02 +02:00
|
|
|
if (!string_is_empty(path))
|
|
|
|
strlcat(s, path, len);
|
2016-06-20 22:57:11 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-12-11 23:55:31 -08:00
|
|
|
static int action_get_title_group_settings(const char *path, const char *label,
|
2016-06-20 22:57:11 +02:00
|
|
|
unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
2019-12-02 22:20:36 +01:00
|
|
|
unsigned i;
|
|
|
|
typedef struct title_info_list
|
|
|
|
{
|
|
|
|
enum msg_hash_enums type;
|
|
|
|
enum msg_hash_enums val;
|
2020-07-31 15:13:43 +01:00
|
|
|
bool is_playlist_tab;
|
2019-12-02 22:20:36 +01:00
|
|
|
} title_info_list_t;
|
|
|
|
|
2020-07-31 15:13:43 +01:00
|
|
|
/* Note: MENU_ENUM_LABEL_HORIZONTAL_MENU *is* a playlist
|
|
|
|
* tab, but its actual title is set elsewhere - so treat
|
|
|
|
* it as a generic top-level item */
|
2019-12-02 22:20:36 +01:00
|
|
|
title_info_list_t info_list[] = {
|
2020-07-31 15:13:43 +01:00
|
|
|
{MENU_ENUM_LABEL_MAIN_MENU, MENU_ENUM_LABEL_VALUE_MAIN_MENU, false },
|
|
|
|
{MENU_ENUM_LABEL_HISTORY_TAB, MENU_ENUM_LABEL_VALUE_HISTORY_TAB, true },
|
|
|
|
{MENU_ENUM_LABEL_FAVORITES_TAB, MENU_ENUM_LABEL_VALUE_FAVORITES_TAB, true },
|
|
|
|
{MENU_ENUM_LABEL_IMAGES_TAB, MENU_ENUM_LABEL_VALUE_IMAGES_TAB, true },
|
|
|
|
{MENU_ENUM_LABEL_MUSIC_TAB, MENU_ENUM_LABEL_VALUE_MUSIC_TAB, true },
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_TAB, MENU_ENUM_LABEL_VALUE_VIDEO_TAB, true },
|
|
|
|
{MENU_ENUM_LABEL_SETTINGS_TAB, MENU_ENUM_LABEL_VALUE_SETTINGS_TAB, false },
|
|
|
|
{MENU_ENUM_LABEL_PLAYLISTS_TAB, MENU_ENUM_LABEL_VALUE_PLAYLISTS_TAB, false },
|
|
|
|
{MENU_ENUM_LABEL_ADD_TAB, MENU_ENUM_LABEL_VALUE_ADD_TAB, false },
|
|
|
|
{MENU_ENUM_LABEL_EXPLORE_TAB, MENU_ENUM_LABEL_VALUE_EXPLORE_TAB, false },
|
|
|
|
{MENU_ENUM_LABEL_NETPLAY_TAB, MENU_ENUM_LABEL_VALUE_NETPLAY_TAB, false },
|
|
|
|
{MENU_ENUM_LABEL_HORIZONTAL_MENU, MENU_ENUM_LABEL_VALUE_HORIZONTAL_MENU, false },
|
2019-12-02 22:20:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(info_list); i++)
|
|
|
|
{
|
|
|
|
if (string_is_equal(label, msg_hash_to_str(info_list[i].type)))
|
|
|
|
{
|
2020-07-31 15:13:43 +01:00
|
|
|
if (info_list[i].is_playlist_tab)
|
2020-08-14 17:52:01 +01:00
|
|
|
action_get_title_fill_search_filter_default(
|
2020-07-31 15:13:43 +01:00
|
|
|
s, info_list[i].val, len);
|
|
|
|
else
|
|
|
|
strlcpy(s, msg_hash_to_str(info_list[i].val), len);
|
2019-12-02 22:20:36 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-20 22:57:11 +02:00
|
|
|
{
|
2016-10-27 09:32:07 +02:00
|
|
|
char elem0[255];
|
|
|
|
char elem1[255];
|
2020-08-26 12:41:57 +02:00
|
|
|
struct string_list list_label = {0};
|
|
|
|
|
2016-10-08 18:23:10 +02:00
|
|
|
elem0[0] = elem1[0] = '\0';
|
|
|
|
|
2020-08-26 12:41:57 +02:00
|
|
|
string_list_initialize(&list_label);
|
|
|
|
string_split_noalloc(&list_label, label, "|");
|
|
|
|
|
|
|
|
if (list_label.size > 0)
|
2016-06-20 22:57:11 +02:00
|
|
|
{
|
2020-08-26 12:41:57 +02:00
|
|
|
strlcpy(elem0, list_label.elems[0].data, sizeof(elem0));
|
|
|
|
if (list_label.size > 1)
|
|
|
|
strlcpy(elem1, list_label.elems[1].data, sizeof(elem1));
|
2016-06-20 22:57:11 +02:00
|
|
|
}
|
2020-08-26 12:41:57 +02:00
|
|
|
string_list_deinitialize(&list_label);
|
2016-06-20 22:57:11 +02:00
|
|
|
|
2019-09-23 00:18:29 +02:00
|
|
|
strlcpy(s, elem0, len);
|
2016-06-20 22:57:11 +02:00
|
|
|
|
|
|
|
if (!string_is_empty(elem1))
|
|
|
|
{
|
2019-09-23 00:18:29 +02:00
|
|
|
strlcat(s, " - ", len);
|
2019-05-10 18:05:58 +02:00
|
|
|
strlcat(s, elem1, len);
|
2016-06-20 22:57:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-08-26 12:41:57 +02:00
|
|
|
static int action_get_title_input_binds_list(
|
|
|
|
const char *path, const char *label,
|
2016-05-02 22:15:25 +02:00
|
|
|
unsigned menu_type, char *s, size_t len)
|
|
|
|
{
|
2016-06-20 21:17:28 +02:00
|
|
|
unsigned val = (((unsigned)path[0]) - 49) + 1;
|
|
|
|
snprintf(s, len, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS), val);
|
2016-05-02 22:15:25 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2018-02-09 01:09:17 +01:00
|
|
|
static int menu_cbs_init_bind_title_compare_label(menu_file_list_cbs_t *cbs,
|
2020-03-26 17:36:05 +01:00
|
|
|
const char *label)
|
2015-06-01 12:24:48 +02:00
|
|
|
{
|
2019-12-02 05:50:32 +01:00
|
|
|
unsigned i;
|
|
|
|
typedef struct title_info_list
|
|
|
|
{
|
|
|
|
enum msg_hash_enums type;
|
|
|
|
int (*cb)(const char *path, const char *label,
|
|
|
|
unsigned type, char *s, size_t len);
|
|
|
|
} title_info_list_t;
|
|
|
|
|
|
|
|
title_info_list_t info_list[] = {
|
2019-12-24 08:10:20 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_REMAPPINGS_PORT_LIST, action_get_title_remap_port},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST, action_get_core_settings_list},
|
2020-05-28 17:48:18 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_INFORMATION_LIST, action_get_core_information_list},
|
2020-06-04 12:19:24 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_RESTORE_BACKUP_LIST, action_get_title_deferred_core_restore_backup_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_DELETE_BACKUP_LIST, action_get_title_deferred_core_delete_backup_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DUMP_DISC_LIST, action_get_dump_disc_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_LOAD_DISC_LIST, action_get_load_disc_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CONFIGURATION_SETTINGS_LIST, action_get_configuration_settings_list },
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_SAVING_SETTINGS_LIST, action_get_saving_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_LOGGING_SETTINGS_LIST, action_get_logging_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_FRAME_TIME_COUNTER_SETTINGS_LIST, action_get_frame_time_counter_settings_list },
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_FRAME_THROTTLE_SETTINGS_LIST, action_get_frame_throttle_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_REWIND_SETTINGS_LIST, action_get_rewind_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CHEAT_DETAILS_SETTINGS_LIST, action_get_cheat_details_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CHEAT_SEARCH_SETTINGS_LIST, action_get_cheat_search_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ONSCREEN_DISPLAY_SETTINGS_LIST, action_get_onscreen_display_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ONSCREEN_NOTIFICATIONS_SETTINGS_LIST, action_get_onscreen_notifications_settings_list},
|
2020-07-16 16:30:38 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ONSCREEN_NOTIFICATIONS_VIEWS_SETTINGS_LIST, action_get_onscreen_notifications_views_settings_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ONSCREEN_OVERLAY_SETTINGS_LIST, action_get_onscreen_overlay_settings_list},
|
|
|
|
#ifdef HAVE_VIDEO_LAYOUT
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ONSCREEN_VIDEO_LAYOUT_SETTINGS_LIST, action_get_onscreen_video_layout_settings_list},
|
|
|
|
#endif
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MENU_VIEWS_SETTINGS_LIST, action_get_menu_views_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_SETTINGS_VIEWS_SETTINGS_LIST, action_get_settings_views_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_QUICK_MENU_VIEWS_SETTINGS_LIST, action_get_quick_menu_views_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MENU_SETTINGS_LIST, action_get_menu_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_USER_INTERFACE_SETTINGS_LIST, action_get_user_interface_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_AI_SERVICE_SETTINGS_LIST, action_get_ai_service_settings_list},
|
2020-10-16 01:54:11 +03:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ACCESSIBILITY_SETTINGS_LIST, action_get_accessibility_settings_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_POWER_MANAGEMENT_SETTINGS_LIST, action_get_power_management_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MENU_SOUNDS_LIST, action_get_menu_sounds_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MENU_FILE_BROWSER_SETTINGS_LIST, action_get_menu_file_browser_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_RETRO_ACHIEVEMENTS_SETTINGS_LIST, action_get_retro_achievements_settings_list},
|
2020-06-17 14:56:44 +03:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_BLUETOOTH_SETTINGS_LIST, action_get_bluetooth_settings_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_WIFI_SETTINGS_LIST, action_get_wifi_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_UPDATER_SETTINGS_LIST, action_get_updater_settings_list},
|
2020-10-16 01:54:11 +03:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_NETWORK_HOSTING_SETTINGS_LIST, action_get_network_hosting_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_SUBSYSTEM_SETTINGS_LIST, action_get_subsystem_settings_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_NETWORK_SETTINGS_LIST, action_get_network_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_NETPLAY_LAN_SCAN_SETTINGS_LIST, action_get_netplay_lan_scan_settings_list},
|
|
|
|
#ifdef HAVE_LAKKA
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_LAKKA_SERVICES_LIST, action_get_lakka_services_list},
|
|
|
|
#endif
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_USER_SETTINGS_LIST, action_get_user_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DIRECTORY_SETTINGS_LIST, action_get_directory_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_PRIVACY_SETTINGS_LIST, action_get_privacy_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MIDI_SETTINGS_LIST, action_get_midi_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_LIST, action_get_download_core_content_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST, action_get_download_core_content_list},
|
2020-07-31 15:13:43 +01:00
|
|
|
{MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY, action_get_title_deferred_history_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST, action_get_title_deferred_favorites_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST, action_get_title_deferred_images_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MUSIC_LIST, action_get_title_deferred_music_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_LIST, action_get_title_deferred_video_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DRIVER_SETTINGS_LIST, action_get_driver_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_AUDIO_SETTINGS_LIST, action_get_audio_settings_list},
|
2020-10-16 01:54:11 +03:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_AUDIO_RESAMPLER_SETTINGS_LIST, action_get_audio_resampler_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_AUDIO_OUTPUT_SETTINGS_LIST, action_get_audio_output_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_AUDIO_SYNCHRONIZATION_SETTINGS_LIST, action_get_audio_synchronization_settings_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
#ifdef HAVE_AUDIOMIXER
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_AUDIO_MIXER_SETTINGS_LIST, action_get_audio_mixer_settings_list},
|
|
|
|
#endif
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_LATENCY_SETTINGS_LIST, action_get_latency_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_SYSTEM_INFORMATION, action_get_system_information_list},
|
|
|
|
{MENU_ENUM_LABEL_DISC_INFORMATION, action_get_disc_information_list},
|
|
|
|
{MENU_ENUM_LABEL_NETWORK_INFORMATION, action_get_network_information_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_QUICK_MENU_OVERRIDE_OPTIONS, action_get_quick_menu_override_options},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CRT_SWITCHRES_SETTINGS_LIST, action_get_crt_switchres_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_TWITCH_LIST, action_get_user_accounts_twitch_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_YOUTUBE_LIST, action_get_user_accounts_youtube_list},
|
|
|
|
{MENU_ENUM_LABEL_ONLINE_UPDATER, action_get_online_updater_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_RECORDING_SETTINGS_LIST, action_get_recording_settings_list},
|
2020-10-16 01:54:11 +03:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_SCALING_SETTINGS_LIST, action_get_video_scaling_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_OUTPUT_SETTINGS_LIST, action_get_video_output_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_SYNCHRONIZATION_SETTINGS_LIST, action_get_video_synchronization_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_INPUT_MENU_SETTINGS_LIST, action_get_input_menu_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_INPUT_HAPTIC_FEEDBACK_SETTINGS_LIST, action_get_input_haptic_feedback_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_WINDOWED_MODE_SETTINGS_LIST, action_get_video_windowed_mode_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_FULLSCREEN_MODE_SETTINGS_LIST, action_get_video_fullscreen_mode_settings_list},
|
2020-01-09 16:44:04 +01:00
|
|
|
{MENU_ENUM_LABEL_SIDELOAD_CORE_LIST, action_get_sideload_core_list},
|
2020-03-13 06:25:43 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST, action_get_title_deferred_database_manager_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST, action_get_title_deferred_cursor_manager_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_DEVELOPER, action_get_title_list_rdb_entry_developer},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PUBLISHER, action_get_title_list_rdb_entry_publisher},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ORIGIN,
|
|
|
|
action_get_title_list_rdb_entry_origin},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_FRANCHISE,
|
|
|
|
action_get_title_list_rdb_entry_franchise},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_RATING, action_get_title_list_rdb_entry_edge_magazine_rating},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_EDGE_MAGAZINE_ISSUE, action_get_title_list_rdb_entry_edge_magazine_issue},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEMONTH,
|
|
|
|
action_get_title_list_rdb_entry_releasedate_by_month},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_RELEASEYEAR,
|
|
|
|
action_get_title_list_rdb_entry_releasedate_by_year},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ESRB_RATING,
|
|
|
|
action_get_title_list_rdb_entry_esrb_rating},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_PEGI_RATING,
|
|
|
|
action_get_title_list_rdb_entry_pegi_rating},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_CERO_RATING,
|
|
|
|
action_get_title_list_rdb_entry_cero_rating},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_BBFC_RATING,
|
|
|
|
action_get_title_list_rdb_entry_bbfc_rating},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_MAX_USERS,
|
|
|
|
action_get_title_list_rdb_entry_max_users},
|
2020-03-26 17:22:36 +01:00
|
|
|
{MENU_ENUM_LABEL_JOYPAD_AUTOCONFIG_DIR,
|
|
|
|
action_get_title_autoconfig_directory},
|
|
|
|
{MENU_ENUM_LABEL_CACHE_DIRECTORY,
|
|
|
|
action_get_title_extraction_directory},
|
|
|
|
{MENU_ENUM_LABEL_SYSTEM_DIRECTORY,
|
|
|
|
action_get_title_system_directory},
|
|
|
|
{MENU_ENUM_LABEL_ASSETS_DIRECTORY,
|
|
|
|
action_get_title_assets_directory},
|
|
|
|
{MENU_ENUM_LABEL_SAVEFILE_DIRECTORY,
|
|
|
|
action_get_title_savefile_directory},
|
|
|
|
{MENU_ENUM_LABEL_OVERLAY_DIRECTORY,
|
|
|
|
action_get_title_overlay_directory},
|
|
|
|
#ifdef HAVE_VIDEO_LAYOUT
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_LAYOUT_DIRECTORY,
|
|
|
|
action_get_title_video_layout_directory},
|
|
|
|
#endif
|
|
|
|
{MENU_ENUM_LABEL_RGUI_BROWSER_DIRECTORY,
|
|
|
|
action_get_title_browser_directory},
|
|
|
|
{MENU_ENUM_LABEL_PLAYLIST_DIRECTORY,
|
|
|
|
action_get_title_playlist_directory},
|
|
|
|
{MENU_ENUM_LABEL_RUNTIME_LOG_DIRECTORY,
|
|
|
|
action_get_title_runtime_log_directory},
|
|
|
|
{MENU_ENUM_LABEL_CONTENT_DIRECTORY,
|
|
|
|
action_get_title_content_directory},
|
|
|
|
{MENU_ENUM_LABEL_SCREENSHOT_DIRECTORY,
|
|
|
|
action_get_title_screenshot_directory},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_SHADER_DIR,
|
|
|
|
action_get_title_video_shader_directory},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_FILTER_DIR,
|
|
|
|
action_get_title_video_filter_directory},
|
|
|
|
{MENU_ENUM_LABEL_AUDIO_FILTER_DIR,
|
|
|
|
action_get_title_audio_filter_directory},
|
|
|
|
{MENU_ENUM_LABEL_CURSOR_DIRECTORY,
|
|
|
|
action_get_title_cursor_directory},
|
|
|
|
{MENU_ENUM_LABEL_RECORDING_CONFIG_DIRECTORY,
|
|
|
|
action_get_title_recording_config_directory},
|
|
|
|
{MENU_ENUM_LABEL_RECORDING_OUTPUT_DIRECTORY,
|
|
|
|
action_get_title_recording_output_directory},
|
|
|
|
{MENU_ENUM_LABEL_OSK_OVERLAY_DIRECTORY,
|
|
|
|
action_get_title_onscreen_overlay_keyboard_directory},
|
|
|
|
{MENU_ENUM_LABEL_INPUT_REMAPPING_DIRECTORY,
|
|
|
|
action_get_title_input_remapping_directory},
|
|
|
|
{MENU_ENUM_LABEL_CONTENT_DATABASE_DIRECTORY,
|
|
|
|
action_get_title_content_database_directory},
|
|
|
|
{MENU_ENUM_LABEL_SAVESTATE_DIRECTORY,
|
|
|
|
action_get_title_savestate_directory},
|
|
|
|
{MENU_ENUM_LABEL_DYNAMIC_WALLPAPERS_DIRECTORY,
|
|
|
|
action_get_title_dynamic_wallpapers_directory},
|
|
|
|
{MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY,
|
|
|
|
action_get_title_core_assets_directory},
|
|
|
|
{MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY,
|
|
|
|
action_get_title_thumbnail_directory},
|
|
|
|
{MENU_ENUM_LABEL_RGUI_CONFIG_DIRECTORY,
|
|
|
|
action_get_title_config_directory},
|
|
|
|
{MENU_ENUM_LABEL_LOG_DIR,
|
|
|
|
action_get_title_log_dir},
|
|
|
|
{MENU_ENUM_LABEL_LOAD_CONTENT_LIST,
|
|
|
|
action_get_load_content_list},
|
|
|
|
{MENU_ENUM_LABEL_NETPLAY,
|
|
|
|
action_get_netplay_list},
|
|
|
|
{MENU_ENUM_LABEL_INFORMATION_LIST,
|
|
|
|
action_get_title_information_list},
|
|
|
|
{MENU_ENUM_LABEL_INFORMATION,
|
|
|
|
action_get_title_information},
|
|
|
|
{MENU_ENUM_LABEL_SETTINGS,
|
|
|
|
action_get_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DATABASE_MANAGER_LIST,
|
|
|
|
action_get_database_manager_list},
|
|
|
|
{MENU_ENUM_LABEL_CURSOR_MANAGER_LIST,
|
|
|
|
action_get_cursor_manager_list},
|
|
|
|
{MENU_ENUM_LABEL_CORE_LIST,
|
|
|
|
action_get_core_list},
|
|
|
|
{MENU_ENUM_LABEL_LOAD_CONTENT_SPECIAL,
|
|
|
|
action_get_load_content_special},
|
|
|
|
{MENU_ENUM_LABEL_HELP_LIST,
|
|
|
|
action_get_title_help},
|
|
|
|
{MENU_ENUM_LABEL_HELP,
|
|
|
|
action_get_title_help},
|
|
|
|
{MENU_ENUM_LABEL_INPUT_OVERLAY,
|
|
|
|
action_get_title_overlay},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_UPDATER_LIST,
|
|
|
|
action_get_core_updater_list},
|
2020-06-11 14:12:20 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_MANAGER_LIST,
|
|
|
|
action_get_core_manager_list},
|
2020-03-26 17:47:31 +01:00
|
|
|
{MENU_ENUM_LABEL_CONFIGURATIONS_LIST,
|
2020-03-26 17:22:36 +01:00
|
|
|
action_get_configurations_list},
|
|
|
|
{MENU_ENUM_LABEL_ADD_CONTENT_LIST,
|
|
|
|
action_get_add_content_list},
|
|
|
|
{MENU_ENUM_LABEL_CORE_OPTIONS,
|
|
|
|
action_get_core_options_list},
|
|
|
|
{MENU_ENUM_LABEL_CONTENT_SETTINGS,
|
|
|
|
action_get_quick_menu_list},
|
|
|
|
{MENU_ENUM_LABEL_CORE_INPUT_REMAPPING_OPTIONS,
|
|
|
|
action_get_input_remapping_options_list},
|
|
|
|
{MENU_ENUM_LABEL_CORE_CHEAT_OPTIONS,
|
|
|
|
action_get_core_cheat_options_list},
|
|
|
|
{MENU_ENUM_LABEL_SHADER_OPTIONS,
|
|
|
|
action_get_shader_options_list},
|
|
|
|
{MENU_ENUM_LABEL_DISK_OPTIONS,
|
|
|
|
action_get_disk_options_list},
|
|
|
|
{MENU_ENUM_LABEL_FRONTEND_COUNTERS,
|
|
|
|
action_get_frontend_counters_list},
|
|
|
|
{MENU_ENUM_LABEL_CORE_COUNTERS,
|
|
|
|
action_get_core_counters_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST,
|
|
|
|
action_get_online_thumbnails_updater_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_PL_THUMBNAILS_UPDATER_LIST,
|
|
|
|
action_get_online_pl_thumbnails_updater_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_USER_BINDS_LIST,
|
|
|
|
action_get_title_input_binds_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_INPUT_HOTKEY_BINDS_LIST,
|
|
|
|
action_get_input_hotkey_binds_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST,
|
|
|
|
action_get_video_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_INPUT_SETTINGS_LIST,
|
|
|
|
action_get_input_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST,
|
|
|
|
action_get_playlist_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_PLAYLIST_MANAGER_LIST,
|
|
|
|
action_get_playlist_manager_list},
|
|
|
|
{MENU_ENUM_LABEL_ACHIEVEMENT_LIST,
|
|
|
|
action_get_title_cheevos_list},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS,
|
|
|
|
action_get_title_video_shader_parameters},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS,
|
|
|
|
action_get_title_video_shader_preset_parameters},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE,
|
|
|
|
action_get_title_video_shader_preset_save},
|
|
|
|
{MENU_ENUM_LABEL_MANAGEMENT,
|
|
|
|
action_get_title_action_generic},
|
|
|
|
{MENU_ENUM_LABEL_DISK_IMAGE_APPEND,
|
|
|
|
action_get_title_disk_image_append},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_SHADER_PRESET,
|
|
|
|
action_get_title_video_shader_preset},
|
|
|
|
{MENU_ENUM_LABEL_CHEAT_FILE_LOAD,
|
|
|
|
action_get_title_cheat_file_load},
|
|
|
|
{MENU_ENUM_LABEL_CHEAT_FILE_LOAD_APPEND,
|
|
|
|
action_get_title_cheat_file_load_append},
|
|
|
|
{MENU_ENUM_LABEL_REMAP_FILE_LOAD,
|
|
|
|
action_get_title_remap_file_load},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_CHEEVOS_LIST,
|
|
|
|
action_get_user_accounts_cheevos_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_LIST,
|
|
|
|
action_get_download_core_content_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_LIST,
|
|
|
|
action_get_user_accounts_list},
|
2020-03-26 17:36:05 +01:00
|
|
|
{MENU_ENUM_LABEL_VIDEO_FONT_PATH,
|
|
|
|
action_get_title_font_path},
|
|
|
|
{MENU_ENUM_LABEL_XMB_FONT,
|
|
|
|
action_get_title_font_path},
|
|
|
|
{MENU_ENUM_LABEL_VIDEO_FILTER,
|
|
|
|
action_get_title_video_filter},
|
|
|
|
{MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN,
|
|
|
|
action_get_title_audio_filter},
|
|
|
|
{MENU_ENUM_LABEL_CHEAT_DATABASE_PATH,
|
|
|
|
action_get_title_cheat_directory},
|
|
|
|
{MENU_ENUM_LABEL_LIBRETRO_DIR_PATH,
|
|
|
|
action_get_title_core_directory},
|
|
|
|
{MENU_ENUM_LABEL_LIBRETRO_INFO_PATH,
|
|
|
|
action_get_title_core_info_directory},
|
|
|
|
#if defined(HAVE_LAKKA_SWITCH) || defined(HAVE_LIBNX)
|
|
|
|
{MENU_ENUM_LABEL_SWITCH_CPU_PROFILE,
|
|
|
|
action_get_title_switch_cpu_profile},
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LAKKA_SWITCH
|
|
|
|
{MENU_ENUM_LABEL_SWITCH_GPU_PROFILE,
|
|
|
|
action_get_title_switch_gpu_profile},
|
|
|
|
#endif
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MANUAL_CONTENT_SCAN_LIST,
|
|
|
|
action_get_title_manual_content_scan_list},
|
|
|
|
{MENU_ENUM_LABEL_MANUAL_CONTENT_SCAN_DIR,
|
|
|
|
action_get_title_manual_content_scan_dir},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING,
|
|
|
|
action_get_title_list_rdb_entry_elspa_rating},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_LIST,
|
|
|
|
action_get_title_deferred_core_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_CORE_LIST_SET,
|
|
|
|
action_get_title_deferred_core_list},
|
2019-12-02 05:50:32 +01:00
|
|
|
};
|
|
|
|
|
2018-02-09 01:09:17 +01:00
|
|
|
if (cbs->setting)
|
2018-02-06 14:45:04 +01:00
|
|
|
{
|
2018-02-09 01:09:17 +01:00
|
|
|
const char *parent_group = cbs->setting->parent_group;
|
|
|
|
|
|
|
|
if (string_is_equal(parent_group, msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU))
|
2020-06-30 05:21:47 +02:00
|
|
|
&& cbs->setting->type == ST_GROUP)
|
2018-02-09 01:09:17 +01:00
|
|
|
{
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_group_settings);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-02 05:50:32 +01:00
|
|
|
for (i = 0; i < ARRAY_SIZE(info_list); i++)
|
2018-02-07 04:44:36 +01:00
|
|
|
{
|
2019-12-02 05:50:32 +01:00
|
|
|
if (string_is_equal(label, msg_hash_to_str(info_list[i].type)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, info_list[i].cb);
|
|
|
|
return 0;
|
|
|
|
}
|
2019-12-02 02:33:09 +01:00
|
|
|
}
|
2019-12-02 05:50:32 +01:00
|
|
|
|
|
|
|
if (cbs->enum_idx != MSG_UNKNOWN)
|
2015-06-08 12:12:00 +02:00
|
|
|
{
|
2016-06-16 20:14:15 +02: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;
|
2020-03-26 17:36:05 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CURSOR_MANAGER_LIST_RDB_ENTRY_ELSPA_RATING: /* TODO/FIXME - doesn't work */
|
2016-06-16 20:14:15 +02:00
|
|
|
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_CORE_LIST:
|
2019-07-03 16:29:51 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_LIST_SET:
|
2016-06-16 20:14:15 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_core_list);
|
|
|
|
break;
|
2016-11-21 07:26:58 +01:00
|
|
|
case MENU_ENUM_LABEL_CONFIGURATIONS:
|
2016-06-16 20:14:15 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_configurations);
|
|
|
|
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;
|
2019-03-31 00:17:08 +00:00
|
|
|
#ifdef HAVE_VIDEO_LAYOUT
|
|
|
|
case MENU_ENUM_LABEL_VIDEO_LAYOUT_DIRECTORY:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_video_layout_directory);
|
|
|
|
break;
|
|
|
|
#endif
|
2016-06-16 20:14:15 +02:00
|
|
|
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;
|
2019-03-11 12:50:46 +00:00
|
|
|
case MENU_ENUM_LABEL_RUNTIME_LOG_DIRECTORY:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_runtime_log_directory);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
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;
|
2019-10-17 01:07:02 +02:00
|
|
|
case MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_thumbnail_directory);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_RGUI_CONFIG_DIRECTORY:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_config_directory);
|
|
|
|
break;
|
2019-03-21 16:56:24 +00:00
|
|
|
case MENU_ENUM_LABEL_LOG_DIR:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_log_dir);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_INFORMATION_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_information_list);
|
|
|
|
break;
|
2019-06-06 17:35:44 +01:00
|
|
|
case MENU_ENUM_LABEL_INFORMATION:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_information);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
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_CURSOR_MANAGER_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_cursor_manager_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_CORE_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_core_list);
|
|
|
|
break;
|
2017-07-10 00:22:30 -05:00
|
|
|
case MENU_ENUM_LABEL_LOAD_CONTENT_SPECIAL:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_load_content_special);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_LOAD_CONTENT_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_load_content_list);
|
|
|
|
break;
|
2016-09-28 22:45:31 -04:00
|
|
|
case MENU_ENUM_LABEL_NETPLAY:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_netplay_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_THUMBNAILS_UPDATER_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_online_thumbnails_updater_list);
|
|
|
|
break;
|
2019-05-14 16:24:24 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_PL_THUMBNAILS_UPDATER_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_online_pl_thumbnails_updater_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_UPDATER_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_core_updater_list);
|
|
|
|
break;
|
2020-06-11 14:12:20 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_MANAGER_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_core_manager_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_ADD_CONTENT_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_add_content_list);
|
|
|
|
break;
|
2016-11-21 07:26:58 +01:00
|
|
|
case MENU_ENUM_LABEL_CONFIGURATIONS_LIST:
|
2016-11-04 15:03:09 +01:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_configurations_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02: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:
|
2020-07-31 15:13:43 +01:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_history_list);
|
2016-06-16 20:14:15 +02:00
|
|
|
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;
|
2016-06-17 04:02:26 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_video_settings_list);
|
|
|
|
break;
|
2016-11-21 07:26:58 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CONFIGURATION_SETTINGS_LIST:
|
2016-07-02 10:17:09 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_configuration_settings_list);
|
|
|
|
break;
|
2016-07-02 12:03:50 +02:00
|
|
|
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;
|
2016-07-02 13:17:24 +02:00
|
|
|
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;
|
2018-07-25 19:19:14 -04:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CHEAT_DETAILS_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_cheat_details_settings_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CHEAT_SEARCH_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_cheat_search_settings_list);
|
|
|
|
break;
|
2016-07-02 13:49:05 +02:00
|
|
|
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;
|
2019-03-31 00:17:08 +00:00
|
|
|
#ifdef HAVE_VIDEO_LAYOUT
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_ONSCREEN_VIDEO_LAYOUT_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_onscreen_video_layout_settings_list);
|
|
|
|
break;
|
|
|
|
#endif
|
2016-06-18 22:17:39 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_core_settings_list);
|
|
|
|
break;
|
2020-05-28 17:48:18 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_INFORMATION_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_core_information_list);
|
|
|
|
break;
|
2020-06-04 12:19:24 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_RESTORE_BACKUP_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_core_restore_backup_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_DELETE_BACKUP_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_deferred_core_delete_backup_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_INPUT_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_input_settings_list);
|
|
|
|
break;
|
2016-10-08 15:05:31 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_RECORDING_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_recording_settings_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_PLAYLIST_SETTINGS_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_playlist_settings_list);
|
|
|
|
break;
|
2019-06-26 17:40:00 +01:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_PLAYLIST_MANAGER_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_playlist_manager_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_MANAGEMENT:
|
|
|
|
case MENU_ENUM_LABEL_ACHIEVEMENT_LIST:
|
2016-11-05 16:55:57 -05:00
|
|
|
case MENU_ENUM_LABEL_ACHIEVEMENT_LIST_HARDCORE:
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS:
|
|
|
|
case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_action_generic);
|
|
|
|
break;
|
2019-08-24 01:44:50 +02:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_action_generic);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
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;
|
2018-07-25 19:19:14 -04:00
|
|
|
case MENU_ENUM_LABEL_CHEAT_FILE_LOAD_APPEND:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_cheat_file_load_append);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
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;
|
2018-09-26 23:00:00 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_TWITCH_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_user_accounts_twitch_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_DEFERRED_ACCOUNTS_YOUTUBE_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_user_accounts_youtube_list);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_LIST:
|
2016-07-12 18:43:00 +02:00
|
|
|
case MENU_ENUM_LABEL_DEFERRED_CORE_CONTENT_DIRS_SUBDIR_LIST:
|
2016-06-16 20:14:15 +02: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 23:32:18 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_font_path);
|
2016-06-16 20:14:15 +02: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;
|
2019-02-03 15:49:35 -08:00
|
|
|
#if defined(HAVE_LAKKA_SWITCH) || defined(HAVE_LIBNX)
|
2018-11-29 18:42:44 +01:00
|
|
|
case MENU_ENUM_LABEL_SWITCH_CPU_PROFILE:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_switch_cpu_profile);
|
|
|
|
break;
|
|
|
|
#endif
|
2018-10-06 14:52:44 +02:00
|
|
|
#ifdef HAVE_LAKKA_SWITCH
|
|
|
|
case MENU_ENUM_LABEL_SWITCH_GPU_PROFILE:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_switch_gpu_profile);
|
|
|
|
break;
|
|
|
|
#endif
|
2019-11-29 17:13:35 +00:00
|
|
|
case MENU_ENUM_LABEL_MANUAL_CONTENT_SCAN_LIST:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_manual_content_scan_list);
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_MANUAL_CONTENT_SCAN_DIR:
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_manual_content_scan_dir);
|
|
|
|
break;
|
2016-06-16 20:14:15 +02:00
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
2020-03-27 16:41:10 +01:00
|
|
|
else
|
|
|
|
return -1;
|
2015-06-08 12:12:00 +02:00
|
|
|
|
2015-06-08 13:19:54 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-06-12 16:01:46 +02:00
|
|
|
static int menu_cbs_init_bind_title_compare_type(menu_file_list_cbs_t *cbs,
|
2015-06-08 13:40:24 +02:00
|
|
|
unsigned type)
|
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case MENU_SETTINGS:
|
2015-10-11 20:40:23 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_menu);
|
2015-06-08 13:40:24 +02:00
|
|
|
break;
|
|
|
|
case MENU_SETTINGS_CUSTOM_BIND:
|
|
|
|
case MENU_SETTINGS_CUSTOM_BIND_KEYBOARD:
|
2015-10-11 20:40:23 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_input_settings);
|
2015-06-08 13:40:24 +02:00
|
|
|
break;
|
2015-06-25 09:17:41 +02:00
|
|
|
case MENU_SETTING_ACTION_CORE_DISK_OPTIONS:
|
2020-01-14 12:28:10 +00:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_disk_options_list);
|
2015-06-25 09:17:41 +02:00
|
|
|
break;
|
2015-06-08 13:40:24 +02:00
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-06-12 16:01:46 +02:00
|
|
|
int menu_cbs_init_bind_title(menu_file_list_cbs_t *cbs,
|
2020-03-26 17:36:05 +01:00
|
|
|
const char *path, const char *label, unsigned type, size_t idx)
|
2015-06-08 13:19:54 +02:00
|
|
|
{
|
2019-12-02 22:20:36 +01:00
|
|
|
unsigned i;
|
|
|
|
typedef struct title_info_list
|
|
|
|
{
|
|
|
|
enum msg_hash_enums type;
|
|
|
|
int (*cb)(const char *path, const char *label,
|
|
|
|
unsigned type, char *s, size_t len);
|
|
|
|
} title_info_list_t;
|
|
|
|
|
|
|
|
title_info_list_t info_list[] = {
|
|
|
|
#ifdef HAVE_AUDIOMIXER
|
2020-03-26 17:36:05 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MIXER_STREAM_SETTINGS_LIST, action_get_title_mixer_stream_actions},
|
2019-12-02 22:20:36 +01:00
|
|
|
#endif
|
2020-03-26 17:36:05 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_SHADER_PRESET_SAVE_LIST, action_get_title_video_shader_preset_save_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_VIDEO_SHADER_PRESET_REMOVE_LIST, action_get_title_video_shader_preset_remove},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST, action_get_title_dropdown_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_SPECIAL, action_get_title_dropdown_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_RESOLUTION, action_get_title_dropdown_resolution_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_VIDEO_SHADER_PARAMETER, action_get_title_dropdown_video_shader_parameter_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_VIDEO_SHADER_PRESET_PARAMETER, action_get_title_dropdown_video_shader_preset_parameter_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_VIDEO_SHADER_NUM_PASSES, action_get_title_dropdown_video_shader_num_pass_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_PLAYLIST_DEFAULT_CORE, action_get_title_dropdown_playlist_default_core_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_PLAYLIST_LABEL_DISPLAY_MODE, action_get_title_dropdown_playlist_label_display_mode_item},
|
2020-04-10 17:05:23 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_PLAYLIST_SORT_MODE, action_get_title_dropdown_playlist_sort_mode_item},
|
2020-03-26 17:36:05 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_PLAYLIST_RIGHT_THUMBNAIL_MODE, action_get_title_thumbnails},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_PLAYLIST_LEFT_THUMBNAIL_MODE, action_get_title_left_thumbnails},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_MANUAL_CONTENT_SCAN_SYSTEM_NAME, action_get_title_dropdown_manual_content_scan_system_name_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_MANUAL_CONTENT_SCAN_CORE_NAME, action_get_title_dropdown_manual_content_scan_core_name_item},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_DISK_INDEX, action_get_title_dropdown_disk_index},
|
2020-07-23 17:19:41 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_INPUT_DESCRIPTION, action_get_title_dropdown_input_description},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_DROPDOWN_BOX_LIST_INPUT_DESCRIPTION_KBD, action_get_title_dropdown_input_description_kbd},
|
2020-03-26 17:36:05 +01:00
|
|
|
{MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS, action_get_quick_menu_views_settings_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST, action_get_title_deferred_playlist_list},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_PLAYLIST_MANAGER_SETTINGS, action_get_title_deferred_playlist_list},
|
|
|
|
{MENU_ENUM_LABEL_PLAYLISTS_TAB, action_get_title_collection},
|
|
|
|
{MENU_ENUM_LABEL_DEFERRED_MANUAL_CONTENT_SCAN_LIST, action_get_title_manual_content_scan_list},
|
2019-12-02 22:20:36 +01:00
|
|
|
};
|
|
|
|
|
2015-06-08 13:19:54 +02:00
|
|
|
if (!cbs)
|
|
|
|
return -1;
|
|
|
|
|
2015-10-11 20:40:23 +02:00
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_default);
|
2015-06-08 13:19:54 +02:00
|
|
|
|
2017-08-31 21:27:14 -03:00
|
|
|
if (cbs->enum_idx != MENU_ENUM_LABEL_PLAYLIST_ENTRY &&
|
2020-03-26 17:36:05 +01:00
|
|
|
menu_cbs_init_bind_title_compare_label(cbs, label) == 0)
|
2015-06-08 13:19:54 +02:00
|
|
|
return 0;
|
|
|
|
|
2015-06-12 16:01:46 +02:00
|
|
|
if (menu_cbs_init_bind_title_compare_type(cbs, type) == 0)
|
2015-06-08 13:40:24 +02:00
|
|
|
return 0;
|
2019-02-03 15:49:35 -08:00
|
|
|
|
2019-12-02 22:20:36 +01:00
|
|
|
for (i = 0; i < ARRAY_SIZE(info_list); i++)
|
2019-11-29 17:13:35 +00:00
|
|
|
{
|
2019-12-02 22:20:36 +01:00
|
|
|
if (string_is_equal(label, msg_hash_to_str(info_list[i].type)))
|
|
|
|
{
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, info_list[i].cb);
|
|
|
|
return 0;
|
|
|
|
}
|
2019-11-29 17:13:35 +00:00
|
|
|
}
|
2017-12-18 01:55:35 +01:00
|
|
|
|
2019-12-17 14:07:35 +00:00
|
|
|
/* MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL requires special
|
|
|
|
* treatment, since the label has the format:
|
|
|
|
* <MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL>|<entry_name>
|
|
|
|
* i.e. cannot use a normal string_is_equal() */
|
2020-05-22 20:57:48 +02:00
|
|
|
if (string_starts_with(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL)))
|
2019-12-17 14:07:35 +00:00
|
|
|
{
|
|
|
|
BIND_ACTION_GET_TITLE(cbs, action_get_title_list_rdb_entry_database_info);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-06-07 18:36:10 +02:00
|
|
|
return -1;
|
2015-06-01 12:24:48 +02:00
|
|
|
}
|