2015-05-11 09:11:23 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2016-01-10 03:06:50 +00:00
|
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
2016-10-27 16:17:43 +00:00
|
|
|
* Copyright (C) 2014-2016 - Jean-André Santoni
|
2016-10-27 15:47:10 +00:00
|
|
|
* Copyright (C) 2016 - Brad Parker
|
2015-05-11 09:11:23 +00:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-05-12 10:40:49 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2016-09-01 03:36:52 +00:00
|
|
|
#include <compat/strl.h>
|
2016-11-13 18:09:15 +00:00
|
|
|
#include <compat/strcasestr.h>
|
2016-09-01 03:36:52 +00:00
|
|
|
|
2016-03-20 13:53:54 +00:00
|
|
|
#include <lists/file_list.h>
|
|
|
|
#include <lists/dir_list.h>
|
2015-05-12 10:40:49 +00:00
|
|
|
#include <file/file_path.h>
|
2016-03-20 15:14:40 +00:00
|
|
|
#include <file/archive_file.h>
|
2015-10-03 00:50:19 +00:00
|
|
|
#include <retro_stat.h>
|
2015-12-26 06:37:44 +00:00
|
|
|
#include <string/stdstring.h>
|
2016-05-18 12:39:44 +00:00
|
|
|
#include <features/features_cpu.h>
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-09-08 02:03:28 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../config.h"
|
|
|
|
#endif
|
|
|
|
|
2015-06-13 17:15:48 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
|
|
|
#include "../database_info.h"
|
|
|
|
#endif
|
|
|
|
|
2016-09-08 06:08:42 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
|
|
|
#include "../cheevos.h"
|
|
|
|
#endif
|
|
|
|
|
2016-12-03 03:40:26 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
#include "../network/netplay/netplay_discovery.h"
|
|
|
|
#endif
|
|
|
|
|
2016-09-08 06:08:42 +00:00
|
|
|
#ifdef __linux__
|
|
|
|
#include "../frontend/drivers/platform_linux.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "menu_content.h"
|
|
|
|
#include "menu_driver.h"
|
|
|
|
#include "menu_navigation.h"
|
2016-09-15 13:57:25 +00:00
|
|
|
#include "widgets/menu_dialog.h"
|
2016-09-14 22:10:37 +00:00
|
|
|
#include "widgets/menu_list.h"
|
2016-12-16 07:59:05 +00:00
|
|
|
#include "widgets/menu_filebrowser.h"
|
2016-09-08 06:08:42 +00:00
|
|
|
#include "menu_cbs.h"
|
|
|
|
|
2016-09-05 16:31:32 +00:00
|
|
|
#include "../configuration.h"
|
2016-06-20 03:11:01 +00:00
|
|
|
#include "../file_path_special.h"
|
2016-03-22 02:13:33 +00:00
|
|
|
#include "../defaults.h"
|
2016-05-09 16:20:52 +00:00
|
|
|
#include "../managers/cheat_manager.h"
|
2016-05-09 23:25:47 +00:00
|
|
|
#include "../managers/core_option_manager.h"
|
2016-09-17 10:56:19 +00:00
|
|
|
#include "../paths.h"
|
2016-03-21 18:23:45 +00:00
|
|
|
#include "../retroarch.h"
|
2016-09-01 03:36:52 +00:00
|
|
|
#include "../runloop.h"
|
2016-05-08 03:29:10 +00:00
|
|
|
#include "../core.h"
|
2015-12-05 08:09:31 +00:00
|
|
|
#include "../frontend/frontend_driver.h"
|
2015-12-05 09:04:06 +00:00
|
|
|
#include "../ui/ui_companion_driver.h"
|
2015-05-12 23:18:45 +00:00
|
|
|
#include "../gfx/video_shader_driver.h"
|
2015-05-13 11:31:34 +00:00
|
|
|
#include "../config.features.h"
|
2016-09-01 15:49:28 +00:00
|
|
|
#include "../version_git.h"
|
2015-11-28 01:22:46 +00:00
|
|
|
#include "../input/input_config.h"
|
2016-03-20 16:28:24 +00:00
|
|
|
#include "../list_special.h"
|
2016-05-10 06:53:14 +00:00
|
|
|
#include "../performance_counters.h"
|
2015-12-11 12:56:00 +00:00
|
|
|
#include "../core_info.h"
|
2016-09-21 21:08:45 +00:00
|
|
|
#include "../wifi/wifi_driver.h"
|
2016-11-29 23:18:27 +00:00
|
|
|
#include "../tasks/tasks_internal.h"
|
2015-12-06 18:10:58 +00:00
|
|
|
|
2016-12-12 18:22:46 +00:00
|
|
|
static char new_path_entry[4096] = {0};
|
2016-12-13 05:32:46 +00:00
|
|
|
static char new_lbl_entry[4096] = {0};
|
2016-12-12 18:22:46 +00:00
|
|
|
static char new_entry[4096] = {0};
|
2016-12-14 11:31:08 +00:00
|
|
|
enum msg_hash_enums new_type = MSG_UNKNOWN;
|
2016-12-12 18:22:46 +00:00
|
|
|
|
2015-05-12 13:56:49 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-06-20 23:40:55 +00:00
|
|
|
static void print_buf_lines(file_list_t *list, char *buf,
|
|
|
|
const char *label, int buf_size,
|
2016-07-12 23:23:59 +00:00
|
|
|
enum msg_file_type type, bool append, bool extended)
|
2016-04-11 01:09:17 +00:00
|
|
|
{
|
|
|
|
char c;
|
|
|
|
int i, j = 0;
|
|
|
|
char *line_start = buf;
|
|
|
|
|
|
|
|
if (!buf || !buf_size)
|
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ENTRIES_TO_DISPLAY),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ENTRIES_TO_DISPLAY),
|
2016-06-16 13:43:05 +00:00
|
|
|
MENU_ENUM_LABEL_NO_ENTRIES_TO_DISPLAY,
|
2016-06-20 13:50:37 +00:00
|
|
|
FILE_TYPE_NONE, 0, 0);
|
2016-04-11 01:09:17 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < buf_size; i++)
|
|
|
|
{
|
|
|
|
size_t ln;
|
|
|
|
const char *core_date = NULL;
|
|
|
|
const char *core_crc = NULL;
|
|
|
|
const char *core_pathname = NULL;
|
|
|
|
struct string_list *str_list = NULL;
|
|
|
|
|
|
|
|
/* The end of the buffer, print the last bit */
|
|
|
|
if (*(buf + i) == '\0')
|
|
|
|
break;
|
|
|
|
|
|
|
|
if (*(buf + i) != '\n')
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* Found a line ending, print the line and compute new line_start */
|
|
|
|
|
|
|
|
/* Save the next char */
|
|
|
|
c = *(buf + i + 1);
|
|
|
|
/* replace with \0 */
|
|
|
|
*(buf + i + 1) = '\0';
|
|
|
|
|
|
|
|
/* We need to strip the newline. */
|
|
|
|
ln = strlen(line_start) - 1;
|
|
|
|
if (line_start[ln] == '\n')
|
|
|
|
line_start[ln] = '\0';
|
|
|
|
|
|
|
|
str_list = string_split(line_start, " ");
|
|
|
|
|
|
|
|
if (str_list->elems[0].data)
|
|
|
|
core_date = str_list->elems[0].data;
|
|
|
|
if (str_list->elems[1].data)
|
|
|
|
core_crc = str_list->elems[1].data;
|
|
|
|
if (str_list->elems[2].data)
|
|
|
|
core_pathname = str_list->elems[2].data;
|
|
|
|
|
|
|
|
(void)core_date;
|
|
|
|
(void)core_crc;
|
|
|
|
|
2016-07-12 23:03:06 +00:00
|
|
|
if (extended)
|
2016-07-12 23:23:59 +00:00
|
|
|
{
|
|
|
|
if (append)
|
|
|
|
menu_entries_append_enum(list, core_pathname, "",
|
|
|
|
MENU_ENUM_LABEL_URL_ENTRY, type, 0, 0);
|
|
|
|
else
|
|
|
|
menu_entries_prepend(list, core_pathname, "",
|
|
|
|
MENU_ENUM_LABEL_URL_ENTRY, type, 0, 0);
|
|
|
|
}
|
2016-07-12 23:03:06 +00:00
|
|
|
else
|
2016-07-12 23:23:59 +00:00
|
|
|
{
|
|
|
|
if (append)
|
|
|
|
menu_entries_append_enum(list, line_start, label,
|
|
|
|
MENU_ENUM_LABEL_URL_ENTRY, type, 0, 0);
|
|
|
|
else
|
|
|
|
menu_entries_prepend(list, line_start, label,
|
|
|
|
MENU_ENUM_LABEL_URL_ENTRY, type, 0, 0);
|
|
|
|
}
|
2016-04-11 01:09:17 +00:00
|
|
|
|
2016-04-23 20:31:39 +00:00
|
|
|
switch (type)
|
|
|
|
{
|
2016-06-20 13:50:37 +00:00
|
|
|
case FILE_TYPE_DOWNLOAD_CORE:
|
2016-04-11 01:09:17 +00:00
|
|
|
{
|
2016-04-23 20:31:39 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-04-11 01:09:17 +00:00
|
|
|
|
2016-04-23 20:31:39 +00:00
|
|
|
if (settings)
|
|
|
|
{
|
2016-10-27 07:17:41 +00:00
|
|
|
char display_name[255];
|
2016-10-08 17:34:27 +00:00
|
|
|
char core_path[PATH_MAX_LENGTH];
|
2016-06-03 02:02:27 +00:00
|
|
|
char *last = NULL;
|
2016-04-23 20:31:39 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
display_name[0] = core_path[0] = '\0';
|
|
|
|
|
2016-06-28 11:05:46 +00:00
|
|
|
fill_pathname_join_noext(
|
2016-04-28 17:52:25 +00:00
|
|
|
core_path,
|
|
|
|
settings->path.libretro_info,
|
2016-10-23 03:55:13 +00:00
|
|
|
(extended && !string_is_empty(core_pathname))
|
|
|
|
? core_pathname : line_start,
|
2016-04-28 17:52:25 +00:00
|
|
|
sizeof(core_path));
|
2016-04-23 20:31:39 +00:00
|
|
|
path_remove_extension(core_path);
|
2016-06-28 11:05:46 +00:00
|
|
|
|
2016-04-23 20:31:39 +00:00
|
|
|
last = (char*)strrchr(core_path, '_');
|
2016-12-14 00:23:08 +00:00
|
|
|
|
2016-06-27 05:18:02 +00:00
|
|
|
if (!string_is_empty(last))
|
2016-04-23 20:31:39 +00:00
|
|
|
{
|
|
|
|
if (!string_is_equal(last, "_libretro"))
|
|
|
|
*last = '\0';
|
|
|
|
}
|
2016-12-14 00:23:08 +00:00
|
|
|
|
2016-06-27 05:18:02 +00:00
|
|
|
strlcat(core_path,
|
|
|
|
file_path_str(FILE_PATH_CORE_INFO_EXTENSION),
|
|
|
|
sizeof(core_path));
|
2016-04-23 20:31:39 +00:00
|
|
|
|
2016-12-14 00:23:08 +00:00
|
|
|
if (
|
|
|
|
path_file_exists(core_path)
|
|
|
|
&& core_info_get_display_name(
|
2016-04-23 20:31:39 +00:00
|
|
|
core_path, display_name, sizeof(display_name)))
|
|
|
|
menu_entries_set_alt_at_offset(list, j, display_name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2016-06-03 03:32:18 +00:00
|
|
|
default:
|
2016-07-12 23:03:06 +00:00
|
|
|
case FILE_TYPE_NONE:
|
2016-06-03 03:32:18 +00:00
|
|
|
break;
|
2016-04-11 01:09:17 +00:00
|
|
|
}
|
2016-04-23 20:31:39 +00:00
|
|
|
|
2016-04-11 01:09:17 +00:00
|
|
|
j++;
|
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
|
|
|
|
/* Restore the saved char */
|
|
|
|
*(buf + i + 1) = c;
|
|
|
|
line_start = buf + i + 1;
|
|
|
|
}
|
2016-07-12 23:23:59 +00:00
|
|
|
|
|
|
|
if (append)
|
|
|
|
file_list_sort_on_alt(list);
|
2016-04-11 01:09:17 +00:00
|
|
|
/* If the buffer was completely full, and didn't end
|
|
|
|
* with a newline, just ignore the partial last line. */
|
|
|
|
}
|
2015-05-12 13:56:49 +00:00
|
|
|
#endif
|
|
|
|
|
2015-05-12 09:39:20 +00:00
|
|
|
static void menu_displaylist_push_perfcounter(
|
|
|
|
menu_displaylist_info_t *info,
|
2015-10-11 16:21:07 +00:00
|
|
|
struct retro_perf_counter **counters,
|
2015-05-12 09:39:20 +00:00
|
|
|
unsigned num, unsigned id)
|
|
|
|
{
|
|
|
|
unsigned i;
|
|
|
|
if (!counters || num == 0)
|
2015-06-21 20:25:44 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_PERFORMANCE_COUNTERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_PERFORMANCE_COUNTERS),
|
2016-06-16 13:43:05 +00:00
|
|
|
MENU_ENUM_LABEL_NO_PERFORMANCE_COUNTERS,
|
|
|
|
0, 0, 0);
|
2015-05-12 09:39:20 +00:00
|
|
|
return;
|
2015-06-21 20:25:44 +00:00
|
|
|
}
|
2015-05-12 09:39:20 +00:00
|
|
|
|
|
|
|
for (i = 0; i < num; i++)
|
|
|
|
if (counters[i] && counters[i]->ident)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-30 14:05:41 +00:00
|
|
|
counters[i]->ident, "", (enum msg_hash_enums)(id + i), id + i , 0, 0);
|
2015-05-12 09:39:20 +00:00
|
|
|
}
|
|
|
|
|
2015-05-18 22:40:12 +00:00
|
|
|
static int menu_displaylist_parse_core_info(menu_displaylist_info_t *info)
|
|
|
|
{
|
|
|
|
unsigned i;
|
2016-10-08 17:34:27 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
2015-12-11 12:28:23 +00:00
|
|
|
core_info_t *core_info = NULL;
|
2016-10-08 17:34:27 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
tmp[0] = '\0';
|
2016-02-10 17:13:12 +00:00
|
|
|
|
2016-05-09 16:11:17 +00:00
|
|
|
core_info_get_current_core(&core_info);
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-12-06 19:44:21 +00:00
|
|
|
if (!core_info || !core_info->config_data)
|
2015-05-18 22:40:12 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE_INFORMATION_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_CORE_INFORMATION_AVAILABLE),
|
2016-06-16 13:43:05 +00:00
|
|
|
MENU_ENUM_LABEL_NO_CORE_INFORMATION_AVAILABLE,
|
|
|
|
0, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-29 15:41:32 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_NAME),
|
|
|
|
": ",
|
|
|
|
sizeof(tmp));
|
2015-06-19 15:12:10 +00:00
|
|
|
if (core_info->core_name)
|
|
|
|
strlcat(tmp, core_info->core_name, sizeof(tmp));
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_CORE_LABEL),
|
|
|
|
": ",
|
|
|
|
sizeof(tmp));
|
2015-06-19 15:12:10 +00:00
|
|
|
if (core_info->display_name)
|
|
|
|
strlcat(tmp, core_info->display_name, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->systemname)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:31:05 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_INFO_SYSTEM_NAME),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2015-06-19 15:12:10 +00:00
|
|
|
strlcat(tmp, core_info->systemname, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->system_manufacturer)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_SYSTEM_MANUFACTURER),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-19 15:12:10 +00:00
|
|
|
strlcat(tmp, core_info->system_manufacturer, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->categories_list)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_CATEGORIES),
|
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-14 02:43:30 +00:00
|
|
|
string_list_join_concat(tmp, sizeof(tmp),
|
|
|
|
core_info->categories_list, ", ");
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->authors_list)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_AUTHORS),
|
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-14 02:43:30 +00:00
|
|
|
string_list_join_concat(tmp, sizeof(tmp),
|
|
|
|
core_info->authors_list, ", ");
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->permissions_list)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_PERMISSIONS),
|
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-14 02:43:30 +00:00
|
|
|
string_list_join_concat(tmp, sizeof(tmp),
|
|
|
|
core_info->permissions_list, ", ");
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->licenses_list)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_LICENSES),
|
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-14 02:43:30 +00:00
|
|
|
string_list_join_concat(tmp, sizeof(tmp),
|
|
|
|
core_info->licenses_list, ", ");
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->supported_extensions_list)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_SUPPORTED_EXTENSIONS),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-14 02:43:30 +00:00
|
|
|
string_list_join_concat(tmp, sizeof(tmp),
|
|
|
|
core_info->supported_extensions_list, ", ");
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 02:43:30 +00:00
|
|
|
if (core_info->firmware_count > 0)
|
|
|
|
{
|
2016-02-07 15:19:02 +00:00
|
|
|
core_info_ctx_firmware_t firmware_info;
|
2015-12-11 12:51:17 +00:00
|
|
|
|
2016-02-07 15:19:02 +00:00
|
|
|
firmware_info.path = core_info->path;
|
2016-04-28 17:26:02 +00:00
|
|
|
firmware_info.directory.system = settings->directory.system;
|
2015-12-11 12:51:17 +00:00
|
|
|
|
2016-05-09 16:11:17 +00:00
|
|
|
if (core_info_list_update_missing_firmware(&firmware_info))
|
2016-02-07 15:19:02 +00:00
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFO_FIRMWARE),
|
|
|
|
": ",
|
2016-02-07 15:19:02 +00:00
|
|
|
sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-25 14:53:58 +00:00
|
|
|
|
2016-02-10 17:13:12 +00:00
|
|
|
/* FIXME: This looks hacky and probably
|
2016-02-07 15:19:02 +00:00
|
|
|
* needs to be improved for good translation support. */
|
2016-02-04 20:24:51 +00:00
|
|
|
|
2016-02-07 15:19:02 +00:00
|
|
|
for (i = 0; i < core_info->firmware_count; i++)
|
2015-05-18 22:40:12 +00:00
|
|
|
{
|
2016-02-07 15:19:02 +00:00
|
|
|
if (core_info->firmware[i].desc)
|
|
|
|
{
|
2016-12-04 14:47:45 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "(!) %s, %s: %s",
|
2016-02-07 15:19:02 +00:00
|
|
|
core_info->firmware[i].missing ?
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MISSING) :
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PRESENT),
|
2016-02-07 15:19:02 +00:00
|
|
|
core_info->firmware[i].optional ?
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OPTIONAL) :
|
2016-12-04 14:47:45 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REQUIRED),
|
|
|
|
core_info->firmware[i].desc ?
|
|
|
|
core_info->firmware[i].desc :
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_NAME)
|
2016-02-07 15:19:02 +00:00
|
|
|
);
|
2016-12-04 14:47:45 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY,
|
2016-02-07 15:19:02 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
|
|
}
|
2015-05-18 22:40:12 +00:00
|
|
|
}
|
|
|
|
}
|
2015-06-14 02:43:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (core_info->notes)
|
|
|
|
{
|
|
|
|
for (i = 0; i < core_info->note_list->size; i++)
|
2015-05-18 22:40:12 +00:00
|
|
|
{
|
2015-06-19 15:12:10 +00:00
|
|
|
strlcpy(tmp,
|
|
|
|
core_info->note_list->elems[i].data, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:50:58 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:40:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-03-03 02:06:54 +00:00
|
|
|
#ifndef HAVE_SOCKET_LEGACY
|
|
|
|
#include <net/net_ifinfo.h>
|
|
|
|
|
|
|
|
static int menu_displaylist_parse_network_info(menu_displaylist_info_t *info)
|
|
|
|
{
|
|
|
|
unsigned k = 0;
|
2016-12-01 00:57:18 +00:00
|
|
|
net_ifinfo_t list;
|
2016-03-03 02:06:54 +00:00
|
|
|
|
2016-12-01 00:57:18 +00:00
|
|
|
if (!net_ifinfo_new(&list))
|
2016-03-03 02:06:54 +00:00
|
|
|
return -1;
|
|
|
|
|
2016-12-01 00:57:18 +00:00
|
|
|
for (k = 0; k < list.size; k++)
|
2016-03-03 02:06:54 +00:00
|
|
|
{
|
2016-10-27 07:17:41 +00:00
|
|
|
char tmp[255];
|
2016-10-08 17:34:27 +00:00
|
|
|
|
|
|
|
tmp[0] = '\0';
|
|
|
|
|
2016-06-30 03:35:45 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s (%s) : %s\n",
|
|
|
|
msg_hash_to_str(MSG_INTERFACE),
|
2016-12-01 00:57:18 +00:00
|
|
|
list.entries[k].name, list.entries[k].host);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 14:59:29 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-03-03 02:06:54 +00:00
|
|
|
}
|
|
|
|
|
2016-12-01 00:57:18 +00:00
|
|
|
net_ifinfo_free(&list);
|
2016-03-03 02:06:54 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2016-06-12 11:20:54 +00:00
|
|
|
static uint64_t bytes_to_kb(uint64_t bytes)
|
|
|
|
{
|
|
|
|
return bytes / 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
static uint64_t bytes_to_mb(uint64_t bytes)
|
|
|
|
{
|
|
|
|
return bytes / 1024 / 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
static uint64_t bytes_to_gb(uint64_t bytes)
|
|
|
|
{
|
|
|
|
return bytes_to_kb(bytes) / 1024 / 1024;
|
|
|
|
}
|
|
|
|
|
2015-05-18 22:41:39 +00:00
|
|
|
static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info)
|
2015-05-12 10:40:49 +00:00
|
|
|
{
|
2015-09-06 21:43:27 +00:00
|
|
|
int controller;
|
2016-09-16 22:33:42 +00:00
|
|
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
2016-02-14 01:05:20 +00:00
|
|
|
gfx_ctx_ident_t ident_info;
|
|
|
|
#endif
|
2016-10-08 17:34:27 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
2016-10-27 07:52:38 +00:00
|
|
|
char feat_str[255];
|
2015-06-14 05:24:38 +00:00
|
|
|
const char *tmp_string = NULL;
|
|
|
|
const frontend_ctx_driver_t *frontend = frontend_get_ptr();
|
2015-09-26 00:39:28 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
tmp[0] = feat_str[0] = '\0';
|
|
|
|
|
2016-02-04 20:24:51 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_BUILD_DATE), __DATE__);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:40:12 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
(void)tmp_string;
|
2015-05-18 22:34:29 +00:00
|
|
|
|
2015-05-18 22:41:39 +00:00
|
|
|
#ifdef HAVE_GIT_VERSION
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-29 15:41:32 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GIT_VERSION),
|
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2016-05-11 18:44:24 +00:00
|
|
|
strlcat(tmp, retroarch_git_version, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:41:39 +00:00
|
|
|
#endif
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-05-09 05:09:26 +00:00
|
|
|
retroarch_get_capabilities(RARCH_CAPABILITIES_COMPILER, tmp, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-07-13 00:55:44 +00:00
|
|
|
#ifdef ANDROID
|
2016-06-17 14:27:39 +00:00
|
|
|
bool perms = test_permissions(internal_storage_path);
|
2015-07-13 00:55:44 +00:00
|
|
|
|
2016-07-01 03:51:27 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s: %s",
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INTERNAL_STORAGE_STATUS),
|
2016-02-04 20:24:51 +00:00
|
|
|
perms ? "read-write" : "read-only");
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-07-13 00:55:44 +00:00
|
|
|
|
|
|
|
#endif
|
2015-06-14 05:24:38 +00:00
|
|
|
{
|
2016-10-27 07:52:38 +00:00
|
|
|
char cpu_str[255];
|
2016-10-09 07:15:56 +00:00
|
|
|
|
|
|
|
cpu_str[0] = '\0';
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(cpu_str,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CPU_FEATURES),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(cpu_str));
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-05-09 05:09:26 +00:00
|
|
|
retroarch_get_capabilities(RARCH_CAPABILITIES_CPU,
|
2016-02-25 19:32:46 +00:00
|
|
|
cpu_str, sizeof(cpu_str));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, cpu_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 05:24:38 +00:00
|
|
|
}
|
|
|
|
|
2016-05-18 13:42:16 +00:00
|
|
|
{
|
2016-10-27 07:52:38 +00:00
|
|
|
char cpu_str[255];
|
2016-10-08 17:34:27 +00:00
|
|
|
char cpu_arch_str[PATH_MAX_LENGTH];
|
|
|
|
char cpu_text_str[PATH_MAX_LENGTH];
|
2016-05-18 13:42:16 +00:00
|
|
|
enum frontend_architecture arch = frontend_driver_get_cpu_architecture();
|
2016-10-08 17:34:27 +00:00
|
|
|
|
|
|
|
cpu_str[0] = cpu_arch_str[0] = cpu_text_str[0] = '\0';
|
|
|
|
|
2016-07-04 15:07:34 +00:00
|
|
|
strlcpy(cpu_text_str,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CPU_ARCHITECTURE),
|
|
|
|
sizeof(cpu_text_str));
|
2016-05-18 13:42:16 +00:00
|
|
|
|
|
|
|
switch (arch)
|
|
|
|
{
|
|
|
|
case FRONTEND_ARCH_X86:
|
|
|
|
strlcpy(cpu_arch_str, "x86", sizeof(cpu_arch_str));
|
|
|
|
break;
|
|
|
|
case FRONTEND_ARCH_X86_64:
|
|
|
|
strlcpy(cpu_arch_str, "x86-64", sizeof(cpu_arch_str));
|
|
|
|
break;
|
|
|
|
case FRONTEND_ARCH_PPC:
|
|
|
|
strlcpy(cpu_arch_str, "PPC", sizeof(cpu_arch_str));
|
|
|
|
break;
|
|
|
|
case FRONTEND_ARCH_ARM:
|
|
|
|
strlcpy(cpu_arch_str, "ARM", sizeof(cpu_arch_str));
|
|
|
|
break;
|
2016-05-18 20:09:01 +00:00
|
|
|
case FRONTEND_ARCH_ARMV7:
|
|
|
|
strlcpy(cpu_arch_str, "ARMv7", sizeof(cpu_arch_str));
|
|
|
|
break;
|
2016-10-18 14:35:15 +00:00
|
|
|
case FRONTEND_ARCH_ARMV8:
|
|
|
|
strlcpy(cpu_arch_str, "ARMv8", sizeof(cpu_arch_str));
|
|
|
|
break;
|
2016-05-18 13:42:16 +00:00
|
|
|
case FRONTEND_ARCH_MIPS:
|
|
|
|
strlcpy(cpu_arch_str, "MIPS", sizeof(cpu_arch_str));
|
|
|
|
break;
|
|
|
|
case FRONTEND_ARCH_TILE:
|
|
|
|
strlcpy(cpu_arch_str, "Tilera", sizeof(cpu_arch_str));
|
|
|
|
break;
|
|
|
|
case FRONTEND_ARCH_NONE:
|
|
|
|
default:
|
2016-07-04 15:07:34 +00:00
|
|
|
strlcpy(cpu_arch_str,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
|
|
|
sizeof(cpu_arch_str));
|
2016-05-18 13:42:16 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
snprintf(cpu_str, sizeof(cpu_str), "%s %s", cpu_text_str, cpu_arch_str);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, cpu_str,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CPU_ARCHITECTURE),
|
2016-06-18 01:05:44 +00:00
|
|
|
MENU_ENUM_LABEL_CPU_ARCHITECTURE, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-05-18 13:42:16 +00:00
|
|
|
}
|
|
|
|
|
2016-05-18 13:43:20 +00:00
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char cpu_str[PATH_MAX_LENGTH];
|
2016-06-03 02:02:27 +00:00
|
|
|
unsigned amount_cores = cpu_features_get_core_amount();
|
2016-05-18 13:43:20 +00:00
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
cpu_str[0] = '\0';
|
|
|
|
|
2016-06-18 01:05:44 +00:00
|
|
|
snprintf(cpu_str, sizeof(cpu_str),
|
2016-06-19 22:31:13 +00:00
|
|
|
"%s %d\n", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CPU_CORES), amount_cores);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, cpu_str,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CPU_CORES),
|
2016-06-18 01:05:44 +00:00
|
|
|
MENU_ENUM_LABEL_CPU_CORES, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-05-18 13:43:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-09-06 21:43:27 +00:00
|
|
|
for(controller = 0; controller < MAX_USERS; controller++)
|
2015-07-26 20:40:29 +00:00
|
|
|
{
|
|
|
|
if (settings->input.autoconfigured[controller])
|
|
|
|
{
|
2016-02-04 20:24:51 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "Port #%d device name: %s (#%d)",
|
|
|
|
controller, settings->input.device_names[controller],
|
|
|
|
settings->input.device_name_index[controller]);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-02-04 20:24:51 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "Port #%d device VID/PID: %d/%d",
|
|
|
|
controller, settings->input.vid[controller],
|
|
|
|
settings->input.pid[controller]);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-07-26 20:40:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
if (frontend)
|
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char tmp2[PATH_MAX_LENGTH];
|
2016-06-03 02:02:27 +00:00
|
|
|
int major = 0;
|
|
|
|
int minor = 0;
|
2015-06-14 05:24:38 +00:00
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
tmp2[0] = '\0';
|
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_IDENTIFIER),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-19 15:46:39 +00:00
|
|
|
strlcat(tmp, frontend->ident, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
if (frontend->get_name)
|
2015-05-18 22:41:39 +00:00
|
|
|
{
|
2015-06-14 05:24:38 +00:00
|
|
|
frontend->get_name(tmp2, sizeof(tmp2));
|
2016-06-29 15:41:32 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_NAME),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2016-02-10 17:13:12 +00:00
|
|
|
strlcat(tmp, frontend->get_name ?
|
2016-07-04 15:07:34 +00:00
|
|
|
tmp2 : msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
|
|
|
sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 05:24:38 +00:00
|
|
|
}
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
if (frontend->get_os)
|
|
|
|
{
|
|
|
|
frontend->get_os(tmp2, sizeof(tmp2), &major, &minor);
|
2015-06-19 16:02:55 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s : %s %d.%d",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FRONTEND_OS),
|
2016-02-10 17:13:12 +00:00
|
|
|
frontend->get_os
|
2016-06-19 22:31:13 +00:00
|
|
|
? tmp2 : msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
2016-02-04 20:24:51 +00:00
|
|
|
major, minor);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 05:24:38 +00:00
|
|
|
}
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-19 16:02:55 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s : %d",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RETRORATING_LEVEL),
|
2015-06-14 05:24:38 +00:00
|
|
|
frontend->get_rating ? frontend->get_rating() : -1);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-06-14 05:24:38 +00:00
|
|
|
|
2016-06-12 11:20:54 +00:00
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
|
|
|
char tmp2[PATH_MAX_LENGTH];
|
|
|
|
char tmp3[PATH_MAX_LENGTH];
|
2016-06-12 18:50:03 +00:00
|
|
|
uint64_t memory_used = frontend_driver_get_used_memory();
|
2016-06-12 11:20:54 +00:00
|
|
|
uint64_t memory_total = frontend_driver_get_total_memory();
|
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
tmp[0] = tmp2[0] = tmp3[0] = '\0';
|
|
|
|
|
2016-06-12 18:50:03 +00:00
|
|
|
if (memory_used != 0 && memory_total != 0)
|
2016-06-12 11:20:54 +00:00
|
|
|
{
|
|
|
|
#ifdef _WIN32
|
|
|
|
snprintf(tmp, sizeof(tmp),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s: %Iu/%Iu B",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_BYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
memory_used,
|
2016-06-12 11:20:54 +00:00
|
|
|
memory_total
|
|
|
|
);
|
|
|
|
snprintf(tmp2, sizeof(tmp2),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s: %Iu/%Iu MB",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_MEGABYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
bytes_to_mb(memory_used),
|
2016-06-12 11:20:54 +00:00
|
|
|
bytes_to_mb(memory_total)
|
|
|
|
);
|
|
|
|
snprintf(tmp3, sizeof(tmp3),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s: %Iu/%Iu GB",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_GIGABYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
bytes_to_gb(memory_used),
|
2016-06-12 11:20:54 +00:00
|
|
|
bytes_to_gb(memory_total)
|
|
|
|
);
|
|
|
|
#elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
|
|
|
|
snprintf(tmp, sizeof(tmp),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s : %llu/%llu B",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_BYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
(unsigned long long)memory_used,
|
2016-06-12 11:50:29 +00:00
|
|
|
(unsigned long long)memory_total
|
2016-06-12 11:20:54 +00:00
|
|
|
);
|
|
|
|
snprintf(tmp2, sizeof(tmp2),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s : %llu/%llu MB",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_MEGABYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
(unsigned long long)bytes_to_mb(memory_used),
|
2016-06-12 11:50:29 +00:00
|
|
|
(unsigned long long)bytes_to_mb(memory_total)
|
2016-06-12 11:20:54 +00:00
|
|
|
);
|
|
|
|
snprintf(tmp3, sizeof(tmp3),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s: %llu/%llu GB",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_GIGABYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
(unsigned long long)bytes_to_gb(memory_used),
|
2016-06-12 11:50:29 +00:00
|
|
|
(unsigned long long)bytes_to_gb(memory_total)
|
2016-06-12 11:20:54 +00:00
|
|
|
);
|
|
|
|
#else
|
|
|
|
snprintf(tmp, sizeof(tmp),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s: %lu/%lu B",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_BYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
memory_used,
|
2016-06-12 11:20:54 +00:00
|
|
|
memory_total
|
|
|
|
);
|
|
|
|
snprintf(tmp2, sizeof(tmp2),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s : %lu/%lu MB",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_MEGABYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
bytes_to_mb(memory_used),
|
2016-06-12 11:20:54 +00:00
|
|
|
bytes_to_mb(memory_total)
|
|
|
|
);
|
|
|
|
snprintf(tmp3, sizeof(tmp3),
|
2016-06-30 03:35:45 +00:00
|
|
|
"%s %s : %lu/%lu GB",
|
|
|
|
msg_hash_to_str(MSG_MEMORY),
|
|
|
|
msg_hash_to_str(MSG_IN_GIGABYTES),
|
2016-06-12 18:50:03 +00:00
|
|
|
bytes_to_gb(memory_used),
|
2016-06-12 11:20:54 +00:00
|
|
|
bytes_to_gb(memory_total)
|
|
|
|
);
|
|
|
|
#endif
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp2, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp3, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-06-12 11:20:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
if (frontend->get_powerstate)
|
|
|
|
{
|
|
|
|
int seconds = 0, percent = 0;
|
2016-02-10 17:13:12 +00:00
|
|
|
enum frontend_powerstate state =
|
2016-02-04 20:24:51 +00:00
|
|
|
frontend->get_powerstate(&seconds, &percent);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
tmp2[0] = '\0';
|
|
|
|
|
|
|
|
if (percent != 0)
|
|
|
|
snprintf(tmp2, sizeof(tmp2), "%d%%", percent);
|
|
|
|
|
|
|
|
switch (state)
|
2015-05-18 22:34:29 +00:00
|
|
|
{
|
2015-06-14 05:24:38 +00:00
|
|
|
case FRONTEND_POWERSTATE_NONE:
|
2015-06-24 18:05:40 +00:00
|
|
|
strlcat(tmp2, " ", sizeof(tmp));
|
2016-02-25 19:32:46 +00:00
|
|
|
strlcat(tmp2,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE), sizeof(tmp));
|
2015-06-14 05:24:38 +00:00
|
|
|
break;
|
|
|
|
case FRONTEND_POWERSTATE_NO_SOURCE:
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, " (", sizeof(tmp));
|
2016-02-04 20:24:51 +00:00
|
|
|
strlcat(tmp2,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_NO_SOURCE),
|
2016-02-04 20:24:51 +00:00
|
|
|
sizeof(tmp));
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, ")", sizeof(tmp));
|
2015-06-14 05:24:38 +00:00
|
|
|
break;
|
|
|
|
case FRONTEND_POWERSTATE_CHARGING:
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, " (", sizeof(tmp));
|
2016-02-25 19:32:46 +00:00
|
|
|
strlcat(tmp2,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_CHARGING),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, ")", sizeof(tmp));
|
2015-06-14 05:24:38 +00:00
|
|
|
break;
|
|
|
|
case FRONTEND_POWERSTATE_CHARGED:
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, " (", sizeof(tmp));
|
2016-09-25 04:13:33 +00:00
|
|
|
strlcat(tmp2,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_CHARGED),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, ")", sizeof(tmp));
|
2015-06-14 05:24:38 +00:00
|
|
|
break;
|
|
|
|
case FRONTEND_POWERSTATE_ON_POWER_SOURCE:
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, " (", sizeof(tmp));
|
2016-09-25 04:13:33 +00:00
|
|
|
strlcat(tmp2,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE_DISCHARGING),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2015-06-24 17:37:55 +00:00
|
|
|
strlcat(tmp2, ")", sizeof(tmp));
|
2015-06-14 05:24:38 +00:00
|
|
|
break;
|
2015-05-18 22:34:29 +00:00
|
|
|
}
|
2015-05-14 23:24:51 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_POWER_SOURCE),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2015-06-19 15:46:39 +00:00
|
|
|
strlcat(tmp, tmp2, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:41:39 +00:00
|
|
|
}
|
2015-06-14 05:24:38 +00:00
|
|
|
}
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-09-16 22:33:42 +00:00
|
|
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
2016-05-08 18:32:46 +00:00
|
|
|
video_context_driver_get_ident(&ident_info);
|
2016-02-14 01:05:20 +00:00
|
|
|
tmp_string = ident_info.ident;
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VIDEO_CONTEXT_DRIVER),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2016-09-25 04:13:33 +00:00
|
|
|
strlcat(tmp, tmp_string ? tmp_string
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
{
|
2016-02-13 21:14:33 +00:00
|
|
|
gfx_ctx_metrics_t metrics;
|
2015-06-14 05:24:38 +00:00
|
|
|
float val = 0.0f;
|
2016-02-13 21:14:33 +00:00
|
|
|
|
|
|
|
metrics.type = DISPLAY_METRIC_MM_WIDTH;
|
2016-09-25 04:13:33 +00:00
|
|
|
metrics.value = &val;
|
2016-02-13 21:14:33 +00:00
|
|
|
|
2016-05-08 18:32:46 +00:00
|
|
|
if (video_context_driver_get_metrics(&metrics))
|
2015-05-18 22:41:39 +00:00
|
|
|
{
|
2015-06-24 17:37:55 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s: %.2f",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DISPLAY_METRIC_MM_WIDTH),
|
2016-02-25 19:32:46 +00:00
|
|
|
val);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
|
|
}
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-02-13 21:14:33 +00:00
|
|
|
metrics.type = DISPLAY_METRIC_MM_HEIGHT;
|
|
|
|
|
2016-05-08 18:32:46 +00:00
|
|
|
if (video_context_driver_get_metrics(&metrics))
|
2015-06-14 05:24:38 +00:00
|
|
|
{
|
2015-06-24 17:37:55 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s: %.2f",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DISPLAY_METRIC_MM_HEIGHT),
|
2016-02-25 19:32:46 +00:00
|
|
|
val);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:41:39 +00:00
|
|
|
}
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-02-13 21:14:33 +00:00
|
|
|
metrics.type = DISPLAY_METRIC_DPI;
|
|
|
|
|
2016-05-08 18:32:46 +00:00
|
|
|
if (video_context_driver_get_metrics(&metrics))
|
2015-06-14 05:24:38 +00:00
|
|
|
{
|
2015-06-24 17:37:55 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s: %.2f",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DISPLAY_METRIC_DPI),
|
2016-02-25 19:32:46 +00:00
|
|
|
val);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
|
|
|
}
|
2015-05-18 22:41:39 +00:00
|
|
|
}
|
2015-06-14 05:24:38 +00:00
|
|
|
#endif
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(feat_str,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 22:10:10 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBRETRODB_SUPPORT),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(feat_str));
|
|
|
|
strlcat(feat_str,
|
2016-09-25 04:13:33 +00:00
|
|
|
_libretrodb_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(feat_str));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(feat_str,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 22:10:10 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OVERLAY_SUPPORT),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(feat_str));
|
2016-09-25 04:13:33 +00:00
|
|
|
strlcat(feat_str, _overlay_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(feat_str));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(feat_str,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 22:10:10 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COMMAND_IFACE_SUPPORT),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(feat_str));
|
2016-09-25 04:13:33 +00:00
|
|
|
strlcat(feat_str, _command_supp
|
|
|
|
? msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(feat_str));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-19 16:02:55 +00:00
|
|
|
"%s : %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 22:10:10 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_COMMAND_IFACE_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_network_command_supp
|
|
|
|
? msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-11-26 04:42:16 +00:00
|
|
|
|
2015-11-26 04:20:08 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
|
|
|
"%s : %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETWORK_REMOTE_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_network_gamepad_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_COCOA_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_cocoa_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-18 22:34:29 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RPNG_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_rpng_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2016-05-18 12:36:23 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RJPEG_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_rjpeg_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-05-18 12:36:23 +00:00
|
|
|
|
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RBMP_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_rbmp_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-05-18 12:36:23 +00:00
|
|
|
|
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RTGA_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_rtga_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-05-18 12:36:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_sdl_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:40:49 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 00:12:46 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL2_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_sdl2_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2016-02-17 01:01:51 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_VULKAN_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_vulkan_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_opengl_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENGLES_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_opengles_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_THREADING_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_thread_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_KMS_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_kms_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_UDEV_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_udev_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:55:48 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENVG_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_vg_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_EGL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_egl_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_X11_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_x11_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_WAYLAND_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_wayland_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XVIDEO_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_xvideo_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ALSA_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_alsa_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OSS_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_oss_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENAL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_al_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_OPENSL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_sl_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_RSOUND_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_rsound_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ROARAUDIO_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_roar_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_JACK_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_jack_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PULSEAUDIO_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_pulse_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DSOUND_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_dsound_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_XAUDIO2_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_xaudio_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_ZLIB_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_zlib_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_7ZIP_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_7zip_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYLIB_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_dylib_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2016-01-25 05:49:37 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_DYNAMIC_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_dynamic_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2016-01-25 05:49:37 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CG_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_cg_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_GLSL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_glsl_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_HLSL_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_hlsl_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBXML2_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_libxml2_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_SDL_IMAGE_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_sdl_image_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 10:58:23 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FBO_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_fbo_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FFMPEG_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_ffmpeg_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-14 23:12:06 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_CORETEXT_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_coretext_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_FREETYPE_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_freetype_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES) :
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY,
|
2015-06-14 05:24:38 +00:00
|
|
|
MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_NETPLAY_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_netplay_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_PYTHON_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_python_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_V4L2_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_v4l2_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
2015-06-14 05:24:38 +00:00
|
|
|
snprintf(feat_str, sizeof(feat_str),
|
2015-06-24 17:37:55 +00:00
|
|
|
"%s: %s",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-16 10:50:25 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_INFO_LIBUSB_SUPPORT),
|
2016-09-25 04:13:33 +00:00
|
|
|
_libusb_supp ?
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_YES)
|
2016-06-19 22:31:13 +00:00
|
|
|
: msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, feat_str, "",
|
2016-07-04 15:07:34 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFO_ENTRY, MENU_SETTINGS_CORE_INFO_NONE, 0, 0);
|
2015-05-12 13:41:38 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-05-22 16:54:52 +00:00
|
|
|
static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist_t *playlist, const char *path_playlist, bool is_history)
|
2015-05-18 22:44:57 +00:00
|
|
|
{
|
|
|
|
unsigned i;
|
2015-05-22 00:34:05 +00:00
|
|
|
size_t list_size = 0;
|
|
|
|
|
|
|
|
if (!playlist)
|
|
|
|
return -1;
|
2015-06-06 20:51:28 +00:00
|
|
|
|
2016-05-16 07:07:44 +00:00
|
|
|
list_size = playlist_size(playlist);
|
2015-05-18 22:44:57 +00:00
|
|
|
|
2015-09-28 16:44:28 +00:00
|
|
|
if (list_size == 0)
|
2015-05-18 22:44:57 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE,
|
2015-10-22 20:43:25 +00:00
|
|
|
MENU_INFO_MESSAGE, 0, 0);
|
2015-05-18 22:44:57 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < list_size; i++)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char fill_buf[PATH_MAX_LENGTH];
|
|
|
|
char path_copy[PATH_MAX_LENGTH];
|
2015-06-12 14:36:15 +00:00
|
|
|
const char *core_name = NULL;
|
|
|
|
const char *db_name = NULL;
|
|
|
|
const char *path = NULL;
|
|
|
|
const char *label = NULL;
|
|
|
|
const char *crc32 = NULL;
|
2015-05-21 02:11:20 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
fill_buf[0] = path_copy[0] = '\0';
|
|
|
|
|
2015-05-18 22:44:57 +00:00
|
|
|
strlcpy(path_copy, info->path, sizeof(path_copy));
|
|
|
|
|
|
|
|
path = path_copy;
|
|
|
|
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist_get_index(playlist, i,
|
2015-06-08 21:38:03 +00:00
|
|
|
&path, &label, NULL, &core_name, &crc32, &db_name);
|
2015-05-18 22:44:57 +00:00
|
|
|
|
2016-06-02 18:56:13 +00:00
|
|
|
if (core_name)
|
|
|
|
strlcpy(fill_buf, core_name, sizeof(fill_buf));
|
2015-06-14 14:26:50 +00:00
|
|
|
|
2015-05-18 22:44:57 +00:00
|
|
|
if (path)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char path_short[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
path_short[0] = '\0';
|
2015-05-18 22:44:57 +00:00
|
|
|
|
|
|
|
fill_short_pathname_representation(path_short, path,
|
|
|
|
sizeof(path_short));
|
2015-07-21 02:01:11 +00:00
|
|
|
strlcpy(fill_buf,
|
2015-12-26 06:37:44 +00:00
|
|
|
(!string_is_empty(label)) ? label : path_short,
|
2015-06-19 16:02:55 +00:00
|
|
|
sizeof(fill_buf));
|
2015-05-25 22:31:03 +00:00
|
|
|
|
2015-12-26 06:37:44 +00:00
|
|
|
if (!string_is_empty(core_name))
|
2015-05-25 22:31:03 +00:00
|
|
|
{
|
2016-07-01 10:10:59 +00:00
|
|
|
if (!string_is_equal(core_name,
|
|
|
|
file_path_str(FILE_PATH_DETECT)))
|
2015-05-26 02:38:56 +00:00
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
tmp[0] = '\0';
|
|
|
|
|
2015-05-26 02:38:56 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), " (%s)", core_name);
|
|
|
|
strlcat(fill_buf, tmp, sizeof(fill_buf));
|
|
|
|
}
|
2015-05-25 22:31:03 +00:00
|
|
|
}
|
2015-05-18 22:44:57 +00:00
|
|
|
}
|
|
|
|
|
2015-12-11 09:13:18 +00:00
|
|
|
if (!path)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, fill_buf, path_playlist,
|
2016-07-04 15:35:59 +00:00
|
|
|
MENU_ENUM_LABEL_PLAYLIST_ENTRY, FILE_TYPE_PLAYLIST_ENTRY, 0, i);
|
2015-12-11 09:13:18 +00:00
|
|
|
else if (is_history)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, fill_buf,
|
2016-07-04 15:35:59 +00:00
|
|
|
path, MENU_ENUM_LABEL_PLAYLIST_ENTRY, FILE_TYPE_RPL_ENTRY, 0, i);
|
2015-07-23 17:44:59 +00:00
|
|
|
else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, label,
|
2016-07-04 15:35:59 +00:00
|
|
|
path, MENU_ENUM_LABEL_PLAYLIST_ENTRY, FILE_TYPE_RPL_ENTRY, 0, i);
|
2015-05-18 22:44:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)
|
2015-05-12 14:01:54 +00:00
|
|
|
{
|
2015-05-19 04:32:49 +00:00
|
|
|
unsigned i;
|
|
|
|
struct video_shader *shader = NULL;
|
2015-05-12 14:01:54 +00:00
|
|
|
|
2015-12-10 19:07:10 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_SHADER_GET,
|
|
|
|
&shader);
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (!shader)
|
|
|
|
return -1;
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SHADER_APPLY_CHANGES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SHADER_APPLY_CHANGES),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_SHADER_APPLY_CHANGES,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PRESET,
|
2016-06-20 13:50:37 +00:00
|
|
|
FILE_TYPE_PATH, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_AS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_AS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_AS,
|
2015-06-19 08:25:19 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-27 23:07:19 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_CORE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_AS),
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_CORE,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_SAVE_GAME),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_AS),
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_SAVE_GAME,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PARAMETERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PARAMETERS,
|
2015-06-19 20:29:39 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET_PARAMETERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PRESET_PARAMETERS,
|
2015-06-19 20:29:39 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_NUM_PASSES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_NUM_PASSES),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_NUM_PASSES,
|
2015-06-10 20:43:06 +00:00
|
|
|
0, 0, 0);
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
for (i = 0; i < shader->passes; i++)
|
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char buf_tmp[64];
|
|
|
|
char buf[64];
|
|
|
|
|
|
|
|
buf[0] = buf_tmp[0] = '\0';
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
snprintf(buf_tmp, sizeof(buf_tmp),
|
2016-06-19 22:31:13 +00:00
|
|
|
"%s #%u", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SHADER), i);
|
2015-06-24 05:15:20 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, buf_tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_PASS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_PASS,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_SHADER_PASS_0 + i, 0, 0);
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2015-06-24 05:15:20 +00:00
|
|
|
snprintf(buf, sizeof(buf), "%s Filter", buf_tmp);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, buf,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_FILTER_PASS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_FILTER_PASS,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_SHADER_PASS_FILTER_0 + i, 0, 0);
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2015-06-24 05:15:20 +00:00
|
|
|
snprintf(buf, sizeof(buf), "%s Scale", buf_tmp);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, buf,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_SHADER_SCALE_PASS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_SCALE_PASS,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_SHADER_PASS_SCALE_0 + i, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-05-18 22:49:27 +00:00
|
|
|
|
2016-09-29 02:45:31 +00:00
|
|
|
static int menu_displaylist_parse_netplay(
|
|
|
|
menu_displaylist_info_t *info)
|
|
|
|
{
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-09-29 02:45:31 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-09-29 17:24:56 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_HOST),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST),
|
2016-09-29 02:45:31 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_ENABLE_HOST,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-09-29 17:24:56 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_ENABLE_CLIENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT),
|
2016-09-29 02:45:31 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_ENABLE_CLIENT,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-09-29 17:24:56 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_DISCONNECT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_DISCONNECT),
|
2016-09-29 02:45:31 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_DISCONNECT,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-10-03 03:27:12 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_SETTINGS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_SETTINGS),
|
|
|
|
MENU_ENUM_LABEL_NETWORK_SETTINGS, MENU_SETTING_GROUP, 0, 0);
|
|
|
|
|
2016-12-03 03:42:29 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETPLAY_LAN_SCAN_SETTINGS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETPLAY_LAN_SCAN_SETTINGS),
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_LAN_SCAN_SETTINGS, MENU_SETTING_GROUP, 0, 0);
|
2016-09-29 02:45:31 +00:00
|
|
|
#else
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-02-25 19:32:46 +00:00
|
|
|
static int create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
enum msg_hash_enums enum_idx,
|
2016-02-25 19:32:46 +00:00
|
|
|
const char *desc, const char *label,
|
|
|
|
const char *actual_string, const char *path,
|
|
|
|
file_list_t *list)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
2015-06-23 04:13:57 +00:00
|
|
|
union string_list_elem_attr attr = {0};
|
2016-10-08 17:34:27 +00:00
|
|
|
char *output_label = NULL;
|
|
|
|
int str_len = 0;
|
|
|
|
struct string_list *str_list = string_list_new();
|
2015-05-18 22:44:57 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (!str_list)
|
|
|
|
return -1;
|
2015-05-12 14:01:54 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
tmp[0] = '\0';
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
str_len += strlen(label) + 1;
|
|
|
|
string_list_append(str_list, label, attr);
|
2015-05-14 23:57:32 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
str_len += strlen(actual_string) + 1;
|
|
|
|
string_list_append(str_list, actual_string, attr);
|
2015-05-12 23:18:45 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
str_len += strlen(path) + 1;
|
|
|
|
string_list_append(str_list, path, attr);
|
2015-05-12 23:18:45 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
output_label = (char*)calloc(str_len, sizeof(char));
|
2015-05-12 23:18:45 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (!output_label)
|
|
|
|
{
|
|
|
|
string_list_free(str_list);
|
|
|
|
return -1;
|
|
|
|
}
|
2015-05-12 23:31:58 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
string_list_join_concat(output_label, str_len, str_list, "|");
|
2015-05-12 23:53:32 +00:00
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp, desc, ": ", sizeof(tmp));
|
2015-06-19 16:02:55 +00:00
|
|
|
strlcat(tmp, actual_string, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(list, tmp, output_label,
|
2016-07-01 17:01:25 +00:00
|
|
|
enum_idx,
|
2016-06-16 18:43:02 +00:00
|
|
|
0, 0, 0);
|
2015-05-12 23:53:32 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (output_label)
|
|
|
|
free(output_label);
|
|
|
|
string_list_free(str_list);
|
|
|
|
str_list = NULL;
|
2015-05-12 23:53:32 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-05-12 23:53:32 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
enum msg_hash_enums enum_idx,
|
2016-02-25 19:32:46 +00:00
|
|
|
const char *desc, const char *label,
|
2015-05-19 04:32:49 +00:00
|
|
|
int actual_int, const char *path, file_list_t *list)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
|
|
|
char str[PATH_MAX_LENGTH];
|
2015-06-23 04:13:57 +00:00
|
|
|
union string_list_elem_attr attr = {0};
|
2015-09-26 00:47:17 +00:00
|
|
|
char *output_label = NULL;
|
|
|
|
int str_len = 0;
|
|
|
|
struct string_list *str_list = string_list_new();
|
2015-05-12 23:53:32 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (!str_list)
|
|
|
|
return -1;
|
2015-05-13 10:52:29 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
tmp[0] = str[0] = '\0';
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
str_len += strlen(label) + 1;
|
|
|
|
string_list_append(str_list, label, attr);
|
2015-05-13 10:52:29 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
snprintf(str, sizeof(str), "%d", actual_int);
|
|
|
|
str_len += strlen(str) + 1;
|
|
|
|
string_list_append(str_list, str, attr);
|
2015-05-13 10:52:29 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
str_len += strlen(path) + 1;
|
|
|
|
string_list_append(str_list, path, attr);
|
2015-05-13 10:55:41 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
output_label = (char*)calloc(str_len, sizeof(char));
|
2015-05-13 10:55:41 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (!output_label)
|
|
|
|
{
|
|
|
|
string_list_free(str_list);
|
2015-05-18 22:41:39 +00:00
|
|
|
return -1;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-05-13 10:55:41 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
string_list_join_concat(output_label, str_len, str_list, "|");
|
2015-05-13 10:55:41 +00:00
|
|
|
|
2015-06-19 16:04:29 +00:00
|
|
|
snprintf(tmp, sizeof(tmp), "%s : %d", desc, actual_int);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(list, tmp, output_label,
|
2016-07-01 17:01:25 +00:00
|
|
|
enum_idx,
|
2015-06-10 20:43:06 +00:00
|
|
|
0, 0, 0);
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (output_label)
|
|
|
|
free(output_label);
|
|
|
|
string_list_free(str_list);
|
|
|
|
str_list = NULL;
|
2015-05-13 10:55:41 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
#endif
|
2015-05-13 10:55:41 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
static int menu_displaylist_parse_database_entry(menu_displaylist_info_t *info)
|
2015-05-13 10:58:42 +00:00
|
|
|
{
|
2015-05-19 04:32:49 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2015-06-09 22:53:31 +00:00
|
|
|
unsigned i, j, k;
|
2016-10-08 17:34:27 +00:00
|
|
|
char path_playlist[PATH_MAX_LENGTH];
|
|
|
|
char path_base[PATH_MAX_LENGTH];
|
|
|
|
char query[PATH_MAX_LENGTH];
|
2016-05-23 19:19:28 +00:00
|
|
|
playlist_t *playlist = NULL;
|
2016-02-10 20:15:23 +00:00
|
|
|
database_info_list_t *db_info = NULL;
|
|
|
|
menu_handle_t *menu = NULL;
|
2015-06-12 14:36:15 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-02-10 20:15:23 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
path_playlist[0] = path_base[0] = query[0] = '\0';
|
|
|
|
|
2016-02-10 20:15:23 +00:00
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
database_info_build_query(query, sizeof(query),
|
|
|
|
"displaylist_parse_database_entry", info->path_b);
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2016-05-27 02:18:27 +00:00
|
|
|
db_info = database_info_list_new(info->path, query);
|
|
|
|
if (!db_info)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-13 10:58:42 +00:00
|
|
|
|
2016-06-28 10:49:37 +00:00
|
|
|
fill_short_pathname_representation_noext(path_base, info->path,
|
2015-06-22 17:39:56 +00:00
|
|
|
sizeof(path_base));
|
2016-06-26 08:12:28 +00:00
|
|
|
strlcat(path_base,
|
|
|
|
file_path_str(FILE_PATH_LPL_EXTENSION),
|
|
|
|
sizeof(path_base));
|
2015-05-13 10:58:42 +00:00
|
|
|
|
2016-04-28 17:26:02 +00:00
|
|
|
fill_pathname_join(path_playlist, settings->directory.playlist, path_base,
|
2015-05-21 22:29:55 +00:00
|
|
|
sizeof(path_playlist));
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist = playlist_init(path_playlist, COLLECTION_SIZE);
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2015-05-25 23:58:52 +00:00
|
|
|
if (playlist)
|
|
|
|
strlcpy(menu->db_playlist_file, path_playlist,
|
|
|
|
sizeof(menu->db_playlist_file));
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
for (i = 0; i < db_info->count; i++)
|
2015-05-13 11:31:34 +00:00
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char tmp[PATH_MAX_LENGTH];
|
2016-10-09 07:15:56 +00:00
|
|
|
char crc_str[20];
|
2015-05-19 04:32:49 +00:00
|
|
|
database_info_t *db_info_entry = &db_info->list[i];
|
2015-06-18 01:10:24 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-02-25 19:32:46 +00:00
|
|
|
bool show_advanced_settings = false;
|
2016-09-25 04:13:33 +00:00
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
crc_str[0] = tmp[0] = '\0';
|
2016-10-08 17:34:27 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
if (settings)
|
|
|
|
show_advanced_settings = settings->menu.show_advanced_settings;
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-06-09 23:13:03 +00:00
|
|
|
snprintf(crc_str, sizeof(crc_str), "%08X", db_info_entry->crc32);
|
|
|
|
|
2015-06-09 22:53:31 +00:00
|
|
|
if (playlist)
|
|
|
|
{
|
2016-05-16 07:07:44 +00:00
|
|
|
for (j = 0; j < playlist_size(playlist); j++)
|
2015-06-09 22:53:31 +00:00
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char elem0[PATH_MAX_LENGTH];
|
|
|
|
char elem1[PATH_MAX_LENGTH];
|
2015-11-28 23:46:47 +00:00
|
|
|
const char *crc32 = NULL;
|
2015-06-12 14:36:15 +00:00
|
|
|
bool match_found = false;
|
2015-11-28 23:46:47 +00:00
|
|
|
struct string_list *tmp_str_list = NULL;
|
2015-06-09 22:53:31 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
elem0[0] = elem1[0] = '\0';
|
|
|
|
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist_get_index(playlist, j,
|
2015-11-28 23:46:47 +00:00
|
|
|
NULL, NULL, NULL, NULL,
|
|
|
|
NULL, &crc32);
|
|
|
|
|
|
|
|
tmp_str_list = string_split(crc32, "|");
|
|
|
|
|
2015-06-09 22:53:31 +00:00
|
|
|
if (!tmp_str_list)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (tmp_str_list->size > 0)
|
|
|
|
strlcpy(elem0, tmp_str_list->elems[0].data, sizeof(elem0));
|
|
|
|
if (tmp_str_list->size > 1)
|
|
|
|
strlcpy(elem1, tmp_str_list->elems[1].data, sizeof(elem1));
|
|
|
|
|
2016-06-20 13:33:22 +00:00
|
|
|
switch (msg_hash_to_file_type(msg_hash_calculate(elem1)))
|
2015-06-09 22:53:31 +00:00
|
|
|
{
|
2016-06-20 13:50:37 +00:00
|
|
|
case FILE_TYPE_CRC:
|
2016-01-20 03:54:17 +00:00
|
|
|
if (string_is_equal(crc_str, elem0))
|
2015-06-09 22:53:31 +00:00
|
|
|
match_found = true;
|
|
|
|
break;
|
2016-06-20 13:50:37 +00:00
|
|
|
case FILE_TYPE_SHA1:
|
2016-01-20 03:54:17 +00:00
|
|
|
if (string_is_equal(db_info_entry->sha1, elem0))
|
2015-06-09 22:53:31 +00:00
|
|
|
match_found = true;
|
|
|
|
break;
|
2016-06-20 13:50:37 +00:00
|
|
|
case FILE_TYPE_MD5:
|
2016-01-20 03:54:17 +00:00
|
|
|
if (string_is_equal(db_info_entry->md5, elem0))
|
2015-06-09 22:53:31 +00:00
|
|
|
match_found = true;
|
|
|
|
break;
|
2016-06-17 21:27:17 +00:00
|
|
|
default:
|
|
|
|
break;
|
2015-06-09 22:53:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
string_list_free(tmp_str_list);
|
|
|
|
|
|
|
|
if (!match_found)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
rdb_entry_start_game_selection_ptr = j;
|
|
|
|
}
|
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->name)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_NAME),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2015-06-25 14:50:34 +00:00
|
|
|
sizeof(tmp));
|
2015-06-19 15:14:26 +00:00
|
|
|
strlcat(tmp, db_info_entry->name, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_NAME),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_NAME,
|
2015-06-10 20:43:06 +00:00
|
|
|
0, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->description)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_DESCRIPTION),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2015-06-25 14:50:34 +00:00
|
|
|
sizeof(tmp));
|
2015-06-19 15:14:26 +00:00
|
|
|
strlcat(tmp, db_info_entry->description, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_DESCRIPTION),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_DESCRIPTION,
|
2015-06-10 20:43:06 +00:00
|
|
|
0, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2016-02-04 14:20:56 +00:00
|
|
|
if (db_info_entry->genre)
|
|
|
|
{
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_GENRE),
|
2016-06-29 15:41:32 +00:00
|
|
|
": ",
|
2016-02-04 14:20:56 +00:00
|
|
|
sizeof(tmp));
|
|
|
|
strlcat(tmp, db_info_entry->genre, sizeof(tmp));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, tmp,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_GENRE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_GENRE,
|
2016-02-04 14:20:56 +00:00
|
|
|
0, 0, 0);
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->publisher)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_PUBLISHER,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PUBLISHER),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_PUBLISHER),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->publisher, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-06-09 22:53:31 +00:00
|
|
|
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->developer)
|
|
|
|
{
|
2015-06-09 22:53:31 +00:00
|
|
|
for (k = 0; k < db_info_entry->developer->size; k++)
|
|
|
|
{
|
|
|
|
if (db_info_entry->developer->elems[k].data)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_DEVELOPER,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_DEVELOPER),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_DEVELOPER),
|
2015-06-09 22:53:31 +00:00
|
|
|
db_info_entry->developer->elems[k].data,
|
|
|
|
info->path, info->list) == -1)
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-06-09 22:53:31 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->origin)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_ORIGIN,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ORIGIN),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ORIGIN),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->origin, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->franchise)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_FRANCHISE,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_FRANCHISE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_FRANCHISE),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->franchise, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->max_users)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_MAX_USERS,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_MAX_USERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_MAX_USERS),
|
2015-06-19 08:00:04 +00:00
|
|
|
db_info_entry->max_users,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2016-02-04 10:55:08 +00:00
|
|
|
if (db_info_entry->tgdb_rating)
|
|
|
|
{
|
2016-06-18 01:05:44 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_TGDB_RATING,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_TGDB_RATING),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_TGDB_RATING),
|
2016-02-04 10:55:08 +00:00
|
|
|
db_info_entry->tgdb_rating,
|
|
|
|
info->path, info->list) == -1)
|
|
|
|
goto error;
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->famitsu_magazine_rating)
|
|
|
|
{
|
2016-06-18 01:05:44 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_FAMITSU_MAGAZINE_RATING),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_FAMITSU_MAGAZINE_RATING),
|
2015-06-19 19:41:54 +00:00
|
|
|
db_info_entry->famitsu_magazine_rating,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->edge_magazine_review)
|
|
|
|
{
|
2016-06-18 01:05:44 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_REVIEW,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_REVIEW),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_REVIEW),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->edge_magazine_review, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->edge_magazine_rating)
|
|
|
|
{
|
2016-06-18 01:05:44 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_RATING,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_RATING),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_RATING),
|
2015-06-19 08:00:04 +00:00
|
|
|
db_info_entry->edge_magazine_rating,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->edge_magazine_issue)
|
|
|
|
{
|
2016-06-27 05:28:07 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE,
|
2016-06-27 05:28:07 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_EDGE_MAGAZINE_ISSUE),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_EDGE_MAGAZINE_ISSUE),
|
2015-06-19 08:00:04 +00:00
|
|
|
db_info_entry->edge_magazine_issue,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->releasemonth)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_RELEASE_MONTH,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RELEASE_MONTH),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_RELEASE_MONTH),
|
2015-06-19 08:00:04 +00:00
|
|
|
db_info_entry->releasemonth,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->releaseyear)
|
|
|
|
{
|
2015-06-25 14:50:34 +00:00
|
|
|
if (create_string_list_rdb_entry_int(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_RELEASE_YEAR,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RELEASE_YEAR),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_RELEASE_YEAR),
|
2015-06-19 08:00:04 +00:00
|
|
|
db_info_entry->releaseyear,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->bbfc_rating)
|
|
|
|
{
|
2016-06-27 05:28:07 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_BBFC_RATING,
|
2016-06-27 05:28:07 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_BBFC_RATING),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_BBFC_RATING),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->bbfc_rating, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->esrb_rating)
|
|
|
|
{
|
2016-06-27 05:28:07 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_ESRB_RATING,
|
2016-06-27 05:28:07 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ESRB_RATING),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ESRB_RATING),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->esrb_rating, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->elspa_rating)
|
|
|
|
{
|
2016-06-28 09:30:17 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_ELSPA_RATING,
|
2016-06-28 09:30:17 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ELSPA_RATING),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ELSPA_RATING),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->elspa_rating, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->pegi_rating)
|
|
|
|
{
|
2016-06-28 09:30:17 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_PEGI_RATING,
|
2016-06-28 09:30:17 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_PEGI_RATING),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_PEGI_RATING),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->pegi_rating, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->enhancement_hw)
|
|
|
|
{
|
2016-06-28 09:30:17 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_ENHANCEMENT_HW,
|
2016-06-28 09:30:17 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ENHANCEMENT_HW),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ENHANCEMENT_HW),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->enhancement_hw, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
if (db_info_entry->cero_rating)
|
|
|
|
{
|
2016-06-27 05:28:07 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_CERO_RATING,
|
2016-06-27 05:28:07 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CERO_RATING),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_CERO_RATING),
|
2015-06-06 20:51:28 +00:00
|
|
|
db_info_entry->cero_rating, info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-09-20 21:58:02 +00:00
|
|
|
|
|
|
|
if (db_info_entry->serial)
|
|
|
|
{
|
2016-06-30 03:28:41 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_SERIAL,
|
2016-06-30 03:28:41 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SERIAL),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_SERIAL),
|
2015-09-20 21:58:02 +00:00
|
|
|
db_info_entry->serial, info->path, info->list) == -1)
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
|
2016-01-03 18:40:37 +00:00
|
|
|
if (db_info_entry->analog_supported == 1)
|
|
|
|
{
|
2016-06-28 09:30:17 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_ANALOG,
|
2016-06-28 09:30:17 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_ANALOG),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_ANALOG),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TRUE), info->path, info->list) == -1)
|
2016-01-03 18:40:37 +00:00
|
|
|
goto error;
|
2016-02-03 12:35:59 +00:00
|
|
|
}
|
2016-01-03 18:40:37 +00:00
|
|
|
|
|
|
|
if (db_info_entry->rumble_supported == 1)
|
|
|
|
{
|
2016-06-28 09:30:17 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_RUMBLE,
|
2016-06-28 09:30:17 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_RUMBLE),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_RUMBLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TRUE), info->path, info->list) == -1)
|
2016-01-03 18:40:37 +00:00
|
|
|
goto error;
|
2016-02-03 12:35:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (db_info_entry->coop_supported == 1)
|
|
|
|
{
|
2016-06-28 09:30:17 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_COOP,
|
2016-06-28 09:30:17 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_COOP),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_COOP),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TRUE), info->path, info->list) == -1)
|
2016-02-03 12:35:59 +00:00
|
|
|
goto error;
|
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-06-18 01:10:24 +00:00
|
|
|
if (!show_advanced_settings)
|
|
|
|
continue;
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->crc32)
|
|
|
|
{
|
2015-06-19 20:46:04 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_CRC32,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_CRC32),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_CRC32),
|
2015-06-19 08:08:09 +00:00
|
|
|
crc_str,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-06-18 01:10:24 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->sha1)
|
|
|
|
{
|
2015-06-19 20:46:04 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_SHA1,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_SHA1),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_SHA1),
|
2015-06-19 08:08:09 +00:00
|
|
|
db_info_entry->sha1,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-06-18 01:10:24 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info_entry->md5)
|
|
|
|
{
|
2015-06-19 20:46:04 +00:00
|
|
|
if (create_string_list_rdb_entry_string(
|
2016-07-01 17:01:25 +00:00
|
|
|
MENU_ENUM_LABEL_RDB_ENTRY_MD5,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RDB_ENTRY_MD5),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RDB_ENTRY_MD5),
|
2015-06-19 08:08:09 +00:00
|
|
|
db_info_entry->md5,
|
2015-06-06 20:51:28 +00:00
|
|
|
info->path, info->list) == -1)
|
2015-05-25 23:58:52 +00:00
|
|
|
goto error;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-05-18 22:41:39 +00:00
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
if (db_info->count < 1)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE,
|
2015-06-10 20:43:06 +00:00
|
|
|
0, 0, 0);
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist_free(playlist);
|
2015-06-28 21:56:51 +00:00
|
|
|
database_info_list_free(db_info);
|
2016-09-25 03:55:55 +00:00
|
|
|
free(db_info);
|
2015-05-25 23:58:52 +00:00
|
|
|
|
2015-05-18 22:41:39 +00:00
|
|
|
return 0;
|
2015-05-25 23:58:52 +00:00
|
|
|
|
|
|
|
error:
|
2016-05-23 19:28:43 +00:00
|
|
|
if (db_info)
|
2016-09-25 03:55:55 +00:00
|
|
|
{
|
2016-05-23 19:28:43 +00:00
|
|
|
database_info_list_free(db_info);
|
2016-09-25 03:55:55 +00:00
|
|
|
free(db_info);
|
|
|
|
}
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist_free(playlist);
|
2015-05-25 23:58:52 +00:00
|
|
|
|
|
|
|
return -1;
|
2015-05-27 04:24:51 +00:00
|
|
|
#else
|
|
|
|
return 0;
|
|
|
|
#endif
|
2015-05-18 22:41:39 +00:00
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-24 18:06:15 +00:00
|
|
|
static int menu_database_parse_query(file_list_t *list, const char *path,
|
2015-06-06 20:51:28 +00:00
|
|
|
const char *query)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2015-06-26 10:38:33 +00:00
|
|
|
unsigned i;
|
2015-05-25 03:20:10 +00:00
|
|
|
database_info_list_t *db_list = database_info_list_new(path, query);
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-25 03:20:10 +00:00
|
|
|
if (!db_list)
|
2015-05-19 04:32:49 +00:00
|
|
|
return -1;
|
2015-05-24 18:15:30 +00:00
|
|
|
|
2015-05-25 03:20:10 +00:00
|
|
|
for (i = 0; i < db_list->count; i++)
|
|
|
|
{
|
2015-12-26 06:37:44 +00:00
|
|
|
if (!string_is_empty(db_list->list[i].name))
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(list, db_list->list[i].name,
|
2016-07-07 00:21:33 +00:00
|
|
|
path, MENU_ENUM_LABEL_RDB_ENTRY, FILE_TYPE_RDB_ENTRY, 0, 0);
|
2015-05-24 18:15:30 +00:00
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-25 03:20:10 +00:00
|
|
|
database_info_list_free(db_list);
|
2016-09-25 03:55:55 +00:00
|
|
|
free(db_list);
|
2015-05-19 04:32:49 +00:00
|
|
|
#endif
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
#ifdef HAVE_SHADER_MANAGER
|
|
|
|
static int deferred_push_video_shader_parameters_common(
|
|
|
|
menu_displaylist_info_t *info,
|
|
|
|
struct video_shader *shader, unsigned base_parameter)
|
|
|
|
{
|
|
|
|
unsigned i;
|
|
|
|
size_t list_size = shader->num_parameters;
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-09-28 16:44:28 +00:00
|
|
|
if (list_size == 0)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SHADER_PARAMETERS),
|
2016-06-30 03:28:41 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SHADER_PARAMETERS),
|
|
|
|
MENU_ENUM_LABEL_NO_SHADER_PARAMETERS,
|
2016-06-16 18:43:02 +00:00
|
|
|
0, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
for (i = 0; i < list_size; i++)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, shader->parameters[i].desc,
|
2016-07-07 00:21:33 +00:00
|
|
|
info->label, MENU_ENUM_LABEL_SHADER_PARAMETERS_ENTRY,
|
|
|
|
base_parameter + i, 0, 0);
|
2015-05-18 22:41:39 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
#endif
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2016-06-14 23:41:31 +00:00
|
|
|
static int menu_displaylist_parse_settings_internal(void *data,
|
2016-03-02 23:37:32 +00:00
|
|
|
menu_displaylist_info_t *info,
|
|
|
|
enum menu_displaylist_parse_type parse_type,
|
2016-06-14 23:41:31 +00:00
|
|
|
bool add_empty_entry,
|
|
|
|
rarch_setting_t *setting
|
|
|
|
)
|
2015-05-18 22:41:39 +00:00
|
|
|
{
|
2015-10-18 23:17:44 +00:00
|
|
|
enum setting_type precond;
|
|
|
|
size_t count = 0;
|
2016-10-23 01:13:49 +00:00
|
|
|
uint64_t flags = 0;
|
2015-10-18 23:17:44 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2015-05-19 04:32:49 +00:00
|
|
|
|
|
|
|
if (!setting)
|
2016-03-04 06:23:07 +00:00
|
|
|
return -1;
|
2015-11-02 02:20:55 +00:00
|
|
|
|
2016-10-23 01:13:49 +00:00
|
|
|
flags = setting->flags;
|
|
|
|
|
2015-10-18 23:17:44 +00:00
|
|
|
switch (parse_type)
|
|
|
|
{
|
|
|
|
case PARSE_GROUP:
|
|
|
|
case PARSE_SUB_GROUP:
|
|
|
|
precond = ST_NONE;
|
|
|
|
break;
|
2015-10-22 02:29:40 +00:00
|
|
|
case PARSE_ACTION:
|
|
|
|
precond = ST_ACTION;
|
|
|
|
break;
|
2015-11-01 09:59:01 +00:00
|
|
|
case PARSE_ONLY_INT:
|
|
|
|
precond = ST_INT;
|
|
|
|
break;
|
2015-10-22 06:38:29 +00:00
|
|
|
case PARSE_ONLY_UINT:
|
|
|
|
precond = ST_UINT;
|
|
|
|
break;
|
2015-10-25 09:41:53 +00:00
|
|
|
case PARSE_ONLY_BIND:
|
|
|
|
precond = ST_BIND;
|
|
|
|
break;
|
2015-10-24 08:31:11 +00:00
|
|
|
case PARSE_ONLY_BOOL:
|
|
|
|
precond = ST_BOOL;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_FLOAT:
|
|
|
|
precond = ST_FLOAT;
|
|
|
|
break;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_HEX:
|
|
|
|
precond = ST_HEX;
|
|
|
|
break;
|
2016-06-16 20:14:31 +00:00
|
|
|
case PARSE_ONLY_STRING:
|
|
|
|
precond = ST_STRING;
|
|
|
|
break;
|
2016-06-17 02:02:26 +00:00
|
|
|
case PARSE_ONLY_PATH:
|
|
|
|
precond = ST_PATH;
|
|
|
|
break;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_DIR:
|
|
|
|
precond = ST_DIR;
|
|
|
|
break;
|
2016-06-16 19:40:13 +00:00
|
|
|
case PARSE_ONLY_STRING_OPTIONS:
|
|
|
|
precond = ST_STRING_OPTIONS;
|
|
|
|
break;
|
2015-10-18 23:43:03 +00:00
|
|
|
case PARSE_ONLY_GROUP:
|
2015-10-18 23:17:44 +00:00
|
|
|
default:
|
|
|
|
precond = ST_END_GROUP;
|
|
|
|
break;
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2015-10-22 02:29:40 +00:00
|
|
|
for (;;)
|
2015-05-18 22:41:39 +00:00
|
|
|
{
|
2015-10-22 02:29:40 +00:00
|
|
|
bool time_to_exit = false;
|
2016-10-23 00:41:50 +00:00
|
|
|
const char *short_description = setting->short_description;
|
2016-10-23 01:13:49 +00:00
|
|
|
const char *name = setting->name;
|
2016-10-31 14:01:40 +00:00
|
|
|
enum setting_type type = setting_get_type(setting);
|
2016-10-23 00:41:50 +00:00
|
|
|
rarch_setting_t **list = &setting;
|
2015-09-28 00:28:34 +00:00
|
|
|
|
2015-10-18 23:17:44 +00:00
|
|
|
switch (parse_type)
|
2015-06-15 01:57:01 +00:00
|
|
|
{
|
2015-10-18 23:17:44 +00:00
|
|
|
case PARSE_NONE:
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case ST_GROUP:
|
2015-12-04 00:01:52 +00:00
|
|
|
case ST_END_GROUP:
|
2015-10-18 23:17:44 +00:00
|
|
|
case ST_SUB_GROUP:
|
|
|
|
case ST_END_SUB_GROUP:
|
2015-10-22 02:29:40 +00:00
|
|
|
goto loop;
|
2015-10-18 23:17:44 +00:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case PARSE_GROUP:
|
2015-10-18 23:43:03 +00:00
|
|
|
case PARSE_ONLY_GROUP:
|
2015-10-18 23:17:44 +00:00
|
|
|
if (type == ST_GROUP)
|
|
|
|
break;
|
2015-10-22 02:29:40 +00:00
|
|
|
goto loop;
|
2015-10-18 23:17:44 +00:00
|
|
|
case PARSE_SUB_GROUP:
|
2015-06-15 01:57:01 +00:00
|
|
|
break;
|
2015-10-22 02:29:40 +00:00
|
|
|
case PARSE_ACTION:
|
|
|
|
if (type == ST_ACTION)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2015-11-01 09:59:01 +00:00
|
|
|
case PARSE_ONLY_INT:
|
|
|
|
if (type == ST_INT)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2015-10-22 06:38:29 +00:00
|
|
|
case PARSE_ONLY_UINT:
|
|
|
|
if (type == ST_UINT)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2015-10-25 09:41:53 +00:00
|
|
|
case PARSE_ONLY_BIND:
|
|
|
|
if (type == ST_BIND)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2015-10-24 08:31:11 +00:00
|
|
|
case PARSE_ONLY_BOOL:
|
|
|
|
if (type == ST_BOOL)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_ONLY_FLOAT:
|
|
|
|
if (type == ST_FLOAT)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_HEX:
|
|
|
|
if (type == ST_HEX)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-16 20:14:31 +00:00
|
|
|
case PARSE_ONLY_STRING:
|
|
|
|
if (type == ST_STRING)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-17 02:02:26 +00:00
|
|
|
case PARSE_ONLY_PATH:
|
|
|
|
if (type == ST_PATH)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_DIR:
|
|
|
|
if (type == ST_DIR)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-16 19:40:13 +00:00
|
|
|
case PARSE_ONLY_STRING_OPTIONS:
|
|
|
|
if (type == ST_STRING_OPTIONS)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2015-06-15 01:57:01 +00:00
|
|
|
}
|
|
|
|
|
2015-09-28 00:16:07 +00:00
|
|
|
if (flags & SD_FLAG_ADVANCED &&
|
2015-06-15 01:57:01 +00:00
|
|
|
!settings->menu.show_advanced_settings)
|
2015-10-22 02:29:40 +00:00
|
|
|
goto loop;
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-10-22 02:46:05 +00:00
|
|
|
|
2016-07-12 23:13:20 +00:00
|
|
|
menu_entries_append(info->list, short_description,
|
2015-09-28 00:28:34 +00:00
|
|
|
name, menu_setting_set_flags(setting), 0, 0);
|
2015-06-21 20:35:19 +00:00
|
|
|
count++;
|
2015-11-02 02:20:55 +00:00
|
|
|
|
2015-10-22 02:29:40 +00:00
|
|
|
loop:
|
|
|
|
switch (parse_type)
|
|
|
|
{
|
|
|
|
case PARSE_NONE:
|
|
|
|
case PARSE_GROUP:
|
|
|
|
case PARSE_ONLY_GROUP:
|
|
|
|
case PARSE_SUB_GROUP:
|
2016-10-31 14:01:40 +00:00
|
|
|
if (setting_get_type(setting) == precond)
|
2015-10-22 02:29:40 +00:00
|
|
|
time_to_exit = true;
|
|
|
|
break;
|
2015-10-25 09:41:53 +00:00
|
|
|
case PARSE_ONLY_BIND:
|
2015-10-24 08:31:11 +00:00
|
|
|
case PARSE_ONLY_FLOAT:
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_HEX:
|
2015-10-24 08:31:11 +00:00
|
|
|
case PARSE_ONLY_BOOL:
|
2015-11-01 09:59:01 +00:00
|
|
|
case PARSE_ONLY_INT:
|
2015-10-22 06:38:29 +00:00
|
|
|
case PARSE_ONLY_UINT:
|
2016-06-16 20:14:31 +00:00
|
|
|
case PARSE_ONLY_STRING:
|
2016-06-17 02:02:26 +00:00
|
|
|
case PARSE_ONLY_PATH:
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_DIR:
|
2016-06-16 19:40:13 +00:00
|
|
|
case PARSE_ONLY_STRING_OPTIONS:
|
2015-10-22 02:29:40 +00:00
|
|
|
case PARSE_ACTION:
|
|
|
|
time_to_exit = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (time_to_exit)
|
|
|
|
break;
|
2016-10-23 00:41:50 +00:00
|
|
|
(*list = *list + 1);
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2015-12-04 00:01:52 +00:00
|
|
|
if (count == 0 && add_empty_entry)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
2016-06-27 22:51:47 +00:00
|
|
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
2015-06-21 20:35:19 +00:00
|
|
|
0, 0, 0);
|
|
|
|
|
2016-03-04 06:23:07 +00:00
|
|
|
return 0;
|
2015-05-18 22:41:39 +00:00
|
|
|
}
|
2015-05-13 11:31:34 +00:00
|
|
|
|
2016-06-16 19:01:55 +00:00
|
|
|
static int menu_displaylist_parse_settings_internal_enum(void *data,
|
|
|
|
menu_displaylist_info_t *info,
|
|
|
|
enum menu_displaylist_parse_type parse_type,
|
|
|
|
bool add_empty_entry,
|
|
|
|
rarch_setting_t *setting,
|
2016-06-19 22:31:13 +00:00
|
|
|
enum msg_hash_enums enum_idx
|
2016-06-16 19:01:55 +00:00
|
|
|
)
|
|
|
|
{
|
|
|
|
enum setting_type precond;
|
|
|
|
size_t count = 0;
|
2016-10-23 01:13:49 +00:00
|
|
|
uint64_t flags = 0;
|
2016-06-16 19:01:55 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
2016-10-23 01:13:49 +00:00
|
|
|
flags = setting->flags;
|
|
|
|
|
2016-06-16 19:01:55 +00:00
|
|
|
switch (parse_type)
|
|
|
|
{
|
|
|
|
case PARSE_GROUP:
|
|
|
|
case PARSE_SUB_GROUP:
|
|
|
|
precond = ST_NONE;
|
|
|
|
break;
|
|
|
|
case PARSE_ACTION:
|
|
|
|
precond = ST_ACTION;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_INT:
|
|
|
|
precond = ST_INT;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_UINT:
|
|
|
|
precond = ST_UINT;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_BIND:
|
|
|
|
precond = ST_BIND;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_BOOL:
|
|
|
|
precond = ST_BOOL;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_FLOAT:
|
|
|
|
precond = ST_FLOAT;
|
|
|
|
break;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_HEX:
|
|
|
|
precond = ST_HEX;
|
|
|
|
break;
|
2016-06-16 20:14:31 +00:00
|
|
|
case PARSE_ONLY_STRING:
|
|
|
|
precond = ST_STRING;
|
|
|
|
break;
|
2016-06-17 02:02:26 +00:00
|
|
|
case PARSE_ONLY_PATH:
|
|
|
|
precond = ST_PATH;
|
|
|
|
break;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_DIR:
|
|
|
|
precond = ST_DIR;
|
|
|
|
break;
|
2016-06-16 19:40:13 +00:00
|
|
|
case PARSE_ONLY_STRING_OPTIONS:
|
|
|
|
precond = ST_STRING_OPTIONS;
|
|
|
|
break;
|
2016-06-16 19:01:55 +00:00
|
|
|
case PARSE_ONLY_GROUP:
|
|
|
|
default:
|
|
|
|
precond = ST_END_GROUP;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (;;)
|
|
|
|
{
|
|
|
|
bool time_to_exit = false;
|
2016-10-23 00:41:50 +00:00
|
|
|
const char *short_description = setting->short_description;
|
2016-10-23 01:13:49 +00:00
|
|
|
const char *name = setting->name;
|
2016-10-31 14:01:40 +00:00
|
|
|
enum setting_type type = setting_get_type(setting);
|
2016-10-23 00:41:50 +00:00
|
|
|
rarch_setting_t **list = &setting;
|
2016-06-16 19:01:55 +00:00
|
|
|
|
|
|
|
switch (parse_type)
|
|
|
|
{
|
|
|
|
case PARSE_NONE:
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case ST_GROUP:
|
|
|
|
case ST_END_GROUP:
|
|
|
|
case ST_SUB_GROUP:
|
|
|
|
case ST_END_SUB_GROUP:
|
|
|
|
goto loop;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case PARSE_GROUP:
|
|
|
|
case PARSE_ONLY_GROUP:
|
|
|
|
if (type == ST_GROUP)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_SUB_GROUP:
|
|
|
|
break;
|
|
|
|
case PARSE_ACTION:
|
|
|
|
if (type == ST_ACTION)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_ONLY_INT:
|
|
|
|
if (type == ST_INT)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_ONLY_UINT:
|
|
|
|
if (type == ST_UINT)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_ONLY_BIND:
|
|
|
|
if (type == ST_BIND)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_ONLY_BOOL:
|
|
|
|
if (type == ST_BOOL)
|
|
|
|
break;
|
|
|
|
goto loop;
|
|
|
|
case PARSE_ONLY_FLOAT:
|
|
|
|
if (type == ST_FLOAT)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_HEX:
|
|
|
|
if (type == ST_HEX)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-16 20:14:31 +00:00
|
|
|
case PARSE_ONLY_STRING:
|
|
|
|
if (type == ST_STRING)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-17 02:02:26 +00:00
|
|
|
case PARSE_ONLY_PATH:
|
|
|
|
if (type == ST_PATH)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_DIR:
|
|
|
|
if (type == ST_DIR)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-16 19:40:13 +00:00
|
|
|
case PARSE_ONLY_STRING_OPTIONS:
|
|
|
|
if (type == ST_STRING_OPTIONS)
|
|
|
|
break;
|
|
|
|
goto loop;
|
2016-06-16 19:01:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (flags & SD_FLAG_ADVANCED &&
|
|
|
|
!settings->menu.show_advanced_settings)
|
|
|
|
goto loop;
|
|
|
|
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, short_description,
|
2016-06-16 19:01:55 +00:00
|
|
|
name, enum_idx, menu_setting_set_flags(setting), 0, 0);
|
|
|
|
count++;
|
|
|
|
|
|
|
|
loop:
|
|
|
|
switch (parse_type)
|
|
|
|
{
|
|
|
|
case PARSE_NONE:
|
|
|
|
case PARSE_GROUP:
|
|
|
|
case PARSE_ONLY_GROUP:
|
|
|
|
case PARSE_SUB_GROUP:
|
2016-10-31 14:01:40 +00:00
|
|
|
if (setting_get_type(setting) == precond)
|
2016-06-16 19:01:55 +00:00
|
|
|
time_to_exit = true;
|
|
|
|
break;
|
|
|
|
case PARSE_ONLY_BIND:
|
|
|
|
case PARSE_ONLY_FLOAT:
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_HEX:
|
2016-06-16 19:01:55 +00:00
|
|
|
case PARSE_ONLY_BOOL:
|
|
|
|
case PARSE_ONLY_INT:
|
|
|
|
case PARSE_ONLY_UINT:
|
2016-06-17 02:02:26 +00:00
|
|
|
case PARSE_ONLY_PATH:
|
2016-07-02 18:40:27 +00:00
|
|
|
case PARSE_ONLY_DIR:
|
2016-06-16 20:14:31 +00:00
|
|
|
case PARSE_ONLY_STRING:
|
2016-06-16 19:40:13 +00:00
|
|
|
case PARSE_ONLY_STRING_OPTIONS:
|
2016-06-16 19:01:55 +00:00
|
|
|
case PARSE_ACTION:
|
|
|
|
time_to_exit = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (time_to_exit)
|
|
|
|
break;
|
2016-10-23 00:41:50 +00:00
|
|
|
(*list = *list + 1);
|
2016-06-16 19:01:55 +00:00
|
|
|
}
|
|
|
|
|
2016-09-13 20:37:27 +00:00
|
|
|
if (count == 0)
|
|
|
|
{
|
|
|
|
if (add_empty_entry)
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
|
|
|
0, 0, 0);
|
|
|
|
return -1;
|
|
|
|
}
|
2016-06-16 19:01:55 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-06-14 23:41:31 +00:00
|
|
|
static int menu_displaylist_parse_settings(void *data,
|
|
|
|
menu_displaylist_info_t *info,
|
|
|
|
const char *info_label,
|
|
|
|
enum menu_displaylist_parse_type parse_type,
|
|
|
|
bool add_empty_entry)
|
|
|
|
{
|
|
|
|
return menu_displaylist_parse_settings_internal(data,
|
|
|
|
info,
|
|
|
|
parse_type,
|
|
|
|
add_empty_entry,
|
|
|
|
menu_setting_find(info_label)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int menu_displaylist_parse_settings_enum(void *data,
|
|
|
|
menu_displaylist_info_t *info,
|
2016-06-19 22:31:13 +00:00
|
|
|
enum msg_hash_enums label,
|
2016-06-14 23:41:31 +00:00
|
|
|
enum menu_displaylist_parse_type parse_type,
|
|
|
|
bool add_empty_entry)
|
|
|
|
{
|
2016-06-16 19:01:55 +00:00
|
|
|
return menu_displaylist_parse_settings_internal_enum(data,
|
2016-06-14 23:41:31 +00:00
|
|
|
info,
|
|
|
|
parse_type,
|
|
|
|
add_empty_entry,
|
2016-06-16 19:01:55 +00:00
|
|
|
menu_setting_find_enum(label),
|
|
|
|
label
|
2016-06-14 23:41:31 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_horizontal_list(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-05-18 22:41:39 +00:00
|
|
|
{
|
2016-02-10 23:59:55 +00:00
|
|
|
menu_ctx_list_t list_info;
|
2016-02-11 00:12:19 +00:00
|
|
|
menu_ctx_list_t list_horiz_info;
|
2016-10-08 17:34:27 +00:00
|
|
|
char lpl_basename[PATH_MAX_LENGTH];
|
|
|
|
char path_playlist[PATH_MAX_LENGTH];
|
2015-09-08 17:44:50 +00:00
|
|
|
bool is_historylist = false;
|
2016-05-27 02:18:27 +00:00
|
|
|
playlist_t *playlist = NULL;
|
2016-02-10 20:15:23 +00:00
|
|
|
menu_handle_t *menu = NULL;
|
2016-02-10 23:59:55 +00:00
|
|
|
struct item_file *item = NULL;
|
2016-04-27 12:20:09 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-02-10 23:59:55 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
lpl_basename[0] = path_playlist[0] = '\0';
|
|
|
|
|
2016-02-10 23:59:55 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_LIST_GET_SELECTION, &list_info);
|
2016-02-11 00:07:30 +00:00
|
|
|
|
2016-02-11 00:12:19 +00:00
|
|
|
list_info.type = MENU_LIST_TABS;
|
2016-02-11 00:07:30 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_LIST_GET_SIZE, &list_info);
|
2016-02-11 00:12:19 +00:00
|
|
|
|
|
|
|
list_horiz_info.type = MENU_LIST_HORIZONTAL;
|
|
|
|
list_horiz_info.idx = list_info.selection - (list_info.size +1);
|
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_LIST_GET_ENTRY, &list_horiz_info);
|
2016-09-25 04:13:33 +00:00
|
|
|
|
2016-02-11 00:12:19 +00:00
|
|
|
item = (struct item_file*)list_horiz_info.entry;
|
2015-05-18 22:41:39 +00:00
|
|
|
|
2016-02-10 20:15:23 +00:00
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
|
|
|
return -1;
|
|
|
|
|
2015-06-08 15:02:14 +00:00
|
|
|
if (!item)
|
2015-06-05 21:45:36 +00:00
|
|
|
return -1;
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2016-06-30 03:16:28 +00:00
|
|
|
fill_pathname_base_noext(lpl_basename, item->path, sizeof(lpl_basename));
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-12-11 12:01:39 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_FREE, NULL);
|
2015-06-08 15:16:36 +00:00
|
|
|
|
2016-04-28 17:26:02 +00:00
|
|
|
fill_pathname_join(
|
|
|
|
path_playlist,
|
|
|
|
settings->directory.playlist,
|
|
|
|
item->path,
|
2015-06-08 15:16:36 +00:00
|
|
|
sizeof(path_playlist));
|
2015-12-11 12:06:24 +00:00
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_INIT, (void*)path_playlist);
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
strlcpy(menu->db_playlist_file,
|
|
|
|
path_playlist, sizeof(menu->db_playlist_file));
|
2015-06-19 19:50:13 +00:00
|
|
|
strlcpy(path_playlist,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_COLLECTION),
|
2015-06-19 19:50:13 +00:00
|
|
|
sizeof(path_playlist));
|
2015-12-11 12:06:24 +00:00
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_GET, &playlist);
|
2015-06-08 15:16:36 +00:00
|
|
|
|
2016-08-28 16:47:34 +00:00
|
|
|
playlist_qsort(playlist);
|
2015-06-11 13:15:36 +00:00
|
|
|
|
2016-01-20 03:54:17 +00:00
|
|
|
if (string_is_equal(lpl_basename, "content_history"))
|
2015-09-08 17:44:50 +00:00
|
|
|
is_historylist = true;
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
menu_displaylist_parse_playlist(info,
|
|
|
|
playlist, path_playlist, is_historylist);
|
2015-06-08 15:16:36 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_load_content_settings(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-06-22 20:10:14 +00:00
|
|
|
{
|
2016-02-10 20:15:23 +00:00
|
|
|
menu_handle_t *menu = NULL;
|
2016-08-18 12:06:54 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
2015-11-19 08:18:28 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2015-11-21 07:39:46 +00:00
|
|
|
#endif
|
2016-02-10 20:15:23 +00:00
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
2015-06-22 20:10:14 +00:00
|
|
|
return -1;
|
|
|
|
|
2016-01-19 22:44:32 +00:00
|
|
|
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
2015-06-22 20:10:14 +00:00
|
|
|
{
|
2016-09-06 06:38:26 +00:00
|
|
|
rarch_system_info_t *system = NULL;
|
|
|
|
|
|
|
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
|
2015-06-25 10:50:45 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RESUME_CONTENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RESUME_CONTENT),
|
2016-06-14 23:15:37 +00:00
|
|
|
MENU_ENUM_LABEL_RESUME_CONTENT,
|
2015-06-22 20:10:14 +00:00
|
|
|
MENU_SETTING_ACTION_RUN, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RESTART_CONTENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RESTART_CONTENT),
|
2016-06-14 23:15:37 +00:00
|
|
|
MENU_ENUM_LABEL_RESTART_CONTENT,
|
2015-06-22 20:10:14 +00:00
|
|
|
MENU_SETTING_ACTION_RUN, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CLOSE_CONTENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CLOSE_CONTENT),
|
2016-06-14 23:15:37 +00:00
|
|
|
MENU_ENUM_LABEL_CLOSE_CONTENT,
|
2015-06-25 04:14:22 +00:00
|
|
|
MENU_SETTING_ACTION_CLOSE, 0, 0);
|
2015-06-22 21:15:45 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TAKE_SCREENSHOT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_TAKE_SCREENSHOT),
|
2016-06-14 23:15:37 +00:00
|
|
|
MENU_ENUM_LABEL_TAKE_SCREENSHOT,
|
2015-06-22 20:10:14 +00:00
|
|
|
MENU_SETTING_ACTION_SCREENSHOT, 0, 0);
|
|
|
|
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_STATE_SLOT, PARSE_ONLY_INT, true);
|
2015-11-01 09:59:01 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVE_STATE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SAVE_STATE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_SAVE_STATE,
|
2015-06-22 20:10:14 +00:00
|
|
|
MENU_SETTING_ACTION_SAVESTATE, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_STATE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_LOAD_STATE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_LOAD_STATE,
|
2015-06-22 20:10:14 +00:00
|
|
|
MENU_SETTING_ACTION_LOADSTATE, 0, 0);
|
2015-06-24 03:05:57 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UNDO_LOAD_STATE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UNDO_LOAD_STATE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_UNDO_LOAD_STATE,
|
2016-06-03 04:33:52 +00:00
|
|
|
MENU_SETTING_ACTION_LOADSTATE, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UNDO_SAVE_STATE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UNDO_SAVE_STATE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_UNDO_SAVE_STATE,
|
2016-06-04 19:34:06 +00:00
|
|
|
MENU_SETTING_ACTION_LOADSTATE, 0, 0);
|
|
|
|
|
2016-08-18 12:06:54 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_OPTIONS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_OPTIONS),
|
|
|
|
MENU_ENUM_LABEL_CORE_OPTIONS,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
if (core_has_set_input_descriptor())
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-08-18 12:06:54 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INPUT_REMAPPING_OPTIONS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_INPUT_REMAPPING_OPTIONS),
|
|
|
|
MENU_ENUM_LABEL_CORE_INPUT_REMAPPING_OPTIONS,
|
2015-06-24 03:05:57 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-01-27 00:51:09 +00:00
|
|
|
|
|
|
|
|
2016-08-18 12:06:54 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_CHEAT_OPTIONS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_CHEAT_OPTIONS),
|
|
|
|
MENU_ENUM_LABEL_CORE_CHEAT_OPTIONS,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
if ( (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
|
|
|
&& system && system->disk_control_cb.get_num_images)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-08-18 12:06:54 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISK_OPTIONS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DISK_OPTIONS),
|
|
|
|
MENU_ENUM_LABEL_DISK_OPTIONS,
|
|
|
|
MENU_SETTING_ACTION_CORE_DISK_OPTIONS, 0, 0);
|
2015-06-24 05:38:45 +00:00
|
|
|
#ifdef HAVE_SHADER_MANAGER
|
2016-08-18 12:06:54 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SHADER_OPTIONS),
|
|
|
|
MENU_ENUM_LABEL_SHADER_OPTIONS,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2015-06-24 05:38:45 +00:00
|
|
|
#endif
|
2016-10-27 09:24:55 +00:00
|
|
|
|
2016-10-17 04:24:57 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_CORE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG_OVERRIDE_CORE),
|
|
|
|
MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG_OVERRIDE_CORE,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-27 09:24:55 +00:00
|
|
|
|
2016-10-17 04:24:57 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_GAME),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG_OVERRIDE_GAME),
|
|
|
|
MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG_OVERRIDE_GAME,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-27 09:24:55 +00:00
|
|
|
|
2015-11-08 15:51:14 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
2015-11-19 08:18:28 +00:00
|
|
|
if(settings->cheevos.enable)
|
2016-11-05 21:55:57 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_LIST),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_ACHIEVEMENT_LIST),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_ACHIEVEMENT_LIST,
|
2015-11-19 08:18:28 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-11-05 21:55:57 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_LIST_HARDCORE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_ACHIEVEMENT_LIST_HARDCORE),
|
|
|
|
MENU_ENUM_LABEL_ACHIEVEMENT_LIST_HARDCORE,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
}
|
2015-11-08 03:10:51 +00:00
|
|
|
#endif
|
2015-06-22 20:10:14 +00:00
|
|
|
}
|
|
|
|
else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
2016-06-17 18:43:42 +00:00
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
2016-06-16 18:29:44 +00:00
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
2015-06-22 20:10:14 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_horizontal_content_actions(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-07-23 17:44:59 +00:00
|
|
|
{
|
2015-08-19 22:49:44 +00:00
|
|
|
unsigned idx = rpl_entry_selection_ptr;
|
2016-02-10 20:15:23 +00:00
|
|
|
menu_handle_t *menu = NULL;
|
2015-07-23 17:44:59 +00:00
|
|
|
const char *label = NULL;
|
|
|
|
const char *core_path = NULL;
|
|
|
|
const char *core_name = NULL;
|
|
|
|
const char *db_name = NULL;
|
2016-05-27 02:18:27 +00:00
|
|
|
playlist_t *playlist = NULL;
|
2016-04-27 12:20:09 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-10-03 13:39:48 +00:00
|
|
|
const char *fullpath = path_get(RARCH_PATH_CONTENT);
|
2015-07-23 17:44:59 +00:00
|
|
|
|
2016-02-10 20:15:23 +00:00
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
2015-07-23 17:44:59 +00:00
|
|
|
return -1;
|
|
|
|
|
2016-01-19 22:44:32 +00:00
|
|
|
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL)
|
2016-01-20 03:54:17 +00:00
|
|
|
&& string_is_equal(menu->deferred_path, fullpath))
|
2015-07-23 17:44:59 +00:00
|
|
|
menu_displaylist_parse_load_content_settings(info);
|
|
|
|
else
|
2016-08-28 22:54:51 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RUN),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_RUN),
|
2016-06-20 13:50:37 +00:00
|
|
|
MENU_ENUM_LABEL_RUN, FILE_TYPE_PLAYLIST_ENTRY, 0, idx);
|
2016-08-28 22:54:51 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DELETE_ENTRY),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DELETE_ENTRY),
|
|
|
|
MENU_ENUM_LABEL_DELETE_ENTRY,
|
|
|
|
MENU_SETTING_ACTION_DELETE_ENTRY, 0, 0);
|
|
|
|
}
|
2015-07-23 17:44:59 +00:00
|
|
|
|
2015-12-11 11:57:48 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_GET, &playlist);
|
|
|
|
|
2016-05-16 07:07:44 +00:00
|
|
|
playlist_get_index(playlist, idx,
|
2015-07-23 17:44:59 +00:00
|
|
|
NULL, &label, &core_path, &core_name, NULL, &db_name);
|
|
|
|
|
2015-12-26 06:37:44 +00:00
|
|
|
if (!string_is_empty(db_name))
|
2015-07-23 17:44:59 +00:00
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char db_path[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
db_path[0] = '\0';
|
2015-07-23 17:44:59 +00:00
|
|
|
|
2016-06-28 11:05:46 +00:00
|
|
|
fill_pathname_join_noext(db_path, settings->path.content_database,
|
2015-07-23 17:44:59 +00:00
|
|
|
db_name, sizeof(db_path));
|
2016-06-28 09:22:44 +00:00
|
|
|
strlcat(db_path, file_path_str(FILE_PATH_RDB_EXTENSION),
|
|
|
|
sizeof(db_path));
|
2015-07-23 17:44:59 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, label,
|
2016-07-08 14:42:40 +00:00
|
|
|
db_path,
|
|
|
|
MENU_ENUM_LABEL_INFORMATION, FILE_TYPE_RDB_ENTRY, 0, idx);
|
2015-07-23 17:44:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_information_list(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-06-24 02:56:44 +00:00
|
|
|
{
|
2016-11-16 06:03:59 +00:00
|
|
|
core_info_t *core_info = NULL;
|
2015-06-24 02:56:44 +00:00
|
|
|
|
2016-11-16 06:03:59 +00:00
|
|
|
core_info_get_current_core(&core_info);
|
|
|
|
|
|
|
|
if (core_info && core_info->config_data)
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_INFORMATION),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_INFORMATION),
|
|
|
|
MENU_ENUM_LABEL_CORE_INFORMATION,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2015-06-24 02:56:44 +00:00
|
|
|
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-03-03 02:06:54 +00:00
|
|
|
#ifndef HAVE_SOCKET_LEGACY
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETWORK_INFORMATION),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_INFORMATION),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_INFORMATION,
|
2016-03-03 02:06:54 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_INFORMATION),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SYSTEM_INFORMATION),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_INFORMATION,
|
2015-06-24 02:56:44 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DATABASE_MANAGER),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DATABASE_MANAGER_LIST),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_DATABASE_MANAGER_LIST,
|
2015-06-24 02:56:44 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CURSOR_MANAGER),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CURSOR_MANAGER_LIST),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_CURSOR_MANAGER_LIST,
|
2015-06-24 02:56:44 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
2015-11-30 20:56:35 +00:00
|
|
|
if (runloop_ctl(RUNLOOP_CTL_IS_PERFCNT_ENABLE, NULL))
|
2015-06-24 02:56:44 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FRONTEND_COUNTERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_FRONTEND_COUNTERS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_FRONTEND_COUNTERS,
|
2015-06-24 02:56:44 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_COUNTERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_COUNTERS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_COUNTERS,
|
2015-06-24 02:56:44 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-11-04 14:03:09 +00:00
|
|
|
static int menu_displaylist_parse_configurations_list(
|
|
|
|
menu_displaylist_info_t *info)
|
|
|
|
{
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-11-21 06:26:58 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONFIGURATIONS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONFIGURATIONS),
|
|
|
|
MENU_ENUM_LABEL_CONFIGURATIONS,
|
2016-11-04 14:03:09 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG),
|
|
|
|
MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVE_NEW_CONFIG),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SAVE_NEW_CONFIG),
|
|
|
|
MENU_ENUM_LABEL_SAVE_NEW_CONFIG,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_add_content_list(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-07-03 23:51:41 +00:00
|
|
|
{
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_DIRECTORY),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_SCAN_DIRECTORY,
|
2015-07-03 23:51:41 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_FILE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_SCAN_FILE,
|
2015-07-03 23:51:41 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
2016-08-02 13:28:15 +00:00
|
|
|
#if !defined(HAVE_NETWORKING) && !defined(HAVE_LIBRETRODB)
|
2016-08-02 13:46:03 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-08-02 13:28:15 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ENTRIES_TO_DISPLAY),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ENTRIES_TO_DISPLAY),
|
|
|
|
MENU_ENUM_LABEL_NO_ENTRIES_TO_DISPLAY,
|
|
|
|
FILE_TYPE_NONE, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
2015-07-03 23:51:41 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_scan_directory_list(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-10-24 17:37:59 +00:00
|
|
|
{
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_DIRECTORY),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_SCAN_DIRECTORY,
|
2015-10-24 17:37:59 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-29 13:04:20 +00:00
|
|
|
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_FILE),
|
|
|
|
MENU_ENUM_LABEL_SCAN_FILE,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2015-10-24 17:37:59 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_options(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2015-06-24 11:36:58 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2015-12-24 19:13:50 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_LAKKA
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_LAKKA),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_LAKKA),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_LAKKA,
|
2015-12-24 19:13:50 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_THUMBNAILS_UPDATER_LIST),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_THUMBNAILS_UPDATER_LIST,
|
2016-05-06 08:08:53 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#else
|
2016-10-15 10:56:07 +00:00
|
|
|
#if !defined(VITA)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_UPDATER_LIST),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_UPDATER_LIST),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_UPDATER_LIST,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-15 10:56:07 +00:00
|
|
|
#endif
|
2015-06-24 13:12:30 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_THUMBNAILS_UPDATER_LIST),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_THUMBNAILS_UPDATER_LIST),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_THUMBNAILS_UPDATER_LIST,
|
2016-04-23 20:31:39 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-10-29 12:30:02 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-10-29 09:29:26 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE_CONTENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DOWNLOAD_CORE_CONTENT_DIRS),
|
|
|
|
MENU_ENUM_LABEL_DOWNLOAD_CORE_CONTENT_DIRS,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-29 12:30:02 +00:00
|
|
|
#endif
|
2016-10-29 09:29:26 +00:00
|
|
|
|
2016-10-15 10:56:07 +00:00
|
|
|
#if !defined(VITA)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_CORE_INFO_FILES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_CORE_INFO_FILES),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_CORE_INFO_FILES,
|
2015-07-04 04:18:02 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-15 10:56:07 +00:00
|
|
|
#endif
|
2015-07-04 04:18:02 +00:00
|
|
|
|
2016-08-27 06:38:44 +00:00
|
|
|
#ifdef HAVE_UPDATE_ASSETS
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_ASSETS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_ASSETS),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_ASSETS,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-08-27 06:38:44 +00:00
|
|
|
#endif
|
2015-06-24 13:12:30 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_AUTOCONFIG_PROFILES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_AUTOCONFIG_PROFILES),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_AUTOCONFIG_PROFILES,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_CHEATS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_CHEATS),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_CHEATS,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2015-06-25 06:24:03 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-10-15 10:56:07 +00:00
|
|
|
#if !defined(VITA)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_DATABASES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_DATABASES),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_DATABASES,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-10-15 10:56:07 +00:00
|
|
|
#endif
|
2015-06-25 06:24:03 +00:00
|
|
|
#endif
|
2015-06-24 13:12:30 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_OVERLAYS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_OVERLAYS),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_OVERLAYS,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
#ifdef HAVE_CG
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_CG_SHADERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_CG_SHADERS),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_CG_SHADERS,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_GLSL
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_GLSL_SHADERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_GLSL_SHADERS),
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATE_GLSL_SHADERS,
|
2015-06-24 13:12:30 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
2015-12-24 19:13:50 +00:00
|
|
|
|
2016-10-08 20:16:01 +00:00
|
|
|
#ifdef HAVE_VULKAN
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UPDATE_SLANG_SHADERS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_UPDATE_SLANG_SHADERS),
|
|
|
|
MENU_ENUM_LABEL_UPDATE_SLANG_SHADERS,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
2016-05-06 08:08:53 +00:00
|
|
|
#endif
|
|
|
|
|
2015-06-24 04:09:03 +00:00
|
|
|
#else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
2016-06-17 18:43:42 +00:00
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
#endif
|
2015-05-13 11:45:53 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_options_cheats(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
|
|
|
unsigned i;
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-12-01 02:07:16 +00:00
|
|
|
if (!cheat_manager_alloc_if_empty())
|
|
|
|
return -1;
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2016-10-27 09:24:55 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT_APPLY_CHANGES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CHEAT_APPLY_CHANGES),
|
|
|
|
MENU_ENUM_LABEL_CHEAT_APPLY_CHANGES,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT_FILE_LOAD),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CHEAT_FILE_LOAD),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_CHEAT_FILE_LOAD,
|
2015-06-19 06:43:27 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT_FILE_SAVE_AS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CHEAT_FILE_SAVE_AS),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_CHEAT_FILE_SAVE_AS,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT_NUM_PASSES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CHEAT_NUM_PASSES),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_CHEAT_NUM_PASSES,
|
2015-06-10 20:43:06 +00:00
|
|
|
0, 0, 0);
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-12-01 01:55:07 +00:00
|
|
|
for (i = 0; i < cheat_manager_get_size(); i++)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-10-26 04:23:05 +00:00
|
|
|
char cheat_label[64];
|
|
|
|
|
|
|
|
cheat_label[0] = '\0';
|
2015-06-12 14:36:15 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
snprintf(cheat_label, sizeof(cheat_label),
|
2016-06-19 22:31:13 +00:00
|
|
|
"%s #%u: ", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEAT), i);
|
2015-12-01 02:07:16 +00:00
|
|
|
if (cheat_manager_get_desc(i))
|
|
|
|
strlcat(cheat_label, cheat_manager_get_desc(i), sizeof(cheat_label));
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
cheat_label, "", MSG_UNKNOWN,
|
2016-06-16 18:43:02 +00:00
|
|
|
MENU_SETTINGS_CHEAT_BEGIN + i, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-05-13 11:45:53 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static int menu_displaylist_parse_options_remappings(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
|
|
|
unsigned p, retro_id;
|
2016-09-06 06:38:26 +00:00
|
|
|
rarch_system_info_t *system = NULL;
|
2016-02-10 20:15:23 +00:00
|
|
|
menu_handle_t *menu = NULL;
|
2016-04-27 12:20:09 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-02-10 20:15:23 +00:00
|
|
|
|
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
|
|
|
return -1;
|
|
|
|
|
2015-10-23 01:00:49 +00:00
|
|
|
for (p = 0; p < settings->input.max_users; p++)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char key_type[PATH_MAX_LENGTH];
|
|
|
|
char key_analog[PATH_MAX_LENGTH];
|
2016-06-17 00:37:22 +00:00
|
|
|
unsigned val = p + 1;
|
2016-10-08 17:34:27 +00:00
|
|
|
|
|
|
|
key_type[0] = key_analog[0] = '\0';
|
|
|
|
|
2015-10-23 01:00:49 +00:00
|
|
|
snprintf(key_type, sizeof(key_type),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE), val);
|
2015-10-23 01:02:31 +00:00
|
|
|
snprintf(key_analog, sizeof(key_analog),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE), val);
|
2015-10-23 01:00:49 +00:00
|
|
|
|
|
|
|
menu_displaylist_parse_settings(menu, info,
|
2015-10-24 08:52:12 +00:00
|
|
|
key_type, PARSE_ONLY_UINT, true);
|
2015-10-23 01:02:31 +00:00
|
|
|
menu_displaylist_parse_settings(menu, info,
|
2015-10-24 08:52:12 +00:00
|
|
|
key_analog, PARSE_ONLY_UINT, true);
|
2015-10-23 01:00:49 +00:00
|
|
|
}
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REMAP_FILE_LOAD),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_REMAP_FILE_LOAD),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_REMAP_FILE_LOAD,
|
2015-06-19 06:00:56 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REMAP_FILE_SAVE_CORE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_REMAP_FILE_SAVE_CORE),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_REMAP_FILE_SAVE_CORE,
|
2015-06-19 20:40:53 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REMAP_FILE_SAVE_GAME),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_REMAP_FILE_SAVE_GAME),
|
2016-06-16 11:09:35 +00:00
|
|
|
MENU_ENUM_LABEL_REMAP_FILE_SAVE_GAME,
|
2015-06-19 20:40:53 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2016-09-06 06:38:26 +00:00
|
|
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
|
2016-07-10 13:20:21 +00:00
|
|
|
|
2016-09-06 06:38:26 +00:00
|
|
|
if (system)
|
2015-10-22 06:40:08 +00:00
|
|
|
{
|
2016-09-06 06:38:26 +00:00
|
|
|
for (p = 0; p < settings->input.max_users; p++)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-09-06 06:38:26 +00:00
|
|
|
for (retro_id = 0; retro_id < RARCH_FIRST_CUSTOM_BIND + 4; retro_id++)
|
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char desc_label[64];
|
2016-09-06 06:38:26 +00:00
|
|
|
unsigned user = p + 1;
|
|
|
|
unsigned desc_offset = retro_id;
|
|
|
|
const char *description = NULL;
|
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
desc_label[0] = '\0';
|
|
|
|
|
2016-09-06 06:38:26 +00:00
|
|
|
if (desc_offset >= RARCH_FIRST_CUSTOM_BIND)
|
2016-09-25 04:13:33 +00:00
|
|
|
desc_offset = RARCH_FIRST_CUSTOM_BIND
|
2016-09-06 06:38:26 +00:00
|
|
|
+ (desc_offset - RARCH_FIRST_CUSTOM_BIND) * 2;
|
2016-09-25 04:13:33 +00:00
|
|
|
|
2016-09-06 06:38:26 +00:00
|
|
|
description = system->input_desc_btn[p][desc_offset];
|
|
|
|
|
|
|
|
if (!description)
|
|
|
|
continue;
|
2016-09-06 05:08:25 +00:00
|
|
|
|
2016-09-06 06:38:26 +00:00
|
|
|
snprintf(desc_label, sizeof(desc_label),
|
|
|
|
"%s %u %s : ", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER),
|
|
|
|
user, description);
|
|
|
|
menu_entries_append_enum(info->list, desc_label, "",
|
|
|
|
MSG_UNKNOWN,
|
|
|
|
MENU_SETTINGS_INPUT_DESC_BEGIN +
|
|
|
|
(p * (RARCH_FIRST_CUSTOM_BIND + 4)) + retro_id, 0, 0);
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
}
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2016-12-12 23:50:39 +00:00
|
|
|
unsigned filebrowser_types = 0;
|
2016-07-08 20:26:28 +00:00
|
|
|
|
2016-07-12 21:19:19 +00:00
|
|
|
static int menu_displaylist_parse_playlists(
|
|
|
|
menu_displaylist_info_t *info, bool horizontal)
|
2016-07-09 10:26:39 +00:00
|
|
|
{
|
|
|
|
size_t i, list_size;
|
|
|
|
struct string_list *str_list = NULL;
|
|
|
|
unsigned items_found = 0;
|
2016-08-28 01:48:55 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-07-09 10:26:39 +00:00
|
|
|
|
2016-12-13 04:30:43 +00:00
|
|
|
if (string_is_empty(info->path))
|
2016-07-09 10:26:39 +00:00
|
|
|
{
|
|
|
|
if (frontend_driver_parse_drive_list(info->list) != 0)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, "/", "",
|
2016-07-25 17:09:17 +00:00
|
|
|
MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
2016-07-09 10:26:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-08-28 01:48:55 +00:00
|
|
|
str_list = dir_list_new(info->path, NULL, true, settings->show_hidden_files, true, false);
|
2016-07-09 10:26:39 +00:00
|
|
|
|
|
|
|
if (!str_list)
|
|
|
|
{
|
2016-07-09 10:32:47 +00:00
|
|
|
const char *str = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DIRECTORY_NOT_FOUND);
|
2016-12-13 04:52:56 +00:00
|
|
|
(void)str;
|
2016-07-09 10:26:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dir_list_sort(str_list, true);
|
|
|
|
|
|
|
|
list_size = str_list->size;
|
|
|
|
|
2016-07-15 19:51:18 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-07-15 20:06:54 +00:00
|
|
|
if (!horizontal)
|
2016-11-03 18:05:04 +00:00
|
|
|
{
|
2016-07-15 20:06:54 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_DIRECTORY),
|
|
|
|
MENU_ENUM_LABEL_SCAN_DIRECTORY,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2016-11-03 18:05:04 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_SCAN_FILE),
|
|
|
|
MENU_ENUM_LABEL_SCAN_FILE,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
}
|
2016-07-15 19:51:18 +00:00
|
|
|
#endif
|
2016-07-15 19:47:49 +00:00
|
|
|
|
2016-07-09 10:26:39 +00:00
|
|
|
if (list_size == 0)
|
|
|
|
{
|
|
|
|
string_list_free(str_list);
|
|
|
|
|
2016-07-15 19:45:07 +00:00
|
|
|
if (!horizontal)
|
|
|
|
goto no_playlists;
|
|
|
|
|
2016-07-09 10:26:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < list_size; i++)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char label[PATH_MAX_LENGTH];
|
2016-07-09 10:26:39 +00:00
|
|
|
const char *path = NULL;
|
|
|
|
enum msg_file_type file_type = FILE_TYPE_NONE;
|
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
label[0] = '\0';
|
|
|
|
|
2016-07-09 10:26:39 +00:00
|
|
|
switch (str_list->elems[i].attr.i)
|
|
|
|
{
|
|
|
|
case RARCH_DIRECTORY:
|
|
|
|
file_type = FILE_TYPE_DIRECTORY;
|
|
|
|
break;
|
|
|
|
case RARCH_PLAIN_FILE:
|
|
|
|
default:
|
|
|
|
file_type = (enum msg_file_type)info->type_default;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2016-07-09 10:32:47 +00:00
|
|
|
if (file_type == FILE_TYPE_DIRECTORY)
|
|
|
|
continue;
|
2016-07-09 10:26:39 +00:00
|
|
|
|
|
|
|
/* Need to preserve slash first time. */
|
2016-11-08 23:30:26 +00:00
|
|
|
path = str_list->elems[i].data;
|
2016-07-09 10:26:39 +00:00
|
|
|
|
2016-11-08 23:30:26 +00:00
|
|
|
if (!strstr(path, file_path_str(FILE_PATH_LPL_EXTENSION)) ||
|
2016-11-10 07:47:43 +00:00
|
|
|
((strcasestr(path, "content") && strcasestr(path, "history"))))
|
2016-07-23 07:55:02 +00:00
|
|
|
continue;
|
|
|
|
|
|
|
|
file_type = FILE_TYPE_PLAYLIST_COLLECTION;
|
|
|
|
|
|
|
|
if (!string_is_empty(info->path))
|
2016-07-09 10:26:39 +00:00
|
|
|
path = path_basename(path);
|
|
|
|
|
|
|
|
items_found++;
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, path, label,
|
2016-07-09 11:49:31 +00:00
|
|
|
MENU_ENUM_LABEL_PLAYLIST_COLLECTION_ENTRY,
|
2016-07-09 10:26:39 +00:00
|
|
|
file_type, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
|
2016-12-13 04:27:46 +00:00
|
|
|
if (items_found == 0 && !horizontal)
|
2016-07-15 19:45:07 +00:00
|
|
|
goto no_playlists;
|
2016-07-09 10:26:39 +00:00
|
|
|
|
|
|
|
return 0;
|
2016-07-15 19:45:07 +00:00
|
|
|
|
|
|
|
no_playlists:
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-07-15 19:50:01 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_PLAYLISTS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_PLAYLISTS),
|
|
|
|
MENU_ENUM_LABEL_NO_PLAYLISTS,
|
2016-07-15 19:45:07 +00:00
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
|
|
|
return 0;
|
2016-07-09 10:26:39 +00:00
|
|
|
}
|
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
static int menu_displaylist_parse_cores(
|
|
|
|
menu_handle_t *menu,
|
|
|
|
menu_displaylist_info_t *info,
|
|
|
|
enum menu_displaylist_ctl_state type)
|
|
|
|
{
|
|
|
|
size_t i, list_size;
|
|
|
|
bool filter_ext = true;
|
|
|
|
struct string_list *str_list = NULL;
|
|
|
|
unsigned items_found = 0;
|
2016-08-28 01:48:55 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2016-07-16 15:10:21 +00:00
|
|
|
|
2016-12-13 04:30:43 +00:00
|
|
|
if (string_is_empty(info->path))
|
2016-07-16 15:10:21 +00:00
|
|
|
{
|
|
|
|
if (frontend_driver_parse_drive_list(info->list) != 0)
|
|
|
|
menu_entries_append_enum(info->list, "/", "",
|
2016-07-25 17:09:17 +00:00
|
|
|
MSG_UNKNOWN, FILE_TYPE_DIRECTORY, 0, 0);
|
2016-07-16 15:10:21 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
str_list = dir_list_new(info->path,
|
|
|
|
filter_ext ? info->exts : NULL,
|
2016-08-28 01:48:55 +00:00
|
|
|
true, settings->show_hidden_files, true, false);
|
2016-07-16 15:10:21 +00:00
|
|
|
|
2016-11-05 23:04:37 +00:00
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char out_dir[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
out_dir[0] = '\0';
|
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
fill_pathname_parent_dir(out_dir, info->path, sizeof(out_dir));
|
|
|
|
|
|
|
|
if (string_is_empty(out_dir))
|
|
|
|
{
|
|
|
|
menu_entries_prepend(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PARENT_DIRECTORY),
|
|
|
|
info->path,
|
|
|
|
MENU_ENUM_LABEL_PARENT_DIRECTORY,
|
|
|
|
FILE_TYPE_PARENT_DIRECTORY, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!str_list)
|
|
|
|
{
|
|
|
|
const char *str = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DIRECTORY_NOT_FOUND);
|
|
|
|
|
|
|
|
menu_entries_append_enum(info->list, str, "",
|
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NOT_FOUND, 0, 0, 0);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-11-19 09:01:47 +00:00
|
|
|
info->download_core = true;
|
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
dir_list_sort(str_list, true);
|
|
|
|
|
|
|
|
list_size = str_list->size;
|
|
|
|
|
|
|
|
if (list_size == 0)
|
|
|
|
{
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < list_size; i++)
|
|
|
|
{
|
|
|
|
bool is_dir;
|
2016-10-08 17:34:27 +00:00
|
|
|
char label[PATH_MAX_LENGTH];
|
2016-07-16 15:10:21 +00:00
|
|
|
const char *path = NULL;
|
2016-07-26 07:21:07 +00:00
|
|
|
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
|
2016-07-16 15:10:21 +00:00
|
|
|
enum msg_file_type file_type = FILE_TYPE_NONE;
|
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
label[0] = '\0';
|
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
switch (str_list->elems[i].attr.i)
|
|
|
|
{
|
|
|
|
case RARCH_DIRECTORY:
|
|
|
|
file_type = FILE_TYPE_DIRECTORY;
|
|
|
|
break;
|
|
|
|
case RARCH_COMPRESSED_ARCHIVE:
|
|
|
|
file_type = FILE_TYPE_CARCHIVE;
|
|
|
|
break;
|
|
|
|
case RARCH_COMPRESSED_FILE_IN_ARCHIVE:
|
|
|
|
file_type = FILE_TYPE_IN_CARCHIVE;
|
|
|
|
break;
|
|
|
|
case RARCH_PLAIN_FILE:
|
|
|
|
default:
|
|
|
|
file_type = (enum msg_file_type)info->type_default;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
is_dir = (file_type == FILE_TYPE_DIRECTORY);
|
|
|
|
|
|
|
|
/* Need to preserve slash first time. */
|
|
|
|
path = str_list->elems[i].data;
|
|
|
|
|
2016-12-13 04:30:43 +00:00
|
|
|
if (!string_is_empty(info->path))
|
2016-07-16 15:10:21 +00:00
|
|
|
path = path_basename(path);
|
|
|
|
|
|
|
|
#ifndef HAVE_DYNAMIC
|
|
|
|
if (frontend_driver_has_fork())
|
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char salamander_name[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
salamander_name[0] = '\0';
|
2016-07-16 15:10:21 +00:00
|
|
|
|
|
|
|
if (frontend_driver_get_salamander_basename(
|
|
|
|
salamander_name, sizeof(salamander_name)))
|
|
|
|
{
|
|
|
|
if (string_is_equal_noncase(path, salamander_name))
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (is_dir)
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
/* Compressed cores are unsupported */
|
|
|
|
if (file_type == FILE_TYPE_CARCHIVE)
|
|
|
|
continue;
|
|
|
|
|
2016-07-26 07:21:07 +00:00
|
|
|
if (is_dir)
|
|
|
|
{
|
|
|
|
file_type = FILE_TYPE_DIRECTORY;
|
|
|
|
enum_idx = MENU_ENUM_LABEL_FILE_BROWSER_DIRECTORY;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
file_type = FILE_TYPE_CORE;
|
|
|
|
enum_idx = MENU_ENUM_LABEL_FILE_BROWSER_CORE;
|
|
|
|
}
|
2016-07-16 15:10:21 +00:00
|
|
|
|
|
|
|
items_found++;
|
2016-07-26 07:21:07 +00:00
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
menu_entries_append_enum(info->list, path, label,
|
2016-07-26 07:21:07 +00:00
|
|
|
enum_idx,
|
2016-07-16 15:10:21 +00:00
|
|
|
file_type, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
|
|
|
|
if (items_found == 0)
|
|
|
|
{
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
|
|
|
|
core_info_list_t *list = NULL;
|
|
|
|
const char *dir = NULL;
|
|
|
|
|
|
|
|
core_info_get_list(&list);
|
|
|
|
|
|
|
|
menu_entries_get_last_stack(&dir, NULL, NULL, &enum_idx, NULL);
|
|
|
|
|
|
|
|
list_size = file_list_get_size(info->list);
|
|
|
|
|
|
|
|
for (i = 0; i < list_size; i++)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char core_path[PATH_MAX_LENGTH];
|
|
|
|
char display_name[PATH_MAX_LENGTH];
|
2016-07-16 15:10:21 +00:00
|
|
|
unsigned type = 0;
|
|
|
|
const char *path = NULL;
|
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
core_path[0] = display_name[0] = '\0';
|
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
menu_entries_get_at_offset(info->list,
|
|
|
|
i, &path, NULL, &type, NULL,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
if (type != FILE_TYPE_CORE)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
fill_pathname_join(core_path, dir, path, sizeof(core_path));
|
|
|
|
|
|
|
|
if (core_info_list_get_display_name(list,
|
|
|
|
core_path, display_name, sizeof(display_name)))
|
|
|
|
menu_entries_set_alt_at_offset(info->list, i, display_name);
|
|
|
|
}
|
|
|
|
info->need_sort = true;
|
|
|
|
}
|
|
|
|
|
2016-11-05 23:04:37 +00:00
|
|
|
|
2016-07-16 15:10:21 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
static void menu_displaylist_parse_playlist_associations(
|
|
|
|
menu_displaylist_info_t *info)
|
2015-11-19 17:46:29 +00:00
|
|
|
{
|
2016-02-25 19:32:46 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct string_list *stnames = string_split(settings->playlist_names, ";");
|
|
|
|
struct string_list *stcores = string_split(settings->playlist_cores, ";");
|
2016-04-28 17:26:02 +00:00
|
|
|
struct string_list *str_list = dir_list_new_special(settings->directory.playlist,
|
2016-02-25 19:32:46 +00:00
|
|
|
DIR_LIST_COLLECTIONS, NULL);
|
2015-11-19 17:46:29 +00:00
|
|
|
|
|
|
|
if (str_list && str_list->size)
|
|
|
|
{
|
|
|
|
unsigned i;
|
2016-10-08 17:34:27 +00:00
|
|
|
char new_playlist_names[PATH_MAX_LENGTH];
|
|
|
|
char new_playlist_cores[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
new_playlist_names[0] = new_playlist_cores[0] = '\0';
|
2015-11-19 17:46:29 +00:00
|
|
|
|
|
|
|
for (i = 0; i < str_list->size; i++)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char path_base[PATH_MAX_LENGTH];
|
|
|
|
char core_path[PATH_MAX_LENGTH];
|
2015-11-19 20:23:20 +00:00
|
|
|
unsigned found = 0;
|
|
|
|
union string_list_elem_attr attr = {0};
|
2016-09-25 04:13:33 +00:00
|
|
|
const char *path =
|
2016-02-25 19:32:46 +00:00
|
|
|
path_basename(str_list->elems[i].data);
|
2015-11-19 17:46:29 +00:00
|
|
|
|
2016-10-08 17:34:27 +00:00
|
|
|
path_base[0] = core_path[0] = '\0';
|
|
|
|
|
2016-07-01 13:55:36 +00:00
|
|
|
if (!menu_content_playlist_find_associated_core(
|
2016-02-25 19:32:46 +00:00
|
|
|
path, core_path, sizeof(core_path)))
|
2016-07-01 10:10:59 +00:00
|
|
|
strlcpy(core_path, file_path_str(FILE_PATH_DETECT), sizeof(core_path));
|
2015-11-19 17:46:29 +00:00
|
|
|
|
|
|
|
strlcpy(path_base, path, sizeof(path_base));
|
|
|
|
|
2015-11-19 20:23:20 +00:00
|
|
|
found = string_list_find_elem(stnames, path_base);
|
2016-07-01 10:10:59 +00:00
|
|
|
|
2015-11-19 20:23:20 +00:00
|
|
|
if (found)
|
|
|
|
string_list_set(stcores, found-1, core_path);
|
|
|
|
else
|
|
|
|
{
|
|
|
|
string_list_append(stnames, path_base, attr);
|
|
|
|
string_list_append(stcores, core_path, attr);
|
|
|
|
}
|
2015-11-19 17:46:29 +00:00
|
|
|
|
|
|
|
path_remove_extension(path_base);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2015-11-19 17:46:29 +00:00
|
|
|
path_base,
|
2016-02-25 19:32:46 +00:00
|
|
|
str_list->elems[i].data,
|
2016-07-07 00:51:29 +00:00
|
|
|
MENU_ENUM_LABEL_PLAYLIST_ENTRY,
|
2016-02-25 19:32:46 +00:00
|
|
|
MENU_SETTINGS_PLAYLIST_ASSOCIATION_START + i,
|
|
|
|
0, 0);
|
2015-11-19 17:46:29 +00:00
|
|
|
}
|
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
string_list_join_concat(new_playlist_names,
|
|
|
|
sizeof(new_playlist_names), stnames, ";");
|
|
|
|
string_list_join_concat(new_playlist_cores,
|
|
|
|
sizeof(new_playlist_cores), stcores, ";");
|
2015-11-19 20:23:20 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
strlcpy(settings->playlist_names,
|
|
|
|
new_playlist_names, sizeof(settings->playlist_names));
|
|
|
|
strlcpy(settings->playlist_cores,
|
|
|
|
new_playlist_cores, sizeof(settings->playlist_cores));
|
2015-11-19 17:46:29 +00:00
|
|
|
}
|
2015-11-19 20:23:20 +00:00
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
string_list_free(stnames);
|
|
|
|
string_list_free(stcores);
|
2015-11-19 17:46:29 +00:00
|
|
|
}
|
|
|
|
|
2016-02-24 22:19:53 +00:00
|
|
|
static bool menu_displaylist_push_list_process(menu_displaylist_info_t *info)
|
|
|
|
{
|
2016-04-27 11:45:13 +00:00
|
|
|
size_t idx = 0;
|
2016-04-24 00:23:07 +00:00
|
|
|
|
2016-02-24 22:19:53 +00:00
|
|
|
if (!info)
|
|
|
|
return false;
|
|
|
|
|
2016-04-27 11:45:13 +00:00
|
|
|
if (info->need_navigation_clear)
|
|
|
|
{
|
|
|
|
bool pending_push = true;
|
|
|
|
menu_navigation_ctl(MENU_NAVIGATION_CTL_CLEAR, &pending_push);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (info->need_entries_refresh)
|
|
|
|
{
|
|
|
|
bool refresh = false;
|
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_SET_REFRESH, &refresh);
|
|
|
|
}
|
|
|
|
|
2016-02-24 22:19:53 +00:00
|
|
|
if (info->need_sort)
|
|
|
|
file_list_sort_on_alt(info->list);
|
|
|
|
|
2016-11-05 23:04:37 +00:00
|
|
|
if (info->push_builtin_cores)
|
|
|
|
{
|
|
|
|
menu_entries_prepend(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_START_VIDEO_PROCESSOR),
|
|
|
|
MENU_ENUM_LABEL_START_VIDEO_PROCESSOR,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
|
|
|
menu_entries_prepend(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_START_NET_RETROPAD),
|
|
|
|
MENU_ENUM_LABEL_START_NET_RETROPAD,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
}
|
|
|
|
|
2016-11-19 09:01:47 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
if (info->download_core)
|
|
|
|
{
|
|
|
|
menu_entries_prepend(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DOWNLOAD_CORE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CORE_UPDATER_LIST),
|
|
|
|
MENU_ENUM_LABEL_CORE_UPDATER_LIST,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2016-12-12 18:22:46 +00:00
|
|
|
if (!string_is_empty(new_entry))
|
|
|
|
{
|
|
|
|
menu_entries_prepend(info->list,
|
|
|
|
new_path_entry,
|
2016-12-13 05:32:46 +00:00
|
|
|
new_lbl_entry,
|
|
|
|
new_type,
|
2016-12-12 18:22:46 +00:00
|
|
|
FILE_TYPE_CORE, 0, 0);
|
|
|
|
menu_entries_set_alt_at_offset(info->list, 0,
|
|
|
|
new_entry);
|
|
|
|
|
2016-12-14 11:31:08 +00:00
|
|
|
new_type = MSG_UNKNOWN;
|
2016-12-13 05:32:46 +00:00
|
|
|
new_lbl_entry[0] = '\0';
|
2016-12-12 18:22:46 +00:00
|
|
|
new_path_entry[0] = '\0';
|
|
|
|
new_entry[0] = '\0';
|
|
|
|
}
|
|
|
|
|
2016-02-24 22:19:53 +00:00
|
|
|
if (info->need_refresh)
|
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_REFRESH, info->list);
|
|
|
|
|
2016-04-24 00:23:07 +00:00
|
|
|
if (info->need_clear)
|
|
|
|
menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &idx);
|
|
|
|
|
2016-02-24 22:19:53 +00:00
|
|
|
if (info->need_push)
|
|
|
|
{
|
2016-06-19 22:37:38 +00:00
|
|
|
info->label_hash = msg_hash_calculate(info->label);
|
2016-02-24 22:19:53 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_POPULATE_ENTRIES, info);
|
|
|
|
ui_companion_driver_notify_list_loaded(info->list, info->menu_list);
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-04-27 11:36:44 +00:00
|
|
|
static bool menu_displaylist_push_internal(
|
|
|
|
const char *label,
|
|
|
|
menu_displaylist_ctx_entry_t *entry,
|
|
|
|
menu_displaylist_info_t *info)
|
2016-02-24 22:31:37 +00:00
|
|
|
{
|
2016-06-19 22:31:13 +00:00
|
|
|
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_HISTORY_TAB)))
|
2016-06-17 17:57:48 +00:00
|
|
|
{
|
|
|
|
if (!menu_displaylist_ctl(DISPLAYLIST_HISTORY, info))
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}
|
2016-06-19 22:31:13 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS_TAB)))
|
2016-06-17 18:01:48 +00:00
|
|
|
{
|
|
|
|
if (!menu_displaylist_ctl(DISPLAYLIST_SETTINGS_ALL, info))
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}
|
2016-07-30 17:29:10 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_MUSIC_TAB)))
|
|
|
|
{
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-07-30 17:29:10 +00:00
|
|
|
info->type = 42;
|
2016-12-08 02:02:30 +00:00
|
|
|
strlcpy(info->exts,
|
|
|
|
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
|
|
|
|
sizeof(info->exts));
|
2016-07-30 17:29:10 +00:00
|
|
|
strlcpy(info->label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
|
|
|
sizeof(info->label));
|
|
|
|
|
2016-07-30 21:56:12 +00:00
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
|
|
|
menu_displaylist_ctl(DISPLAYLIST_MUSIC_HISTORY, info);
|
2016-07-30 17:29:10 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VIDEO_TAB)))
|
|
|
|
{
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-07-30 17:29:10 +00:00
|
|
|
info->type = 42;
|
2016-12-08 02:02:30 +00:00
|
|
|
strlcpy(info->exts,
|
|
|
|
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
|
|
|
|
sizeof(info->exts));
|
2016-07-30 17:29:10 +00:00
|
|
|
strlcpy(info->label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
|
|
|
sizeof(info->label));
|
|
|
|
|
2016-07-30 21:12:17 +00:00
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
|
|
|
menu_displaylist_ctl(DISPLAYLIST_VIDEO_HISTORY, info);
|
2016-07-30 17:29:10 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_IMAGES_TAB)))
|
|
|
|
{
|
|
|
|
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-07-30 17:29:10 +00:00
|
|
|
info->type = 42;
|
2016-12-08 02:02:30 +00:00
|
|
|
strlcpy(info->exts,
|
|
|
|
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
|
|
|
|
sizeof(info->exts));
|
2016-07-30 17:29:10 +00:00
|
|
|
strlcpy(info->label,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
|
|
|
sizeof(info->label));
|
|
|
|
|
2016-07-30 21:56:12 +00:00
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
|
|
|
|
2016-07-30 17:29:10 +00:00
|
|
|
#if 0
|
2016-07-30 21:56:12 +00:00
|
|
|
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TAKE_SCREENSHOT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_TAKE_SCREENSHOT),
|
|
|
|
MENU_ENUM_LABEL_TAKE_SCREENSHOT,
|
|
|
|
MENU_SETTING_ACTION_SCREENSHOT, 0, 0);
|
2016-07-30 17:29:10 +00:00
|
|
|
else
|
2016-07-30 21:56:12 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(
|
|
|
|
MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
|
|
|
msg_hash_to_str(
|
|
|
|
MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
|
|
|
MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE,
|
|
|
|
MENU_INFO_MESSAGE, 0, 0);
|
2016-07-30 17:29:10 +00:00
|
|
|
|
|
|
|
#endif
|
2016-07-30 21:56:12 +00:00
|
|
|
menu_displaylist_ctl(DISPLAYLIST_IMAGES_HISTORY, info);
|
2016-07-30 17:29:10 +00:00
|
|
|
return true;
|
|
|
|
}
|
2016-06-19 22:31:13 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_PLAYLISTS_TAB)))
|
2016-06-17 18:07:00 +00:00
|
|
|
{
|
2016-06-17 18:17:18 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-17 18:07:00 +00:00
|
|
|
info->type = 42;
|
2016-12-08 02:02:30 +00:00
|
|
|
strlcpy(info->exts,
|
|
|
|
file_path_str(FILE_PATH_LPL_EXTENSION_NO_DOT),
|
|
|
|
sizeof(info->exts));
|
2016-06-17 18:07:00 +00:00
|
|
|
strlcpy(info->label,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
2016-06-17 18:07:00 +00:00
|
|
|
sizeof(info->label));
|
|
|
|
|
|
|
|
if (string_is_empty(settings->directory.playlist))
|
|
|
|
{
|
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-17 18:07:00 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-17 18:07:00 +00:00
|
|
|
MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE),
|
|
|
|
MENU_ENUM_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE,
|
|
|
|
MENU_INFO_MESSAGE, 0, 0);
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
strlcpy(
|
|
|
|
info->path,
|
|
|
|
settings->directory.playlist,
|
|
|
|
sizeof(info->path));
|
|
|
|
|
|
|
|
if (!menu_displaylist_ctl(
|
2016-07-12 21:19:19 +00:00
|
|
|
DISPLAYLIST_DATABASE_PLAYLISTS, info))
|
2016-06-17 18:07:00 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2016-06-19 22:31:13 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_ADD_TAB)))
|
2016-06-17 18:11:47 +00:00
|
|
|
{
|
|
|
|
if (!menu_displaylist_ctl(DISPLAYLIST_SCAN_DIRECTORY_LIST, info))
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}
|
2016-06-19 22:31:13 +00:00
|
|
|
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_HORIZONTAL_MENU)))
|
2016-06-17 18:15:35 +00:00
|
|
|
{
|
|
|
|
if (!menu_displaylist_ctl(DISPLAYLIST_HORIZONTAL, info))
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
}
|
2016-06-17 17:57:48 +00:00
|
|
|
|
2016-04-27 11:36:44 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static bool menu_displaylist_push(menu_displaylist_ctx_entry_t *entry)
|
|
|
|
{
|
2016-06-17 14:08:47 +00:00
|
|
|
menu_file_list_cbs_t *cbs = NULL;
|
|
|
|
const char *path = NULL;
|
|
|
|
const char *label = NULL;
|
|
|
|
unsigned type = 0;
|
2016-06-19 22:31:13 +00:00
|
|
|
enum msg_hash_enums enum_idx = MSG_UNKNOWN;
|
2016-06-17 14:08:47 +00:00
|
|
|
menu_displaylist_info_t info = {0};
|
2016-04-27 11:36:44 +00:00
|
|
|
|
|
|
|
if (!entry)
|
|
|
|
return false;
|
|
|
|
|
2016-06-17 14:08:47 +00:00
|
|
|
menu_entries_get_last_stack(&path, &label, &type, &enum_idx, NULL);
|
2016-04-27 11:36:44 +00:00
|
|
|
|
|
|
|
info.list = entry->list;
|
|
|
|
info.menu_list = entry->stack;
|
|
|
|
info.type = type;
|
2016-06-17 21:47:23 +00:00
|
|
|
info.enum_idx = enum_idx;
|
2016-04-27 12:26:45 +00:00
|
|
|
strlcpy(info.path, path, sizeof(info.path));
|
2016-04-27 11:36:44 +00:00
|
|
|
strlcpy(info.label, label, sizeof(info.label));
|
|
|
|
|
|
|
|
if (!info.list)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if (menu_displaylist_push_internal(label, entry, &info))
|
2016-02-24 22:31:37 +00:00
|
|
|
return menu_displaylist_push_list_process(&info);
|
|
|
|
|
|
|
|
cbs = menu_entries_get_last_stack_actiondata();
|
|
|
|
|
|
|
|
if (cbs && cbs->action_deferred_push)
|
|
|
|
{
|
|
|
|
if (cbs->action_deferred_push(&info) != 0)
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-07-30 21:03:33 +00:00
|
|
|
static void menu_displaylist_parse_playlist_history(
|
|
|
|
menu_handle_t *menu,
|
|
|
|
menu_displaylist_info_t *info,
|
2016-07-30 21:07:18 +00:00
|
|
|
playlist_t *playlist,
|
|
|
|
const char *playlist_name,
|
|
|
|
const char *playlist_path,
|
|
|
|
int *ret)
|
2016-07-30 21:03:33 +00:00
|
|
|
{
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (settings->history_list_enable)
|
|
|
|
{
|
2016-10-08 17:34:27 +00:00
|
|
|
char path_playlist[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
path_playlist[0] = '\0';
|
2016-07-30 21:03:33 +00:00
|
|
|
|
|
|
|
if (!playlist)
|
|
|
|
command_event(CMD_EVENT_HISTORY_INIT, NULL);
|
|
|
|
|
2016-07-30 21:07:18 +00:00
|
|
|
strlcpy(path_playlist, playlist_name, sizeof(path_playlist));
|
2016-07-30 21:03:33 +00:00
|
|
|
*ret = menu_displaylist_parse_playlist(info,
|
|
|
|
playlist, path_playlist, true);
|
|
|
|
strlcpy(
|
|
|
|
menu->db_playlist_file,
|
2016-07-30 21:07:18 +00:00
|
|
|
playlist_path,
|
2016-07-30 21:03:33 +00:00
|
|
|
sizeof(menu->db_playlist_file));
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_FREE, NULL);
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_INIT,
|
|
|
|
(void*)menu->db_playlist_file);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_HISTORY_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_HISTORY_AVAILABLE),
|
|
|
|
MENU_ENUM_LABEL_NO_HISTORY_AVAILABLE,
|
|
|
|
MENU_INFO_MESSAGE, 0, 0);
|
|
|
|
*ret = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-24 22:31:37 +00:00
|
|
|
bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2015-10-26 21:45:12 +00:00
|
|
|
size_t i;
|
2016-07-16 15:17:58 +00:00
|
|
|
bool extensions_honored = false;
|
2016-02-10 19:36:13 +00:00
|
|
|
menu_ctx_displaylist_t disp_list;
|
2015-12-01 03:28:53 +00:00
|
|
|
#ifdef HAVE_SHADER_MANAGER
|
2016-02-14 21:13:21 +00:00
|
|
|
video_shader_ctx_t shader_info;
|
2015-12-01 03:28:53 +00:00
|
|
|
#endif
|
2016-02-24 22:31:37 +00:00
|
|
|
int ret = 0;
|
|
|
|
core_info_list_t *list = NULL;
|
|
|
|
menu_handle_t *menu = NULL;
|
|
|
|
settings_t *settings = NULL;
|
|
|
|
menu_displaylist_info_t *info = (menu_displaylist_info_t*)data;
|
2016-02-24 22:19:53 +00:00
|
|
|
|
2016-02-24 22:31:37 +00:00
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case DISPLAYLIST_PROCESS:
|
|
|
|
return menu_displaylist_push_list_process(info);
|
|
|
|
case DISPLAYLIST_PUSH_ONTO_STACK:
|
|
|
|
return menu_displaylist_push((menu_displaylist_ctx_entry_t*)data);
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!info)
|
2016-05-02 15:28:20 +00:00
|
|
|
goto error;
|
2016-02-10 20:15:23 +00:00
|
|
|
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
2016-05-02 15:28:20 +00:00
|
|
|
goto error;
|
2016-02-10 20:15:23 +00:00
|
|
|
|
|
|
|
settings = config_get_ptr();
|
2015-12-10 21:30:25 +00:00
|
|
|
|
2016-05-09 16:11:17 +00:00
|
|
|
core_info_get_list(&list);
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2016-02-10 19:36:13 +00:00
|
|
|
disp_list.info = info;
|
|
|
|
disp_list.type = type;
|
|
|
|
|
|
|
|
if (menu_driver_ctl(RARCH_MENU_CTL_LIST_PUSH, &disp_list))
|
2016-02-24 22:05:54 +00:00
|
|
|
return true;
|
2015-10-22 02:12:32 +00:00
|
|
|
|
2015-08-17 16:23:53 +00:00
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case DISPLAYLIST_HELP_SCREEN_LIST:
|
|
|
|
case DISPLAYLIST_MAIN_MENU:
|
2015-09-06 17:49:51 +00:00
|
|
|
case DISPLAYLIST_SETTINGS_ALL:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_HORIZONTAL:
|
|
|
|
case DISPLAYLIST_HORIZONTAL_CONTENT_ACTIONS:
|
|
|
|
case DISPLAYLIST_CONTENT_SETTINGS:
|
|
|
|
case DISPLAYLIST_INFORMATION_LIST:
|
|
|
|
case DISPLAYLIST_ADD_CONTENT_LIST:
|
2016-11-21 06:26:58 +00:00
|
|
|
case DISPLAYLIST_CONFIGURATIONS_LIST:
|
2015-10-24 17:37:59 +00:00
|
|
|
case DISPLAYLIST_SCAN_DIRECTORY_LIST:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_LOAD_CONTENT_LIST:
|
2015-10-23 04:54:33 +00:00
|
|
|
case DISPLAYLIST_USER_BINDS_LIST:
|
2015-10-17 13:28:16 +00:00
|
|
|
case DISPLAYLIST_ACCOUNTS_LIST:
|
2015-10-17 13:58:59 +00:00
|
|
|
case DISPLAYLIST_ACCOUNTS_CHEEVOS_LIST:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_OPTIONS:
|
|
|
|
case DISPLAYLIST_OPTIONS_CHEATS:
|
|
|
|
case DISPLAYLIST_OPTIONS_REMAPPINGS:
|
2015-08-30 22:52:42 +00:00
|
|
|
case DISPLAYLIST_SHADER_PARAMETERS:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_SHADER_PARAMETERS_PRESET:
|
|
|
|
case DISPLAYLIST_PERFCOUNTERS_CORE:
|
|
|
|
case DISPLAYLIST_PERFCOUNTERS_FRONTEND:
|
|
|
|
case DISPLAYLIST_DATABASE_ENTRY:
|
|
|
|
case DISPLAYLIST_DATABASE_QUERY:
|
|
|
|
case DISPLAYLIST_OPTIONS_SHADERS:
|
2016-09-29 02:45:31 +00:00
|
|
|
case DISPLAYLIST_NETPLAY:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_CORE_CONTENT:
|
2016-06-20 22:54:14 +00:00
|
|
|
case DISPLAYLIST_CORE_CONTENT_DIRS:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_PLAYLIST_COLLECTION:
|
|
|
|
case DISPLAYLIST_HISTORY:
|
|
|
|
case DISPLAYLIST_OPTIONS_DISK:
|
2016-03-03 02:06:54 +00:00
|
|
|
case DISPLAYLIST_NETWORK_INFO:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_SYSTEM_INFO:
|
2015-11-08 02:58:50 +00:00
|
|
|
case DISPLAYLIST_ACHIEVEMENT_LIST:
|
2016-11-05 21:55:57 +00:00
|
|
|
case DISPLAYLIST_ACHIEVEMENT_LIST_HARDCORE:
|
2015-09-06 17:49:51 +00:00
|
|
|
case DISPLAYLIST_CORES:
|
|
|
|
case DISPLAYLIST_CORES_DETECTED:
|
|
|
|
case DISPLAYLIST_CORES_UPDATER:
|
2016-04-23 20:31:39 +00:00
|
|
|
case DISPLAYLIST_THUMBNAILS_UPDATER:
|
2015-12-24 19:13:50 +00:00
|
|
|
case DISPLAYLIST_LAKKA:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_CORES_SUPPORTED:
|
|
|
|
case DISPLAYLIST_CORES_COLLECTION_SUPPORTED:
|
|
|
|
case DISPLAYLIST_CORE_INFO:
|
|
|
|
case DISPLAYLIST_CORE_OPTIONS:
|
|
|
|
case DISPLAYLIST_DEFAULT:
|
|
|
|
case DISPLAYLIST_SHADER_PASS:
|
|
|
|
case DISPLAYLIST_SHADER_PRESET:
|
|
|
|
case DISPLAYLIST_DATABASES:
|
|
|
|
case DISPLAYLIST_DATABASE_CURSORS:
|
|
|
|
case DISPLAYLIST_DATABASE_PLAYLISTS:
|
2015-09-06 17:49:51 +00:00
|
|
|
case DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_VIDEO_FILTERS:
|
2015-10-25 09:41:53 +00:00
|
|
|
case DISPLAYLIST_INPUT_HOTKEY_BINDS_LIST:
|
2016-06-16 19:40:13 +00:00
|
|
|
case DISPLAYLIST_DRIVER_SETTINGS_LIST:
|
2016-06-17 02:02:26 +00:00
|
|
|
case DISPLAYLIST_VIDEO_SETTINGS_LIST:
|
2016-11-21 06:26:58 +00:00
|
|
|
case DISPLAYLIST_CONFIGURATION_SETTINGS_LIST:
|
2016-07-02 10:03:50 +00:00
|
|
|
case DISPLAYLIST_LOGGING_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_SAVING_SETTINGS_LIST:
|
2016-07-02 11:17:24 +00:00
|
|
|
case DISPLAYLIST_FRAME_THROTTLE_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_REWIND_SETTINGS_LIST:
|
2016-07-02 11:49:05 +00:00
|
|
|
case DISPLAYLIST_ONSCREEN_DISPLAY_SETTINGS_LIST:
|
2016-11-23 13:28:15 +00:00
|
|
|
case DISPLAYLIST_ONSCREEN_NOTIFICATIONS_SETTINGS_LIST:
|
2016-07-02 11:49:05 +00:00
|
|
|
case DISPLAYLIST_ONSCREEN_OVERLAY_SETTINGS_LIST:
|
2016-07-02 18:40:27 +00:00
|
|
|
case DISPLAYLIST_MENU_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_USER_INTERFACE_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_RETRO_ACHIEVEMENTS_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_UPDATER_SETTINGS_LIST:
|
2016-09-21 21:08:45 +00:00
|
|
|
case DISPLAYLIST_WIFI_SETTINGS_LIST:
|
2016-07-02 18:40:27 +00:00
|
|
|
case DISPLAYLIST_NETWORK_SETTINGS_LIST:
|
2016-12-03 03:40:26 +00:00
|
|
|
case DISPLAYLIST_NETPLAY_LAN_SCAN_SETTINGS_LIST:
|
2016-08-09 23:46:47 +00:00
|
|
|
case DISPLAYLIST_LAKKA_SERVICES_LIST:
|
2016-07-02 18:40:27 +00:00
|
|
|
case DISPLAYLIST_USER_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_DIRECTORY_SETTINGS_LIST:
|
|
|
|
case DISPLAYLIST_PRIVACY_SETTINGS_LIST:
|
2016-06-17 02:02:26 +00:00
|
|
|
case DISPLAYLIST_AUDIO_SETTINGS_LIST:
|
2016-06-18 20:17:39 +00:00
|
|
|
case DISPLAYLIST_CORE_SETTINGS_LIST:
|
2015-10-24 08:31:11 +00:00
|
|
|
case DISPLAYLIST_INPUT_SETTINGS_LIST:
|
2015-10-25 08:38:53 +00:00
|
|
|
case DISPLAYLIST_PLAYLIST_SETTINGS_LIST:
|
2016-10-08 13:05:31 +00:00
|
|
|
case DISPLAYLIST_RECORDING_SETTINGS_LIST:
|
2015-08-17 16:23:53 +00:00
|
|
|
case DISPLAYLIST_AUDIO_FILTERS:
|
|
|
|
case DISPLAYLIST_IMAGES:
|
|
|
|
case DISPLAYLIST_OVERLAYS:
|
|
|
|
case DISPLAYLIST_FONTS:
|
|
|
|
case DISPLAYLIST_CHEAT_FILES:
|
|
|
|
case DISPLAYLIST_REMAP_FILES:
|
|
|
|
case DISPLAYLIST_RECORD_CONFIG_FILES:
|
|
|
|
case DISPLAYLIST_CONFIG_FILES:
|
|
|
|
case DISPLAYLIST_CONTENT_HISTORY:
|
|
|
|
case DISPLAYLIST_ARCHIVE_ACTION:
|
|
|
|
case DISPLAYLIST_ARCHIVE_ACTION_DETECT_CORE:
|
2016-02-24 21:45:21 +00:00
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
2015-08-17 16:23:53 +00:00
|
|
|
break;
|
2016-02-24 21:56:41 +00:00
|
|
|
default:
|
|
|
|
break;
|
2015-08-17 16:23:53 +00:00
|
|
|
}
|
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
switch (type)
|
2015-05-13 11:45:53 +00:00
|
|
|
{
|
2015-06-06 19:55:35 +00:00
|
|
|
case DISPLAYLIST_NONE:
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_INFO:
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, info->path,
|
2016-06-19 22:31:13 +00:00
|
|
|
info->label, MSG_UNKNOWN, info->type, info->directory_ptr, 0);
|
2015-06-06 19:55:35 +00:00
|
|
|
break;
|
2016-07-10 01:08:18 +00:00
|
|
|
case DISPLAYLIST_FILE_BROWSER_SCAN_DIR:
|
2016-07-08 20:51:47 +00:00
|
|
|
case DISPLAYLIST_FILE_BROWSER_SELECT_DIR:
|
|
|
|
case DISPLAYLIST_FILE_BROWSER_SELECT_FILE:
|
2016-07-08 21:14:22 +00:00
|
|
|
case DISPLAYLIST_FILE_BROWSER_SELECT_CORE:
|
2016-07-08 21:20:48 +00:00
|
|
|
case DISPLAYLIST_FILE_BROWSER_SELECT_COLLECTION:
|
2015-06-06 19:55:35 +00:00
|
|
|
case DISPLAYLIST_GENERIC:
|
2015-09-25 13:15:31 +00:00
|
|
|
{
|
2016-02-10 05:15:40 +00:00
|
|
|
menu_ctx_list_t list_info;
|
2015-12-12 01:14:50 +00:00
|
|
|
|
2016-02-10 05:15:40 +00:00
|
|
|
list_info.type = MENU_LIST_PLAIN;
|
|
|
|
list_info.action = 0;
|
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_LIST_CACHE, &list_info);
|
2015-06-06 19:55:35 +00:00
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, info->path,
|
2016-06-19 22:31:13 +00:00
|
|
|
info->label, MSG_UNKNOWN, info->type, info->directory_ptr, 0);
|
2016-04-27 11:45:13 +00:00
|
|
|
|
|
|
|
info->need_navigation_clear = true;
|
|
|
|
info->need_entries_refresh = true;
|
2015-09-25 13:15:31 +00:00
|
|
|
}
|
2015-06-06 19:55:35 +00:00
|
|
|
break;
|
2016-04-24 00:23:07 +00:00
|
|
|
case DISPLAYLIST_PENDING_CLEAR:
|
|
|
|
{
|
|
|
|
menu_ctx_list_t list_info;
|
|
|
|
|
|
|
|
list_info.type = MENU_LIST_PLAIN;
|
|
|
|
list_info.action = 0;
|
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_LIST_CACHE, &list_info);
|
|
|
|
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, info->path,
|
2016-06-19 22:31:13 +00:00
|
|
|
info->label, MSG_UNKNOWN, info->type, info->directory_ptr, 0);
|
2016-04-27 11:45:13 +00:00
|
|
|
info->need_entries_refresh = true;
|
2016-04-24 00:23:07 +00:00
|
|
|
}
|
|
|
|
break;
|
2015-10-23 04:54:33 +00:00
|
|
|
case DISPLAYLIST_USER_BINDS_LIST:
|
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char lbl[PATH_MAX_LENGTH];
|
2016-07-01 10:12:06 +00:00
|
|
|
unsigned val = atoi(info->path);
|
|
|
|
const char *temp_val = msg_hash_to_str(
|
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_USER_1_BINDS + (val-1)));
|
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
lbl[0] = '\0';
|
|
|
|
|
2016-06-17 20:12:06 +00:00
|
|
|
strlcpy(lbl, temp_val, sizeof(lbl));
|
2015-10-23 04:54:33 +00:00
|
|
|
ret = menu_displaylist_parse_settings(menu, info,
|
2015-10-24 08:52:12 +00:00
|
|
|
lbl, PARSE_NONE, true);
|
2015-10-23 04:54:33 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
|
|
|
break;
|
2015-10-17 13:28:16 +00:00
|
|
|
case DISPLAYLIST_ACCOUNTS_LIST:
|
2016-06-16 20:20:26 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS,
|
|
|
|
PARSE_ACTION, false);
|
|
|
|
#else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
2016-06-17 18:43:42 +00:00
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
2016-06-16 20:20:26 +00:00
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
|
|
|
ret = 0;
|
|
|
|
#endif
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-10-17 13:58:59 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ACCOUNTS_CHEEVOS_LIST:
|
|
|
|
#ifdef HAVE_CHEEVOS
|
2016-06-16 20:20:26 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_USERNAME,
|
|
|
|
PARSE_ONLY_STRING, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_PASSWORD,
|
|
|
|
PARSE_ONLY_STRING, false);
|
2015-10-17 13:58:59 +00:00
|
|
|
#else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_ITEMS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_ITEMS),
|
2016-06-17 18:43:42 +00:00
|
|
|
MENU_ENUM_LABEL_NO_ITEMS,
|
2016-06-16 18:29:44 +00:00
|
|
|
MENU_SETTING_NO_ITEM, 0, 0);
|
2015-10-26 02:29:08 +00:00
|
|
|
ret = 0;
|
2015-10-17 13:28:16 +00:00
|
|
|
#endif
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-10-17 13:28:16 +00:00
|
|
|
break;
|
2015-07-17 18:33:09 +00:00
|
|
|
case DISPLAYLIST_HELP_SCREEN_LIST:
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_CONTROLS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_CONTROLS),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_CONTROLS,
|
2015-07-17 18:33:09 +00:00
|
|
|
0, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_WHAT_IS_A_CORE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_WHAT_IS_A_CORE),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_WHAT_IS_A_CORE,
|
2015-07-18 09:29:37 +00:00
|
|
|
0, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_LOADING_CONTENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_LOADING_CONTENT),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_LOADING_CONTENT,
|
2015-07-17 20:11:24 +00:00
|
|
|
0, 0, 0);
|
2015-07-18 12:57:20 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_SCANNING_CONTENT),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_SCANNING_CONTENT),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_SCANNING_CONTENT,
|
2015-07-18 12:57:20 +00:00
|
|
|
0, 0, 0);
|
|
|
|
#endif
|
2015-07-18 12:01:37 +00:00
|
|
|
#ifdef HAVE_OVERLAY
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_CHANGE_VIRTUAL_GAMEPAD),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_CHANGE_VIRTUAL_GAMEPAD),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_CHANGE_VIRTUAL_GAMEPAD,
|
2015-07-18 12:01:37 +00:00
|
|
|
0, 0, 0);
|
|
|
|
#endif
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP_AUDIO_VIDEO_TROUBLESHOOTING),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_AUDIO_VIDEO_TROUBLESHOOTING,
|
2015-07-18 12:57:20 +00:00
|
|
|
0, 0, 0);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-07-17 18:33:09 +00:00
|
|
|
break;
|
2015-06-06 19:55:35 +00:00
|
|
|
case DISPLAYLIST_HELP:
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list, info->path,
|
2016-06-19 22:31:13 +00:00
|
|
|
info->label, MSG_UNKNOWN, info->type, info->directory_ptr, 0);
|
2016-09-15 14:07:20 +00:00
|
|
|
menu_dialog_unset_pending_push();
|
2015-06-06 19:55:35 +00:00
|
|
|
break;
|
2016-06-14 23:44:30 +00:00
|
|
|
case DISPLAYLIST_SETTING_ENUM:
|
|
|
|
{
|
2016-09-25 04:13:33 +00:00
|
|
|
menu_displaylist_ctx_parse_entry_t *entry =
|
2016-06-14 23:44:30 +00:00
|
|
|
(menu_displaylist_ctx_parse_entry_t*)data;
|
|
|
|
|
|
|
|
if (menu_displaylist_parse_settings_enum(entry->data,
|
|
|
|
entry->info,
|
|
|
|
entry->enum_idx,
|
|
|
|
entry->parse_type,
|
|
|
|
entry->add_empty_entry) == -1)
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
return true;
|
2015-10-18 22:44:28 +00:00
|
|
|
case DISPLAYLIST_MAIN_MENU:
|
2016-04-06 00:30:20 +00:00
|
|
|
{
|
2016-09-06 06:38:26 +00:00
|
|
|
rarch_system_info_t *system = NULL;
|
|
|
|
runloop_ctl(RUNLOOP_CTL_SYSTEM_INFO_GET, &system);
|
2016-01-24 00:51:05 +00:00
|
|
|
|
2016-04-06 00:30:20 +00:00
|
|
|
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SETTINGS,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-07-01 10:18:38 +00:00
|
|
|
|
|
|
|
if (menu_driver_ctl(RARCH_MENU_CTL_HAS_LOAD_NO_CONTENT, NULL))
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_START_CORE, PARSE_ACTION, false);
|
2015-10-22 04:11:59 +00:00
|
|
|
|
2016-05-27 17:18:46 +00:00
|
|
|
|
2016-02-03 11:31:29 +00:00
|
|
|
#ifndef HAVE_DYNAMIC
|
2016-04-06 00:30:20 +00:00
|
|
|
if (frontend_driver_has_fork())
|
2015-10-22 04:11:59 +00:00
|
|
|
#endif
|
2016-04-06 00:30:20 +00:00
|
|
|
{
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_LIST, PARSE_ACTION, false);
|
2016-04-06 00:30:20 +00:00
|
|
|
}
|
2016-02-03 11:31:29 +00:00
|
|
|
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LOAD_CONTENT_LIST,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ADD_CONTENT_LIST,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-09-29 03:18:34 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-09-29 02:45:31 +00:00
|
|
|
#endif
|
2016-08-02 13:26:19 +00:00
|
|
|
#if defined(HAVE_NETWORKING)
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ONLINE_UPDATER,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2015-10-22 04:11:59 +00:00
|
|
|
#endif
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SETTINGS, PARSE_ACTION, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INFORMATION_LIST,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2015-10-22 04:11:59 +00:00
|
|
|
#ifndef HAVE_DYNAMIC
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RESTART_RETROARCH,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2015-10-22 04:11:59 +00:00
|
|
|
#endif
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-11-21 06:26:58 +00:00
|
|
|
MENU_ENUM_LABEL_CONFIGURATIONS_LIST,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_HELP_LIST,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_QUIT_RETROARCH,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-03-09 17:52:17 +00:00
|
|
|
#if defined(HAVE_LAKKA)
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SHUTDOWN,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_REBOOT,
|
2016-04-06 00:30:20 +00:00
|
|
|
PARSE_ACTION, false);
|
2015-10-22 04:11:59 +00:00
|
|
|
#endif
|
2016-04-06 00:30:20 +00:00
|
|
|
info->need_push = true;
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
2016-10-08 13:05:31 +00:00
|
|
|
case DISPLAYLIST_RECORDING_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORD_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORD_CONFIG,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORD_PATH,
|
|
|
|
PARSE_ONLY_STRING, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORD_USE_OUTPUT_DIRECTORY,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-11-16 09:08:45 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_GPU_RECORD,
|
2016-10-08 13:05:31 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-11-16 09:08:45 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_POST_FILTER_RECORD,
|
2016-10-08 13:05:31 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
2015-10-25 08:38:53 +00:00
|
|
|
case DISPLAYLIST_PLAYLIST_SETTINGS_LIST:
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_HISTORY_LIST_ENABLE,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
|
|
|
|
menu_displaylist_parse_playlist_associations(info);
|
2015-10-25 09:25:07 +00:00
|
|
|
info->need_push = true;
|
2015-10-25 08:38:53 +00:00
|
|
|
break;
|
2015-10-25 09:41:53 +00:00
|
|
|
case DISPLAYLIST_INPUT_HOTKEY_BINDS_LIST:
|
|
|
|
{
|
|
|
|
unsigned i;
|
|
|
|
|
|
|
|
for (i = 0; i < RARCH_BIND_LIST_END; i++)
|
|
|
|
{
|
2016-07-10 12:49:41 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
2016-09-25 04:13:33 +00:00
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN + i),
|
2016-07-10 12:49:41 +00:00
|
|
|
PARSE_ONLY_BIND, false);
|
2015-10-25 09:41:53 +00:00
|
|
|
(void)ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
2016-06-16 19:40:13 +00:00
|
|
|
case DISPLAYLIST_DRIVER_SETTINGS_LIST:
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_JOYPAD_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_RESAMPLER_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CAMERA_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LOCATION_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORD_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
2016-09-21 14:06:14 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_WIFI_DRIVER,
|
|
|
|
PARSE_ONLY_STRING_OPTIONS, false);
|
2016-06-16 19:40:13 +00:00
|
|
|
|
2016-11-21 06:26:58 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CONFIGURATION_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CONFIG_SAVE_ON_EXIT,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_SPECIFIC_CONFIG,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_GAME_SPECIFIC_OPTIONS,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUTO_OVERRIDES_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUTO_REMAPS_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SHOW_HIDDEN_FILES,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
2016-07-02 10:03:50 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_SAVING_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SORT_SAVEFILES_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SORT_SAVESTATES_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_BLOCK_SRAM_OVERWRITE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUTOSAVE_INTERVAL,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVESTATE_AUTO_INDEX,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVESTATE_AUTO_SAVE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVESTATE_AUTO_LOAD,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-11-29 13:57:30 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVESTATE_THUMBNAIL_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-07-02 10:03:50 +00:00
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_LOGGING_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LOG_VERBOSITY,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL,
|
|
|
|
PARSE_ONLY_UINT, false);
|
2016-12-11 21:18:58 +00:00
|
|
|
if (settings->menu.show_advanced_settings)
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PERFCNT_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-07-02 10:03:50 +00:00
|
|
|
|
2016-07-02 11:17:24 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_FRAME_THROTTLE_SETTINGS_LIST:
|
2016-11-23 12:29:40 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_REWIND_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 11:17:24 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_FASTFORWARD_RATIO,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SLOWMOTION_RATIO,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
2016-12-11 21:18:58 +00:00
|
|
|
if (settings->menu.show_advanced_settings)
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_THROTTLE_FRAMERATE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-07-02 11:17:24 +00:00
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_REWIND_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_REWIND_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_REWIND_GRANULARITY,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
|
2016-07-02 11:49:05 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ONSCREEN_DISPLAY_SETTINGS_LIST:
|
2016-11-06 16:01:21 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ONSCREEN_OVERLAY_SETTINGS, PARSE_ACTION, false);
|
2016-11-23 13:28:15 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ONSCREEN_NOTIFICATIONS_SETTINGS, PARSE_ACTION, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ONSCREEN_NOTIFICATIONS_SETTINGS_LIST:
|
2016-07-02 11:49:05 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FONT_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FONT_PATH,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FONT_SIZE,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_POS_X,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_POS_Y,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ONSCREEN_OVERLAY_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_OVERLAY_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_OVERLAY_AUTOLOAD_PREFERRED,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_OVERLAY_HIDE_IN_MENU,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_OVERLAY_PRESET,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_OVERLAY_OPACITY,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_OVERLAY_SCALE,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
|
2016-06-17 02:02:26 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2016-07-03 17:41:37 +00:00
|
|
|
break;
|
2016-07-02 18:40:27 +00:00
|
|
|
case DISPLAYLIST_MENU_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_WALLPAPER,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_DYNAMIC_WALLPAPER,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-07-09 13:13:06 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_WALLPAPER_OPACITY,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PAUSE_LIBRETRO,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MOUSE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_POINTER_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NAVIGATION_WRAPAROUND,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SHOW_ADVANCED_SETTINGS,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_THREADED_DATA_RUNLOOP_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ENTRY_NORMAL_COLOR,
|
|
|
|
PARSE_ONLY_HEX, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ENTRY_HOVER_COLOR,
|
|
|
|
PARSE_ONLY_HEX, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_TITLE_COLOR,
|
|
|
|
PARSE_ONLY_HEX, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_DPI_OVERRIDE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_DPI_OVERRIDE_VALUE,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_ALPHA_FACTOR,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SCALE_FACTOR,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_FONT,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_THEME,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SHADOWS_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_RIBBON_ENABLE,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-07-09 11:17:29 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_MENU_COLOR_THEME,
|
|
|
|
PARSE_ONLY_UINT, false);
|
2016-08-18 14:42:39 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SHOW_SETTINGS,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
#ifdef HAVE_IMAGEVIEWER
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SHOW_IMAGES,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_FFMPEG
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SHOW_MUSIC,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SHOW_VIDEO,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
#endif
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_XMB_SHOW_HISTORY,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-07-09 11:17:29 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MATERIALUI_MENU_COLOR_THEME,
|
2016-07-02 18:40:27 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
2016-07-11 15:41:06 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
2016-07-11 15:27:36 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MATERIALUI_MENU_FOOTER_OPACITY,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RGUI_SHOW_START_SCREEN,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_THUMBNAILS,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_TIMEDATE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_USER_INTERFACE_SETTINGS_LIST:
|
2016-11-19 11:07:46 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PAUSE_NONACTIVE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_DISABLE_COMPOSITION,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_UI_COMPANION_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_UI_COMPANION_START_ON_BOOT,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_UI_MENUBAR_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_RETRO_ACHIEVEMENTS_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-12-12 12:45:03 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_USERNAME,
|
|
|
|
PARSE_ONLY_STRING, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_PASSWORD,
|
|
|
|
PARSE_ONLY_STRING, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_TEST_UNOFFICIAL,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_HARDCORE_MODE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_UPDATER_SETTINGS_LIST:
|
2016-09-13 20:37:27 +00:00
|
|
|
{
|
|
|
|
unsigned count = 0;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL,
|
|
|
|
PARSE_ONLY_STRING, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL,
|
|
|
|
PARSE_ONLY_STRING, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
|
|
|
|
|
|
|
if (count == 0)
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
|
|
|
0, 0, 0);
|
|
|
|
}
|
2016-07-02 18:40:27 +00:00
|
|
|
|
2016-09-21 21:08:45 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_WIFI_SETTINGS_LIST:
|
2016-09-22 02:18:10 +00:00
|
|
|
if (string_is_equal(settings->wifi.driver, "null"))
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-11-30 23:35:20 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_NETWORKS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_NETWORKS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_NETWORKS_FOUND,
|
2016-09-22 02:18:10 +00:00
|
|
|
0, 0, 0);
|
2016-11-30 18:21:21 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-09-22 02:18:10 +00:00
|
|
|
else
|
2016-09-21 21:08:45 +00:00
|
|
|
{
|
|
|
|
struct string_list *ssid_list = string_list_new();
|
2016-09-22 13:47:14 +00:00
|
|
|
driver_wifi_get_ssids(ssid_list);
|
2016-09-21 21:08:45 +00:00
|
|
|
|
2016-11-30 00:21:21 +00:00
|
|
|
if (ssid_list->size == 0)
|
2016-09-21 21:08:45 +00:00
|
|
|
{
|
2016-11-29 23:18:27 +00:00
|
|
|
task_push_wifi_scan();
|
|
|
|
|
2016-09-21 21:08:45 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-11-30 23:35:20 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_NETWORKS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_NETWORKS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_NETWORKS_FOUND,
|
2016-11-29 23:18:27 +00:00
|
|
|
0, 0, 0);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
unsigned i;
|
2016-11-30 00:21:21 +00:00
|
|
|
for (i = 0; i < ssid_list->size; i++)
|
2016-11-29 23:18:27 +00:00
|
|
|
{
|
2016-11-30 00:21:21 +00:00
|
|
|
const char *ssid = ssid_list->elems[i].data;
|
2016-11-29 23:18:27 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
ssid,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONNECT_WIFI),
|
|
|
|
MENU_ENUM_LABEL_CONNECT_WIFI,
|
|
|
|
MENU_WIFI, 0, 0);
|
|
|
|
}
|
2016-09-21 21:08:45 +00:00
|
|
|
}
|
|
|
|
}
|
2016-11-30 18:21:21 +00:00
|
|
|
#else
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-11-30 23:35:20 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_NETWORKS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_NETWORKS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_NETWORKS_FOUND,
|
2016-11-30 18:21:21 +00:00
|
|
|
0, 0, 0);
|
|
|
|
#endif
|
2016-09-21 21:08:45 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_NETWORK_SETTINGS_LIST:
|
2016-09-21 21:08:45 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
{
|
|
|
|
unsigned user;
|
2016-09-13 20:43:20 +00:00
|
|
|
unsigned count = 0;
|
|
|
|
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_IP_ADDRESS,
|
|
|
|
PARSE_ONLY_STRING, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
2016-10-03 21:28:20 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_TCP_UDP_PORT,
|
|
|
|
PARSE_ONLY_UINT, false) != -1)
|
2016-09-13 20:43:20 +00:00
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_DELAY_FRAMES,
|
|
|
|
PARSE_ONLY_UINT, false) != -1)
|
|
|
|
count++;
|
2016-09-15 03:54:18 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_CHECK_FRAMES,
|
|
|
|
PARSE_ONLY_UINT, false) != -1)
|
|
|
|
count++;
|
2016-09-13 20:43:20 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
2016-10-03 21:28:20 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_SPECTATOR_MODE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_CLIENT_SWAP_INPUT,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
2016-09-13 20:43:20 +00:00
|
|
|
count++;
|
2016-11-30 03:18:37 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_NAT_TRAVERSAL,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
2016-09-13 20:43:20 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETWORK_CMD_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETWORK_CMD_PORT,
|
|
|
|
PARSE_ONLY_UINT, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETWORK_REMOTE_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETWORK_REMOTE_PORT,
|
|
|
|
PARSE_ONLY_UINT, false) != -1)
|
|
|
|
count++;
|
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
for(user = 0; user < settings->input.max_users; user++)
|
|
|
|
{
|
2016-09-13 20:43:20 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
2016-07-10 19:06:29 +00:00
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE + user),
|
2016-09-13 20:43:20 +00:00
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
2016-07-02 18:40:27 +00:00
|
|
|
}
|
|
|
|
|
2016-09-13 20:43:20 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_STDIN_CMD_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false) != -1)
|
|
|
|
count++;
|
|
|
|
|
2016-11-16 06:43:07 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_UPDATER_SETTINGS, PARSE_ACTION, false) != -1)
|
|
|
|
count++;
|
|
|
|
|
2016-09-13 20:43:20 +00:00
|
|
|
if (count == 0)
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
|
|
|
0, 0, 0);
|
|
|
|
}
|
2016-07-02 18:40:27 +00:00
|
|
|
|
2016-12-03 03:40:26 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_NETPLAY_LAN_SCAN_SETTINGS_LIST:
|
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
{
|
|
|
|
struct netplay_host_list *hosts;
|
|
|
|
|
|
|
|
if (!netplay_discovery_driver_ctl(RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES, &hosts))
|
|
|
|
hosts = NULL;
|
|
|
|
|
|
|
|
if (!hosts || hosts->size == 0)
|
|
|
|
{
|
|
|
|
if (!hosts)
|
|
|
|
task_push_netplay_lan_scan();
|
|
|
|
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-12-03 03:49:56 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_NETPLAY_HOSTS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_NETPLAY_HOSTS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_NETPLAY_HOSTS_FOUND,
|
2016-12-03 03:40:26 +00:00
|
|
|
0, 0, 0);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
size_t i;
|
|
|
|
for (i = 0; i < hosts->size; i++)
|
|
|
|
{
|
|
|
|
struct netplay_host *host = &hosts->hosts[i];
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
host->nick,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONNECT_NETPLAY_LAN),
|
|
|
|
MENU_ENUM_LABEL_CONNECT_NETPLAY_LAN,
|
|
|
|
MENU_NETPLAY_LAN_SCAN, 0, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
menu_entries_append_enum(info->list,
|
2016-12-03 03:49:56 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_NETPLAY_HOSTS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_NETPLAY_HOSTS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_NETPLAY_HOSTS_FOUND,
|
2016-12-03 03:40:26 +00:00
|
|
|
0, 0, 0);
|
|
|
|
#endif
|
|
|
|
|
2016-08-09 23:46:47 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_LAKKA_SERVICES_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SSH_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAMBA_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_BLUETOOTH_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_USER_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ACCOUNTS_LIST,
|
|
|
|
PARSE_ACTION, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_NICKNAME,
|
|
|
|
PARSE_ONLY_STRING, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_USER_LANGUAGE,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_DIRECTORY_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SYSTEM_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ASSETS_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_DYNAMIC_WALLPAPERS_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RGUI_BROWSER_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RGUI_CONFIG_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LIBRETRO_DIR_PATH,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LIBRETRO_INFO_PATH,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_DATABASE_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CURSOR_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHEAT_DATABASE_PATH,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FILTER_DIR,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_FILTER_DIR,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_DIR,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORDING_OUTPUT_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORDING_CONFIG_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_OVERLAY_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SCREENSHOT_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_JOYPAD_AUTOCONFIG_DIR,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_REMAPPING_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PLAYLIST_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVEFILE_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVESTATE_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CACHE_DIRECTORY,
|
|
|
|
PARSE_ONLY_DIR, false);
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_PRIVACY_SETTINGS_LIST:
|
2016-07-14 22:22:18 +00:00
|
|
|
{
|
|
|
|
bool available = false;
|
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
2016-07-14 19:18:40 +00:00
|
|
|
MENU_ENUM_LABEL_CAMERA_ALLOW,
|
2016-07-14 22:22:18 +00:00
|
|
|
PARSE_ONLY_BOOL, false) == 0)
|
|
|
|
available = true;
|
2016-07-14 19:18:40 +00:00
|
|
|
if (menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LOCATION_ALLOW,
|
2016-07-14 22:22:18 +00:00
|
|
|
PARSE_ONLY_BOOL, true) == 0)
|
|
|
|
available = true;
|
|
|
|
|
|
|
|
if (!available)
|
2016-07-14 19:18:40 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
|
|
|
|
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
|
|
|
|
0, 0, 0);
|
2016-07-02 18:40:27 +00:00
|
|
|
|
2016-07-14 19:18:40 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2016-07-14 22:22:18 +00:00
|
|
|
}
|
2016-06-17 02:02:26 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_VIDEO_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SUSPEND_SCREENSAVER_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_FPS_SHOW,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-06-25 15:14:31 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SCREEN_RESOLUTION,
|
|
|
|
PARSE_ACTION, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PAL60_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_GAMMA,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SOFT_FILTER,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FILTER_FLICKER,
|
|
|
|
PARSE_ONLY_UINT, false);
|
2016-06-17 02:02:26 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MONITOR_INDEX,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FULLSCREEN,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOWED_FULLSCREEN,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FORCE_SRGB_DISABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_ASPECT_RATIO_INDEX,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_X,
|
|
|
|
PARSE_ONLY_INT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_Y,
|
|
|
|
PARSE_ONLY_INT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_WIDTH,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SCALE,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
2016-11-24 00:43:50 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOW_WIDTH,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOW_HEIGHT,
|
|
|
|
PARSE_ONLY_UINT, false);
|
2016-06-17 02:02:26 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VI_WIDTH,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VFILTER,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SMOOTH,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_ROTATION,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_THREADED,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VSYNC,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-06-21 19:36:58 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-10-24 09:51:51 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SWAP_INTERVAL,
|
2016-06-21 19:36:58 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
2016-06-17 02:02:26 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-10-24 09:51:51 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,
|
2016-06-17 02:02:26 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_HARD_SYNC,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_HARD_SYNC_FRAMES,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FRAME_DELAY,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_BLACK_FRAME_INSERTION,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_GPU_SCREENSHOT,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_CROP_OVERSCAN,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FILTER,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
|
2016-06-18 20:17:39 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CORE_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SHARED_CONTEXT,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_DUMMY_ON_CORE_SHUTDOWN,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-11-30 04:22:22 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CHECK_FOR_MISSING_FIRMWARE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-11-21 08:01:56 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_ALLOW_ROTATE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-06-18 20:17:39 +00:00
|
|
|
|
2016-06-17 02:02:26 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_AUDIO_SETTINGS_LIST:
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_MUTE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_VOLUME,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SYSTEM_BGM_ENABLE,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_SYNC,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_LATENCY,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_RATE_CONTROL_DELTA,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_MAX_TIMING_SKEW,
|
|
|
|
PARSE_ONLY_FLOAT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_BLOCK_FRAMES,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_DEVICE,
|
|
|
|
PARSE_ONLY_STRING, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_OUTPUT_RATE,
|
|
|
|
PARSE_ONLY_UINT, false);
|
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN,
|
|
|
|
PARSE_ONLY_PATH, false);
|
|
|
|
|
2016-06-16 19:40:13 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
2015-10-24 08:31:11 +00:00
|
|
|
case DISPLAYLIST_INPUT_SETTINGS_LIST:
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_MAX_USERS,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
2015-11-13 00:50:14 +00:00
|
|
|
#if TARGET_OS_IPHONE
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_SMALL_KEYBOARD_ENABLE,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
2015-11-13 00:50:14 +00:00
|
|
|
#endif
|
2016-12-11 00:29:53 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_UNIFIED_MENU_CONTROLS,
|
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_ICADE_ENABLE,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_KEYBOARD_GAMEPAD_MAPPING_TYPE,
|
2016-02-25 19:32:46 +00:00
|
|
|
PARSE_ONLY_UINT, false);
|
2016-10-15 11:28:35 +00:00
|
|
|
#ifdef VITA
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
2016-10-15 11:38:42 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_TOUCH_ENABLE,
|
2016-10-15 11:28:35 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
2016-10-15 11:38:42 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_PREFER_FRONT_TOUCH,
|
2016-10-15 11:28:35 +00:00
|
|
|
PARSE_ONLY_BOOL, false);
|
2015-10-24 08:31:11 +00:00
|
|
|
#endif
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO, PARSE_ONLY_UINT, false);
|
2016-11-19 18:48:24 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_MENU_INPUT_SWAP_OK_CANCEL, PARSE_ONLY_BOOL, false);
|
2016-09-03 23:01:29 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_ALL_USERS_CONTROL_MENU, PARSE_ONLY_BOOL, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_REMAP_BINDS_ENABLE, PARSE_ONLY_BOOL, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_AUTODETECT_ENABLE, PARSE_ONLY_BOOL, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_DESCRIPTOR_LABEL_SHOW, PARSE_ONLY_BOOL, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_DESCRIPTOR_HIDE_UNBOUND, PARSE_ONLY_BOOL, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_AXIS_THRESHOLD, PARSE_ONLY_FLOAT, false);
|
2016-06-26 06:22:40 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_BIND_TIMEOUT, PARSE_ONLY_UINT, false);
|
2016-06-16 19:08:49 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_TURBO_PERIOD, PARSE_ONLY_UINT, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_DUTY_CYCLE, PARSE_ONLY_UINT, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_BIND_MODE, PARSE_ONLY_UINT, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_HOTKEY_BINDS, PARSE_ACTION, false);
|
2015-10-24 08:31:11 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
unsigned user;
|
|
|
|
for (user = 0; user < settings->input.max_users; user++)
|
|
|
|
{
|
2016-06-16 20:32:27 +00:00
|
|
|
menu_displaylist_parse_settings_enum(menu, info,
|
2016-06-19 22:31:13 +00:00
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_USER_1_BINDS + user),
|
2016-06-16 22:11:16 +00:00
|
|
|
PARSE_ACTION, false);
|
2015-10-24 08:31:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
break;
|
2015-09-06 17:49:51 +00:00
|
|
|
case DISPLAYLIST_SETTINGS_ALL:
|
2016-06-16 19:40:13 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
2016-06-18 20:17:39 +00:00
|
|
|
MENU_ENUM_LABEL_DRIVER_SETTINGS, PARSE_ACTION, false);
|
2016-06-17 02:02:26 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SETTINGS, PARSE_ACTION, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_SETTINGS, PARSE_ACTION, false);
|
2016-06-16 19:11:38 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_INPUT_SETTINGS, PARSE_ACTION, false);
|
2016-06-18 20:17:39 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CORE_SETTINGS, PARSE_ACTION, false);
|
2016-11-21 06:26:58 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_CONFIGURATION_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 10:03:50 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_SAVING_SETTINGS, PARSE_ACTION, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LOGGING_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 11:17:24 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_FRAME_THROTTLE_SETTINGS, PARSE_ACTION, false);
|
2016-10-02 05:54:56 +00:00
|
|
|
if (!string_is_equal(settings->record.driver, "null"))
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RECORDING_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 11:49:05 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_ONSCREEN_DISPLAY_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_USER_INTERFACE_SETTINGS, PARSE_ACTION, false);
|
2016-07-16 14:35:51 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
2016-07-02 18:40:27 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_RETRO_ACHIEVEMENTS_SETTINGS, PARSE_ACTION, false);
|
2016-07-16 14:35:51 +00:00
|
|
|
#endif
|
2016-09-21 19:58:43 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_WIFI_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETWORK_SETTINGS, PARSE_ACTION, false);
|
2016-12-03 03:40:26 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_NETPLAY_LAN_SCAN_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_LAKKA_SERVICES, PARSE_ACTION, false);
|
2016-06-16 19:11:38 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PLAYLIST_SETTINGS, PARSE_ACTION, false);
|
2016-07-02 18:40:27 +00:00
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_USER_SETTINGS, PARSE_ACTION, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_DIRECTORY_SETTINGS, PARSE_ACTION, false);
|
|
|
|
ret = menu_displaylist_parse_settings_enum(menu, info,
|
|
|
|
MENU_ENUM_LABEL_PRIVACY_SETTINGS, PARSE_ACTION, false);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_HORIZONTAL:
|
|
|
|
ret = menu_displaylist_parse_horizontal_list(info);
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_sort = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-06-22 20:10:14 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_HORIZONTAL_CONTENT_ACTIONS:
|
2015-07-23 17:44:59 +00:00
|
|
|
ret = menu_displaylist_parse_horizontal_content_actions(info);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-07-23 17:44:59 +00:00
|
|
|
break;
|
2015-06-22 20:10:14 +00:00
|
|
|
case DISPLAYLIST_CONTENT_SETTINGS:
|
|
|
|
ret = menu_displaylist_parse_load_content_settings(info);
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-06-22 06:46:42 +00:00
|
|
|
break;
|
2015-06-24 02:56:44 +00:00
|
|
|
case DISPLAYLIST_INFORMATION_LIST:
|
|
|
|
ret = menu_displaylist_parse_information_list(info);
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2015-07-03 23:51:41 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ADD_CONTENT_LIST:
|
|
|
|
ret = menu_displaylist_parse_add_content_list(info);
|
|
|
|
|
2016-11-04 14:03:09 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
break;
|
2016-11-21 06:26:58 +00:00
|
|
|
case DISPLAYLIST_CONFIGURATIONS_LIST:
|
2016-11-04 14:03:09 +00:00
|
|
|
ret = menu_displaylist_parse_configurations_list(info);
|
|
|
|
|
2015-10-24 17:37:59 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_SCAN_DIRECTORY_LIST:
|
|
|
|
ret = menu_displaylist_parse_scan_directory_list(info);
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2015-06-24 02:56:44 +00:00
|
|
|
break;
|
2015-06-22 06:46:42 +00:00
|
|
|
case DISPLAYLIST_LOAD_CONTENT_LIST:
|
2016-12-12 23:50:39 +00:00
|
|
|
if (frontend_driver_parse_drive_list(info->list) != 0)
|
|
|
|
menu_entries_append_enum(info->list, "/",
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR),
|
|
|
|
MENU_ENUM_LABEL_FILE_DETECT_CORE_LIST_PUSH_DIR,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
|
2016-12-13 00:06:28 +00:00
|
|
|
if (!string_is_empty(settings->directory.menu_content))
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FAVORITES),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_FAVORITES),
|
|
|
|
MENU_ENUM_LABEL_FAVORITES,
|
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
2015-10-30 17:32:17 +00:00
|
|
|
|
2016-02-11 06:20:04 +00:00
|
|
|
if (core_info_list_num_info_files(list))
|
2015-10-30 17:32:17 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DOWNLOADED_FILE_DETECT_CORE_LIST),
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-15 21:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST,
|
2015-10-30 17:32:17 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONTENT_COLLECTION_LIST),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST,
|
2015-10-30 17:32:17 +00:00
|
|
|
MENU_SETTING_ACTION, 0, 0);
|
|
|
|
#endif
|
2015-06-22 06:46:42 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_OPTIONS:
|
|
|
|
ret = menu_displaylist_parse_options(info);
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_OPTIONS_CHEATS:
|
|
|
|
ret = menu_displaylist_parse_options_cheats(info);
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_OPTIONS_REMAPPINGS:
|
|
|
|
ret = menu_displaylist_parse_options_remappings(info);
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_SHADER_PARAMETERS:
|
|
|
|
case DISPLAYLIST_SHADER_PARAMETERS_PRESET:
|
|
|
|
#ifdef HAVE_SHADER_MANAGER
|
2016-05-08 19:11:27 +00:00
|
|
|
video_shader_driver_get_current_shader(&shader_info);
|
2016-02-14 21:13:21 +00:00
|
|
|
|
|
|
|
if (shader_info.data)
|
2016-02-25 19:32:46 +00:00
|
|
|
ret = deferred_push_video_shader_parameters_common(
|
|
|
|
info, shader_info.data,
|
2015-10-19 23:54:04 +00:00
|
|
|
(type == DISPLAYLIST_SHADER_PARAMETERS)
|
2016-09-25 04:13:33 +00:00
|
|
|
? MENU_SETTINGS_SHADER_PARAMETER_0
|
2016-02-14 21:13:21 +00:00
|
|
|
: MENU_SETTINGS_SHADER_PRESET_PARAMETER_0
|
2015-10-19 23:54:04 +00:00
|
|
|
);
|
|
|
|
else
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SHADER_PARAMETERS),
|
2016-06-27 22:51:47 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_SHADER_PARAMETERS),
|
|
|
|
MENU_ENUM_LABEL_NO_SHADER_PARAMETERS,
|
2016-06-16 18:29:44 +00:00
|
|
|
0, 0, 0);
|
2015-10-19 23:54:04 +00:00
|
|
|
ret = 0;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2015-10-19 23:54:04 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_PERFCOUNTERS_CORE:
|
|
|
|
case DISPLAYLIST_PERFCOUNTERS_FRONTEND:
|
2015-06-06 20:51:28 +00:00
|
|
|
menu_displaylist_push_perfcounter(info,
|
2015-06-06 19:55:35 +00:00
|
|
|
(type == DISPLAYLIST_PERFCOUNTERS_CORE) ?
|
2016-09-25 04:13:33 +00:00
|
|
|
retro_get_perf_counter_libretro()
|
2016-02-25 19:32:46 +00:00
|
|
|
: retro_get_perf_counter_rarch(),
|
2015-06-06 19:55:35 +00:00
|
|
|
(type == DISPLAYLIST_PERFCOUNTERS_CORE) ?
|
2016-09-25 04:13:33 +00:00
|
|
|
retro_get_perf_count_libretro()
|
2016-02-25 19:32:46 +00:00
|
|
|
: retro_get_perf_count_rarch(),
|
2015-06-06 19:55:35 +00:00
|
|
|
(type == DISPLAYLIST_PERFCOUNTERS_CORE) ?
|
2015-07-21 02:01:11 +00:00
|
|
|
MENU_SETTINGS_LIBRETRO_PERF_COUNTERS_BEGIN :
|
2015-06-18 06:39:34 +00:00
|
|
|
MENU_SETTINGS_PERF_COUNTERS_BEGIN);
|
2015-06-06 20:51:28 +00:00
|
|
|
ret = 0;
|
2015-06-06 19:55:35 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_refresh = false;
|
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_DATABASE_ENTRY:
|
2015-09-06 17:29:04 +00:00
|
|
|
{
|
2015-10-03 00:45:40 +00:00
|
|
|
struct string_list *str_list = string_split(info->label, "|");
|
2015-09-06 17:29:04 +00:00
|
|
|
|
|
|
|
if (!str_list)
|
2016-05-02 15:28:20 +00:00
|
|
|
goto error;
|
2015-09-06 17:29:04 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
strlcpy(info->path_b,
|
|
|
|
str_list->elems[1].data, sizeof(info->path_b));
|
|
|
|
strlcpy(info->label,
|
|
|
|
str_list->elems[0].data, sizeof(info->label));
|
2015-09-06 17:29:04 +00:00
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
ret = menu_displaylist_parse_database_entry(info);
|
2015-05-13 11:45:53 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_DATABASE_QUERY:
|
2015-06-18 06:39:34 +00:00
|
|
|
ret = menu_database_parse_query(info->list,
|
2016-09-25 04:13:33 +00:00
|
|
|
info->path, string_is_empty(info->path_c)
|
2016-02-25 19:32:46 +00:00
|
|
|
? NULL : info->path_c);
|
2015-05-19 04:32:49 +00:00
|
|
|
strlcpy(info->path, info->path_b, sizeof(info->path));
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_sort = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_OPTIONS_SHADERS:
|
|
|
|
ret = menu_displaylist_parse_shader_options(info);
|
|
|
|
|
2016-09-29 02:45:31 +00:00
|
|
|
info->need_push = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_NETPLAY:
|
|
|
|
ret = menu_displaylist_parse_netplay(info);
|
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
2015-07-04 01:37:43 +00:00
|
|
|
case DISPLAYLIST_CORE_CONTENT:
|
|
|
|
#ifdef HAVE_NETWORKING
|
2016-06-20 23:40:55 +00:00
|
|
|
print_buf_lines(info->list, core_buf, "",
|
2016-07-12 23:23:59 +00:00
|
|
|
core_len, FILE_TYPE_DOWNLOAD_CORE_CONTENT, true, false);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2016-06-20 22:54:14 +00:00
|
|
|
#endif
|
|
|
|
break;
|
2016-07-12 16:29:31 +00:00
|
|
|
case DISPLAYLIST_CORE_CONTENT_DIRS_SUBDIR:
|
|
|
|
{
|
|
|
|
#ifdef HAVE_NETWORKING
|
2016-10-09 07:15:56 +00:00
|
|
|
char new_label[PATH_MAX_LENGTH];
|
2016-07-12 16:29:31 +00:00
|
|
|
struct string_list *str_list = string_split(info->path, ";");
|
2016-10-09 07:15:56 +00:00
|
|
|
|
|
|
|
new_label[0] = '\0';
|
|
|
|
|
2016-07-13 02:38:29 +00:00
|
|
|
if (str_list->elems[0].data)
|
|
|
|
strlcpy(new_label, str_list->elems[0].data, sizeof(new_label));
|
|
|
|
if (str_list->elems[1].data)
|
|
|
|
strlcpy(core_buf, str_list->elems[1].data, core_len);
|
2016-07-12 16:29:31 +00:00
|
|
|
print_buf_lines(info->list, core_buf, new_label,
|
2016-07-12 23:23:59 +00:00
|
|
|
core_len, FILE_TYPE_DOWNLOAD_URL, false, false);
|
2016-07-12 16:29:31 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2016-07-12 23:23:59 +00:00
|
|
|
info->need_clear = true;
|
2016-07-12 16:29:31 +00:00
|
|
|
|
|
|
|
string_list_free(str_list);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
break;
|
2016-06-20 22:54:14 +00:00
|
|
|
case DISPLAYLIST_CORE_CONTENT_DIRS:
|
2016-06-20 23:40:55 +00:00
|
|
|
{
|
2016-06-20 22:54:14 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-10-09 07:15:56 +00:00
|
|
|
char new_label[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
new_label[0] = '\0';
|
|
|
|
|
2016-06-27 22:51:47 +00:00
|
|
|
fill_pathname_join(new_label,
|
|
|
|
settings->network.buildbot_assets_url,
|
|
|
|
"cores", sizeof(new_label));
|
2016-06-20 23:40:55 +00:00
|
|
|
print_buf_lines(info->list, core_buf, new_label,
|
2016-07-12 23:23:59 +00:00
|
|
|
core_len, FILE_TYPE_DOWNLOAD_URL, true, false);
|
2016-06-20 23:40:55 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2015-07-04 01:37:43 +00:00
|
|
|
#endif
|
2016-06-20 23:40:55 +00:00
|
|
|
}
|
2015-07-04 01:37:43 +00:00
|
|
|
break;
|
2015-05-19 04:32:49 +00:00
|
|
|
case DISPLAYLIST_CORES_UPDATER:
|
|
|
|
#ifdef HAVE_NETWORKING
|
2016-07-12 23:03:06 +00:00
|
|
|
print_buf_lines(info->list, core_buf, "",
|
2016-07-12 23:23:59 +00:00
|
|
|
core_len, FILE_TYPE_DOWNLOAD_CORE, true, true);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2016-04-24 00:23:07 +00:00
|
|
|
info->need_clear = true;
|
2016-04-23 20:31:39 +00:00
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_THUMBNAILS_UPDATER:
|
|
|
|
#ifdef HAVE_NETWORKING
|
2016-06-20 23:40:55 +00:00
|
|
|
print_buf_lines(info->list, core_buf, "",
|
2016-07-12 23:03:06 +00:00
|
|
|
core_len, FILE_TYPE_DOWNLOAD_THUMBNAIL_CONTENT,
|
2016-07-12 23:23:59 +00:00
|
|
|
true, false);
|
2016-04-23 20:31:39 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2016-04-24 00:23:07 +00:00
|
|
|
info->need_clear = true;
|
2015-12-24 19:13:50 +00:00
|
|
|
#endif
|
2015-12-25 14:16:32 +00:00
|
|
|
break;
|
2015-12-24 19:13:50 +00:00
|
|
|
case DISPLAYLIST_LAKKA:
|
|
|
|
#ifdef HAVE_NETWORKING
|
2016-06-20 23:40:55 +00:00
|
|
|
print_buf_lines(info->list, core_buf, "",
|
2016-07-12 23:03:06 +00:00
|
|
|
core_len, FILE_TYPE_DOWNLOAD_LAKKA,
|
2016-07-12 23:23:59 +00:00
|
|
|
true, false);
|
2015-12-24 19:13:50 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2016-04-24 00:23:07 +00:00
|
|
|
info->need_clear = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
#endif
|
|
|
|
break;
|
2015-05-21 22:28:02 +00:00
|
|
|
case DISPLAYLIST_PLAYLIST_COLLECTION:
|
2016-06-20 03:11:01 +00:00
|
|
|
if (string_is_equal(info->path, file_path_str(FILE_PATH_CONTENT_HISTORY)))
|
2015-10-19 04:05:52 +00:00
|
|
|
{
|
2016-02-24 22:05:54 +00:00
|
|
|
if (menu_displaylist_ctl(DISPLAYLIST_HISTORY, info))
|
2016-02-24 22:19:53 +00:00
|
|
|
return menu_displaylist_push_list_process(info);
|
2016-05-02 15:28:20 +00:00
|
|
|
goto error;
|
2015-10-19 04:05:52 +00:00
|
|
|
}
|
2015-09-08 17:33:31 +00:00
|
|
|
else
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char path_playlist[PATH_MAX_LENGTH];
|
2016-05-23 19:19:28 +00:00
|
|
|
playlist_t *playlist = NULL;
|
2015-05-22 00:34:05 +00:00
|
|
|
|
2016-10-09 07:15:56 +00:00
|
|
|
path_playlist[0] = '\0';
|
|
|
|
|
2015-12-11 12:01:39 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_FREE, NULL);
|
2015-06-08 20:09:56 +00:00
|
|
|
|
2016-04-28 17:26:02 +00:00
|
|
|
fill_pathname_join(
|
|
|
|
path_playlist,
|
|
|
|
settings->directory.playlist,
|
|
|
|
info->path,
|
2015-06-08 20:09:56 +00:00
|
|
|
sizeof(path_playlist));
|
2015-12-11 12:06:24 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_INIT,
|
|
|
|
(void*)path_playlist);
|
2015-12-11 12:06:24 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
strlcpy(menu->db_playlist_file, path_playlist,
|
|
|
|
sizeof(menu->db_playlist_file));
|
2015-06-19 19:50:13 +00:00
|
|
|
strlcpy(path_playlist,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_COLLECTION),
|
2016-02-25 19:32:46 +00:00
|
|
|
sizeof(path_playlist));
|
2015-12-11 12:06:24 +00:00
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_PLAYLIST_GET, &playlist);
|
2015-06-08 20:09:56 +00:00
|
|
|
|
2016-08-28 16:47:34 +00:00
|
|
|
playlist_qsort(playlist);
|
2015-11-19 09:16:12 +00:00
|
|
|
|
2016-02-25 19:32:46 +00:00
|
|
|
ret = menu_displaylist_parse_playlist(info,
|
|
|
|
playlist, path_playlist, false);
|
2015-06-08 20:09:56 +00:00
|
|
|
|
|
|
|
if (ret == 0)
|
2015-05-21 22:28:02 +00:00
|
|
|
{
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_sort = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-05-21 22:28:02 +00:00
|
|
|
}
|
2015-06-08 20:09:56 +00:00
|
|
|
}
|
2015-10-19 04:05:52 +00:00
|
|
|
break;
|
2015-06-08 20:09:56 +00:00
|
|
|
case DISPLAYLIST_HISTORY:
|
2016-07-30 21:03:33 +00:00
|
|
|
menu_displaylist_parse_playlist_history(menu, info,
|
2016-07-30 21:07:18 +00:00
|
|
|
g_defaults.content_history,
|
|
|
|
"history",
|
|
|
|
settings->path.content_history,
|
|
|
|
&ret);
|
2015-12-11 09:13:18 +00:00
|
|
|
|
2016-07-30 21:56:12 +00:00
|
|
|
if (ret == 0)
|
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_IMAGES_HISTORY:
|
2016-07-31 12:22:43 +00:00
|
|
|
#ifdef HAVE_IMAGEVIEWER
|
2016-07-30 21:56:12 +00:00
|
|
|
menu_displaylist_parse_playlist_history(menu, info,
|
|
|
|
g_defaults.image_history,
|
|
|
|
"images_history",
|
|
|
|
settings->path.content_image_history,
|
|
|
|
&ret);
|
|
|
|
|
|
|
|
if (ret == 0)
|
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
2016-07-31 12:22:43 +00:00
|
|
|
#endif
|
2016-07-30 21:56:12 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_MUSIC_HISTORY:
|
2016-07-31 12:22:43 +00:00
|
|
|
#ifdef HAVE_FFMPEG
|
2016-07-30 21:56:12 +00:00
|
|
|
menu_displaylist_parse_playlist_history(menu, info,
|
|
|
|
g_defaults.music_history,
|
|
|
|
"music_history",
|
|
|
|
settings->path.content_music_history,
|
|
|
|
&ret);
|
|
|
|
|
2016-07-30 21:12:17 +00:00
|
|
|
if (ret == 0)
|
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
2016-07-31 12:22:43 +00:00
|
|
|
#endif
|
2016-07-30 21:12:17 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_VIDEO_HISTORY:
|
2016-07-31 12:22:43 +00:00
|
|
|
#ifdef HAVE_FFMPEG
|
2016-07-30 21:12:17 +00:00
|
|
|
menu_displaylist_parse_playlist_history(menu, info,
|
|
|
|
g_defaults.video_history,
|
|
|
|
"video_history",
|
|
|
|
settings->path.content_video_history,
|
|
|
|
&ret);
|
|
|
|
|
2016-07-22 19:00:40 +00:00
|
|
|
if (ret == 0)
|
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2016-07-31 12:22:43 +00:00
|
|
|
#endif
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_OPTIONS_DISK:
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISK_INDEX),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DISK_INDEX),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_DISK_INDEX,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_CORE_DISK_OPTIONS_DISK_INDEX, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISK_CYCLE_TRAY_STATUS),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DISK_CYCLE_TRAY_STATUS),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_DISK_CYCLE_TRAY_STATUS,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_CORE_DISK_OPTIONS_DISK_CYCLE_TRAY_STATUS, 0, 0);
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISK_IMAGE_APPEND),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DISK_IMAGE_APPEND),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_DISK_IMAGE_APPEND,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_CORE_DISK_OPTIONS_DISK_IMAGE_APPEND, 0, 0);
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
2016-03-03 02:06:54 +00:00
|
|
|
case DISPLAYLIST_NETWORK_INFO:
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-03-03 02:06:54 +00:00
|
|
|
#ifndef HAVE_SOCKET_LEGACY
|
|
|
|
menu_displaylist_parse_network_info(info);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
break;
|
2015-05-19 04:32:49 +00:00
|
|
|
case DISPLAYLIST_SYSTEM_INFO:
|
|
|
|
menu_displaylist_parse_system_info(info);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
2015-11-08 15:19:54 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
2015-11-08 02:58:50 +00:00
|
|
|
case DISPLAYLIST_ACHIEVEMENT_LIST:
|
2016-11-05 21:55:57 +00:00
|
|
|
cheevos_populate_menu(info, false);
|
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ACHIEVEMENT_LIST_HARDCORE:
|
|
|
|
cheevos_populate_menu(info, true);
|
2015-11-08 02:58:50 +00:00
|
|
|
info->need_push = true;
|
|
|
|
info->need_refresh = true;
|
2015-09-24 01:48:08 +00:00
|
|
|
break;
|
2015-11-08 15:19:54 +00:00
|
|
|
#endif
|
|
|
|
|
2015-06-07 17:46:03 +00:00
|
|
|
case DISPLAYLIST_CORES_SUPPORTED:
|
2015-06-07 21:26:29 +00:00
|
|
|
case DISPLAYLIST_CORES_COLLECTION_SUPPORTED:
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_sort = true;
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
|
|
|
|
{
|
2015-10-26 20:03:28 +00:00
|
|
|
unsigned cores_names_len;
|
|
|
|
size_t cores_names_size;
|
|
|
|
unsigned cores_paths_len;
|
|
|
|
size_t cores_paths_size;
|
2016-09-25 04:13:33 +00:00
|
|
|
struct string_list *cores_names =
|
2016-02-25 19:32:46 +00:00
|
|
|
string_list_new_special(STRING_LIST_SUPPORTED_CORES_NAMES,
|
|
|
|
(void*)menu->deferred_path,
|
|
|
|
&cores_names_len, &cores_names_size);
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2016-12-12 17:53:55 +00:00
|
|
|
if (cores_names_size == 0)
|
2016-12-12 15:20:43 +00:00
|
|
|
{
|
2016-12-12 17:53:55 +00:00
|
|
|
if (!path_is_empty(RARCH_PATH_CORE))
|
|
|
|
{
|
2016-12-12 15:20:43 +00:00
|
|
|
|
2016-12-12 17:53:55 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
path_get(RARCH_PATH_CORE),
|
|
|
|
path_get(RARCH_PATH_CORE),
|
|
|
|
MENU_ENUM_LABEL_DETECT_CORE_LIST_OK,
|
|
|
|
FILE_TYPE_DIRECT_LOAD,
|
|
|
|
0,
|
|
|
|
0);
|
|
|
|
|
|
|
|
{
|
|
|
|
const char *core_name = NULL;
|
|
|
|
struct retro_system_info *system = NULL;
|
|
|
|
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_SYSTEM_INFO_GET,
|
|
|
|
&system);
|
|
|
|
|
|
|
|
if (system)
|
|
|
|
core_name = system->library_name;
|
|
|
|
|
|
|
|
if (!string_is_empty(core_name))
|
|
|
|
menu_entries_set_alt_at_offset(info->list, 0,
|
|
|
|
core_name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
menu_entries_append_enum(info->list,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORES_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_CORES_AVAILABLE),
|
|
|
|
MENU_ENUM_LABEL_NO_CORES_AVAILABLE,
|
|
|
|
0, 0, 0);
|
|
|
|
info->download_core = true;
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2016-12-12 15:20:43 +00:00
|
|
|
|
|
|
|
if (cores_names_size != 0)
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2016-12-12 18:22:46 +00:00
|
|
|
unsigned j = 0;
|
2016-09-25 04:13:33 +00:00
|
|
|
struct string_list *cores_paths =
|
2016-05-23 19:19:28 +00:00
|
|
|
string_list_new_special(STRING_LIST_SUPPORTED_CORES_PATHS,
|
|
|
|
(void*)menu->deferred_path,
|
|
|
|
&cores_paths_len, &cores_paths_size);
|
|
|
|
|
2015-10-26 20:03:28 +00:00
|
|
|
for (i = 0; i < cores_names_size; i++)
|
2015-06-22 03:39:04 +00:00
|
|
|
{
|
2016-12-12 17:53:55 +00:00
|
|
|
if ( !path_is_empty(RARCH_PATH_CORE) &&
|
2016-12-13 05:32:46 +00:00
|
|
|
string_is_equal(cores_paths->elems[i].data, path_get(RARCH_PATH_CORE)))
|
2016-12-12 17:53:55 +00:00
|
|
|
{
|
2016-12-12 18:22:46 +00:00
|
|
|
strlcpy(new_path_entry, cores_paths->elems[i].data, sizeof(new_path_entry));
|
|
|
|
snprintf(new_entry, sizeof(new_entry), "Current core (%s)", cores_names->elems[i].data);
|
2016-12-13 05:32:46 +00:00
|
|
|
if (type == DISPLAYLIST_CORES_COLLECTION_SUPPORTED)
|
|
|
|
{
|
|
|
|
new_lbl_entry[0] = '\0';
|
|
|
|
new_type = MENU_ENUM_LABEL_FILE_BROWSER_CORE_SELECT_FROM_COLLECTION_CURRENT_CORE;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
strlcpy(new_lbl_entry, cores_paths->elems[i].data, sizeof(new_lbl_entry));
|
|
|
|
new_type = MENU_ENUM_LABEL_DETECT_CORE_LIST_OK_CURRENT_CORE;
|
|
|
|
}
|
2016-12-12 17:53:55 +00:00
|
|
|
}
|
|
|
|
else
|
2016-12-12 18:22:46 +00:00
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case DISPLAYLIST_CORES_COLLECTION_SUPPORTED:
|
|
|
|
menu_entries_append_enum(info->list, cores_paths->elems[i].data, "",
|
|
|
|
MENU_ENUM_LABEL_FILE_BROWSER_CORE_SELECT_FROM_COLLECTION,
|
|
|
|
FILE_TYPE_CORE, 0, 0);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
menu_entries_append_enum(info->list, cores_paths->elems[i].data,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_DETECT_CORE_LIST_OK),
|
|
|
|
MENU_ENUM_LABEL_DETECT_CORE_LIST_OK,
|
|
|
|
FILE_TYPE_CORE, 0, 0);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
menu_entries_set_alt_at_offset(info->list, j,
|
2016-12-12 17:53:55 +00:00
|
|
|
cores_names->elems[i].data);
|
2016-12-12 18:22:46 +00:00
|
|
|
j++;
|
|
|
|
}
|
2015-06-22 03:39:04 +00:00
|
|
|
}
|
2015-10-26 20:03:28 +00:00
|
|
|
|
|
|
|
string_list_free(cores_paths);
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
2016-05-23 19:19:28 +00:00
|
|
|
|
|
|
|
string_list_free(cores_names);
|
2016-12-12 15:20:43 +00:00
|
|
|
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CORE_INFO:
|
|
|
|
menu_displaylist_parse_core_info(info);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CORE_OPTIONS:
|
2015-12-09 08:34:19 +00:00
|
|
|
if (runloop_ctl(RUNLOOP_CTL_HAS_CORE_OPTIONS, NULL))
|
2015-05-19 04:32:49 +00:00
|
|
|
{
|
2015-12-13 01:40:39 +00:00
|
|
|
size_t opts = 0;
|
2015-12-09 08:37:54 +00:00
|
|
|
|
|
|
|
runloop_ctl(RUNLOOP_CTL_GET_CORE_OPTION_SIZE, &opts);
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2015-11-15 17:33:34 +00:00
|
|
|
if (settings->game_specific_options)
|
|
|
|
{
|
2015-12-17 22:24:40 +00:00
|
|
|
if (!runloop_ctl(RUNLOOP_CTL_IS_GAME_OPTIONS_ACTIVE, NULL))
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-27 22:51:47 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_OPTIONS_CREATE),
|
|
|
|
msg_hash_to_str(
|
|
|
|
MENU_ENUM_LABEL_GAME_SPECIFIC_OPTIONS_CREATE),
|
|
|
|
MENU_ENUM_LABEL_GAME_SPECIFIC_OPTIONS_CREATE,
|
2015-12-17 22:24:40 +00:00
|
|
|
MENU_SETTINGS_CORE_OPTION_CREATE, 0, 0);
|
|
|
|
else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(
|
2016-06-27 22:51:47 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_OPTIONS_IN_USE),
|
|
|
|
msg_hash_to_str(
|
|
|
|
MENU_ENUM_LABEL_GAME_SPECIFIC_OPTIONS_IN_USE),
|
|
|
|
MENU_ENUM_LABEL_GAME_SPECIFIC_OPTIONS_IN_USE,
|
2015-12-17 22:43:10 +00:00
|
|
|
MENU_SETTINGS_CORE_OPTION_CREATE, 0, 0);
|
2015-11-15 17:33:34 +00:00
|
|
|
}
|
2015-06-28 15:22:53 +00:00
|
|
|
if (opts == 0)
|
|
|
|
{
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE_OPTIONS_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_CORE_OPTIONS_AVAILABLE),
|
2016-06-16 13:43:05 +00:00
|
|
|
MENU_ENUM_LABEL_NO_CORE_OPTIONS_AVAILABLE,
|
2015-06-28 15:22:53 +00:00
|
|
|
MENU_SETTINGS_CORE_OPTION_NONE, 0, 0);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-04-06 00:30:20 +00:00
|
|
|
core_option_manager_t *coreopts = NULL;
|
|
|
|
|
2016-05-15 08:09:41 +00:00
|
|
|
runloop_ctl(RUNLOOP_CTL_CORE_OPTIONS_LIST_GET, &coreopts);
|
2016-04-06 00:30:20 +00:00
|
|
|
|
2015-06-28 15:22:53 +00:00
|
|
|
for (i = 0; i < opts; i++)
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-05-09 23:21:55 +00:00
|
|
|
core_option_manager_get_desc(coreopts, i), "",
|
2016-09-25 04:13:33 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_OPTION_ENTRY,
|
2015-06-28 15:22:53 +00:00
|
|
|
MENU_SETTINGS_CORE_OPTION_START + i, 0, 0);
|
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
}
|
|
|
|
else
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE_OPTIONS_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_NO_CORE_OPTIONS_AVAILABLE),
|
2016-06-16 13:43:05 +00:00
|
|
|
MENU_ENUM_LABEL_NO_CORE_OPTIONS_AVAILABLE,
|
2015-06-10 20:43:06 +00:00
|
|
|
MENU_SETTINGS_CORE_OPTION_NONE, 0, 0);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
2015-09-06 17:29:04 +00:00
|
|
|
case DISPLAYLIST_DATABASES:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_RDB;
|
2016-06-28 09:22:44 +00:00
|
|
|
strlcpy(info->exts,
|
|
|
|
file_path_str(FILE_PATH_RDB_EXTENSION),
|
|
|
|
sizeof(info->exts));
|
2016-07-09 00:18:58 +00:00
|
|
|
info->enum_idx = MENU_ENUM_LABEL_CONTENT_COLLECTION_LIST;
|
2016-04-28 18:49:13 +00:00
|
|
|
strlcpy(info->path, settings->path.content_database, sizeof(info->path));
|
2015-09-06 17:29:04 +00:00
|
|
|
break;
|
2015-09-06 17:31:43 +00:00
|
|
|
case DISPLAYLIST_ARCHIVE_ACTION:
|
2016-01-18 22:17:25 +00:00
|
|
|
#ifdef HAVE_COMPRESSION
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OPEN_ARCHIVE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_OPEN_ARCHIVE),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_OPEN_ARCHIVE,
|
2015-09-06 17:31:43 +00:00
|
|
|
0, 0, 0);
|
2016-01-18 22:17:25 +00:00
|
|
|
#endif
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_ARCHIVE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_LOAD_ARCHIVE),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_LOAD_ARCHIVE,
|
2015-09-06 17:31:43 +00:00
|
|
|
0, 0, 0);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-09-06 17:31:43 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_ARCHIVE_ACTION_DETECT_CORE:
|
2016-01-18 22:17:25 +00:00
|
|
|
#ifdef HAVE_COMPRESSION
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OPEN_ARCHIVE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_OPEN_ARCHIVE_DETECT_CORE),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_OPEN_ARCHIVE_DETECT_CORE,
|
2015-09-06 17:31:43 +00:00
|
|
|
0, 0, 0);
|
2016-01-18 22:17:25 +00:00
|
|
|
#endif
|
2016-07-12 23:17:09 +00:00
|
|
|
menu_entries_append_enum(info->list,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOAD_ARCHIVE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_LOAD_ARCHIVE_DETECT_CORE),
|
2016-06-15 12:23:13 +00:00
|
|
|
MENU_ENUM_LABEL_LOAD_ARCHIVE_DETECT_CORE,
|
2015-09-06 17:31:43 +00:00
|
|
|
0, 0, 0);
|
2015-10-21 23:23:22 +00:00
|
|
|
info->need_push = true;
|
2015-09-06 17:31:43 +00:00
|
|
|
break;
|
2015-09-06 17:49:51 +00:00
|
|
|
case DISPLAYLIST_DATABASE_CURSORS:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_CURSOR;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "dbc", sizeof(info->exts));
|
2016-04-28 17:26:02 +00:00
|
|
|
strlcpy(info->path, settings->directory.cursor, sizeof(info->path));
|
2015-09-06 17:49:51 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CORES:
|
2016-02-03 13:36:34 +00:00
|
|
|
{
|
2016-10-09 07:15:56 +00:00
|
|
|
char ext_name[PATH_MAX_LENGTH];
|
|
|
|
|
|
|
|
ext_name[0] = '\0';
|
2016-02-03 13:36:34 +00:00
|
|
|
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_PLAIN;
|
2016-02-03 13:36:34 +00:00
|
|
|
if (frontend_driver_get_core_extension(ext_name, sizeof(ext_name)))
|
|
|
|
strlcpy(info->exts, ext_name, sizeof(info->exts));
|
|
|
|
}
|
2015-09-06 17:49:51 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CONFIG_FILES:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_CONFIG;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "cfg", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_SHADER_PRESET:
|
2016-07-23 09:16:07 +00:00
|
|
|
{
|
|
|
|
union string_list_elem_attr attr = {0};
|
|
|
|
struct string_list *str_list = string_list_new();
|
|
|
|
|
2016-07-24 09:32:45 +00:00
|
|
|
(void)attr;
|
|
|
|
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-07-23 09:16:07 +00:00
|
|
|
info->type_default = FILE_TYPE_SHADER_PRESET;
|
|
|
|
|
|
|
|
#ifdef HAVE_CG
|
|
|
|
string_list_append(str_list, "cgp", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_GLSL
|
|
|
|
string_list_append(str_list, "glslp", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_VULKAN
|
|
|
|
string_list_append(str_list, "slangp", attr);
|
|
|
|
#endif
|
|
|
|
string_list_join_concat(info->exts, sizeof(info->exts), str_list, "|");
|
|
|
|
string_list_free(str_list);
|
|
|
|
}
|
2015-09-06 17:49:51 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_SHADER_PASS:
|
2016-07-23 09:16:07 +00:00
|
|
|
{
|
|
|
|
union string_list_elem_attr attr = {0};
|
|
|
|
struct string_list *str_list = string_list_new();
|
|
|
|
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-07-23 09:16:07 +00:00
|
|
|
info->type_default = FILE_TYPE_SHADER;
|
|
|
|
|
2016-07-24 09:32:45 +00:00
|
|
|
(void)attr;
|
|
|
|
|
2016-07-23 09:16:07 +00:00
|
|
|
#ifdef HAVE_CG
|
|
|
|
string_list_append(str_list, "cg", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_GLSL
|
|
|
|
string_list_append(str_list, "glsl", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_VULKAN
|
|
|
|
string_list_append(str_list, "slang", attr);
|
|
|
|
#endif
|
|
|
|
string_list_join_concat(info->exts, sizeof(info->exts), str_list, "|");
|
|
|
|
string_list_free(str_list);
|
|
|
|
}
|
2015-09-06 17:49:51 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_VIDEO_FILTERS:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_VIDEOFILTER;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "filt", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_IMAGES:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_IMAGE;
|
2016-07-23 09:13:05 +00:00
|
|
|
{
|
|
|
|
union string_list_elem_attr attr = {0};
|
|
|
|
struct string_list *str_list = string_list_new();
|
|
|
|
|
|
|
|
#ifdef HAVE_RBMP
|
|
|
|
string_list_append(str_list, "bmp", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_RPNG
|
|
|
|
string_list_append(str_list, "png", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_RJPEG
|
|
|
|
string_list_append(str_list, "jpeg", attr);
|
|
|
|
string_list_append(str_list, "jpg", attr);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_RTGA
|
|
|
|
string_list_append(str_list, "tga", attr);
|
|
|
|
#endif
|
|
|
|
string_list_join_concat(info->exts, sizeof(info->exts), str_list, "|");
|
|
|
|
string_list_free(str_list);
|
|
|
|
}
|
2015-09-06 17:49:51 +00:00
|
|
|
break;
|
|
|
|
case DISPLAYLIST_AUDIO_FILTERS:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_AUDIOFILTER;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "dsp", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CHEAT_FILES:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_CHEAT;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "cht", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_CONTENT_HISTORY:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_PLAIN;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "lpl", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_FONTS:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_FONT;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "ttf", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_OVERLAYS:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_OVERLAY;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "cfg", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_RECORD_CONFIG_FILES:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_RECORD_CONFIG;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "cfg", sizeof(info->exts));
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_REMAP_FILES:
|
2016-12-12 23:50:39 +00:00
|
|
|
filebrowser_types = FILEBROWSER_NONE;
|
2016-06-20 13:50:37 +00:00
|
|
|
info->type_default = FILE_TYPE_REMAP;
|
2015-09-06 17:49:51 +00:00
|
|
|
strlcpy(info->exts, "rmp", sizeof(info->exts));
|
2015-05-19 04:32:49 +00:00
|
|
|
break;
|
2016-02-24 21:56:41 +00:00
|
|
|
default:
|
|
|
|
break;
|
2015-05-18 19:02:03 +00:00
|
|
|
}
|
2015-05-19 04:32:49 +00:00
|
|
|
|
2015-10-19 04:38:36 +00:00
|
|
|
switch (type)
|
2015-10-19 04:36:44 +00:00
|
|
|
{
|
2016-07-09 10:20:22 +00:00
|
|
|
case DISPLAYLIST_DATABASE_PLAYLISTS_HORIZONTAL:
|
2016-07-12 21:19:19 +00:00
|
|
|
if (menu_displaylist_parse_playlists(info, true) == 0)
|
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case DISPLAYLIST_DATABASE_PLAYLISTS:
|
|
|
|
if (menu_displaylist_parse_playlists(info, false) == 0)
|
2016-07-09 10:20:22 +00:00
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
|
|
|
break;
|
2016-07-16 15:10:21 +00:00
|
|
|
case DISPLAYLIST_CORES:
|
|
|
|
if (menu_displaylist_parse_cores(menu, info, type) == 0)
|
|
|
|
{
|
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
|
|
|
}
|
2016-11-06 00:08:56 +00:00
|
|
|
info->push_builtin_cores = true;
|
2016-07-16 15:10:21 +00:00
|
|
|
break;
|
2016-07-09 22:38:14 +00:00
|
|
|
case DISPLAYLIST_DATABASES:
|
2015-10-19 04:38:36 +00:00
|
|
|
case DISPLAYLIST_SHADER_PASS:
|
|
|
|
case DISPLAYLIST_SHADER_PRESET:
|
|
|
|
case DISPLAYLIST_DATABASE_CURSORS:
|
|
|
|
case DISPLAYLIST_VIDEO_FILTERS:
|
|
|
|
case DISPLAYLIST_AUDIO_FILTERS:
|
|
|
|
case DISPLAYLIST_IMAGES:
|
|
|
|
case DISPLAYLIST_OVERLAYS:
|
|
|
|
case DISPLAYLIST_FONTS:
|
|
|
|
case DISPLAYLIST_CHEAT_FILES:
|
|
|
|
case DISPLAYLIST_REMAP_FILES:
|
|
|
|
case DISPLAYLIST_RECORD_CONFIG_FILES:
|
|
|
|
case DISPLAYLIST_CONFIG_FILES:
|
2016-07-16 15:17:58 +00:00
|
|
|
extensions_honored = true;
|
|
|
|
/* fall-through */
|
|
|
|
case DISPLAYLIST_DEFAULT:
|
2016-07-26 07:15:20 +00:00
|
|
|
case DISPLAYLIST_CORES_DETECTED:
|
2015-10-19 04:38:36 +00:00
|
|
|
case DISPLAYLIST_CONTENT_HISTORY:
|
2016-12-16 07:59:05 +00:00
|
|
|
if (filebrowser_parse(menu, info, type, extensions_honored) == 0)
|
2015-10-19 04:38:36 +00:00
|
|
|
{
|
2016-07-09 10:20:22 +00:00
|
|
|
info->need_refresh = true;
|
|
|
|
info->need_push = true;
|
2015-10-19 04:38:36 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-02-24 21:56:41 +00:00
|
|
|
default:
|
|
|
|
break;
|
2015-10-19 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
2016-02-24 22:05:54 +00:00
|
|
|
if (ret != 0)
|
2016-05-02 15:28:20 +00:00
|
|
|
goto error;
|
2016-02-24 22:05:54 +00:00
|
|
|
|
|
|
|
return true;
|
2016-05-02 15:28:20 +00:00
|
|
|
|
|
|
|
error:
|
|
|
|
return false;
|
2015-10-21 23:38:41 +00:00
|
|
|
}
|