2014-09-12 03:54:58 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2017-01-22 12:40:32 +00:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
|
|
|
* Copyright (C) 2014-2017 - Jean-André Santoni
|
|
|
|
* Copyright (C) 2016-2017 - Brad Parker
|
2014-09-12 03:54:58 +00:00
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2016-05-01 13:46:42 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <direct.h>
|
|
|
|
#else
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2017-12-11 11:15:00 +00:00
|
|
|
#include <libretro.h>
|
2016-03-20 13:53:54 +00:00
|
|
|
#include <lists/file_list.h>
|
2015-06-02 18:26:27 +00:00
|
|
|
#include <file/file_path.h>
|
2015-12-26 06:37:44 +00:00
|
|
|
#include <string/stdstring.h>
|
2016-04-27 20:29:58 +00:00
|
|
|
#include <lists/string_list.h>
|
2017-10-30 21:08:54 +00:00
|
|
|
#include <streams/file_stream.h>
|
2018-01-01 05:53:31 +00:00
|
|
|
#include <audio/audio_resampler.h>
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-09-01 03:36:52 +00:00
|
|
|
#include <compat/strl.h>
|
|
|
|
|
2016-12-12 12:02:29 +00:00
|
|
|
#include <audio/audio_resampler.h>
|
|
|
|
|
2016-09-08 03:43:10 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../config.h"
|
|
|
|
#endif
|
|
|
|
|
2017-04-25 19:58:53 +00:00
|
|
|
#include "../config.def.h"
|
|
|
|
#include "../config.def.keybinds.h"
|
2017-04-25 16:18:37 +00:00
|
|
|
|
2016-09-11 19:06:16 +00:00
|
|
|
#if defined(__CELLOS_LV2__)
|
|
|
|
#include <sdk_version.h>
|
|
|
|
|
|
|
|
#if (CELL_SDK_VERSION > 0x340000)
|
|
|
|
#include <sysutil/sysutil_bgmplayback.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2016-02-03 13:36:34 +00:00
|
|
|
#include "../frontend/frontend_driver.h"
|
2015-09-06 12:59:20 +00:00
|
|
|
|
2016-09-15 18:35:39 +00:00
|
|
|
#include "widgets/menu_input_bind_dialog.h"
|
|
|
|
|
2016-02-03 13:36:34 +00:00
|
|
|
#include "menu_setting.h"
|
2015-12-06 16:55:27 +00:00
|
|
|
#include "menu_driver.h"
|
2015-09-26 23:10:15 +00:00
|
|
|
#include "menu_animation.h"
|
2015-06-13 17:12:10 +00:00
|
|
|
#include "menu_input.h"
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-09-06 04:11:44 +00:00
|
|
|
#include "../core.h"
|
2016-09-01 03:36:52 +00:00
|
|
|
#include "../configuration.h"
|
2016-06-19 22:31:13 +00:00
|
|
|
#include "../msg_hash.h"
|
2015-12-06 21:48:57 +00:00
|
|
|
#include "../defaults.h"
|
2015-06-02 18:26:27 +00:00
|
|
|
#include "../driver.h"
|
2016-09-17 12:57:53 +00:00
|
|
|
#include "../dirs.h"
|
2016-09-17 10:35:29 +00:00
|
|
|
#include "../paths.h"
|
2015-06-02 18:26:27 +00:00
|
|
|
#include "../dynamic.h"
|
2016-12-12 11:29:37 +00:00
|
|
|
#include "../list_special.h"
|
2016-09-01 03:36:52 +00:00
|
|
|
#include "../verbosity.h"
|
2015-12-05 14:55:26 +00:00
|
|
|
#include "../camera/camera_driver.h"
|
2016-09-21 14:06:14 +00:00
|
|
|
#include "../wifi/wifi_driver.h"
|
2015-12-05 14:47:33 +00:00
|
|
|
#include "../location/location_driver.h"
|
2015-12-05 15:12:29 +00:00
|
|
|
#include "../record/record_driver.h"
|
2015-11-23 18:40:09 +00:00
|
|
|
#include "../audio/audio_driver.h"
|
2017-08-31 00:25:04 +00:00
|
|
|
#include "../input/input_driver.h"
|
2016-12-01 19:38:20 +00:00
|
|
|
#include "../tasks/tasks_internal.h"
|
2015-06-02 18:26:27 +00:00
|
|
|
#include "../config.def.h"
|
2016-08-10 05:18:55 +00:00
|
|
|
#include "../ui/ui_companion_driver.h"
|
2016-05-10 06:53:14 +00:00
|
|
|
#include "../performance_counters.h"
|
2016-08-29 01:07:20 +00:00
|
|
|
#include "../setting_list.h"
|
2016-03-21 22:46:36 +00:00
|
|
|
#include "../lakka.h"
|
2016-08-01 18:54:16 +00:00
|
|
|
#include "../retroarch.h"
|
2017-12-11 23:12:32 +00:00
|
|
|
#include "../gfx/video_display_server.h"
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-02-09 16:41:19 +00:00
|
|
|
#include "../tasks/tasks_internal.h"
|
|
|
|
|
2017-09-08 22:02:38 +00:00
|
|
|
enum settings_list_type
|
|
|
|
{
|
|
|
|
SETTINGS_LIST_NONE = 0,
|
|
|
|
SETTINGS_LIST_MAIN_MENU,
|
|
|
|
SETTINGS_LIST_DRIVERS,
|
|
|
|
SETTINGS_LIST_CORE,
|
|
|
|
SETTINGS_LIST_CONFIGURATION,
|
|
|
|
SETTINGS_LIST_LOGGING,
|
|
|
|
SETTINGS_LIST_SAVING,
|
|
|
|
SETTINGS_LIST_REWIND,
|
|
|
|
SETTINGS_LIST_VIDEO,
|
|
|
|
SETTINGS_LIST_AUDIO,
|
|
|
|
SETTINGS_LIST_INPUT,
|
|
|
|
SETTINGS_LIST_INPUT_HOTKEY,
|
|
|
|
SETTINGS_LIST_RECORDING,
|
|
|
|
SETTINGS_LIST_FRAME_THROTTLING,
|
|
|
|
SETTINGS_LIST_FONT,
|
|
|
|
SETTINGS_LIST_OVERLAY,
|
|
|
|
SETTINGS_LIST_MENU,
|
|
|
|
SETTINGS_LIST_MENU_FILE_BROWSER,
|
|
|
|
SETTINGS_LIST_MULTIMEDIA,
|
|
|
|
SETTINGS_LIST_USER_INTERFACE,
|
|
|
|
SETTINGS_LIST_PLAYLIST,
|
|
|
|
SETTINGS_LIST_CHEEVOS,
|
|
|
|
SETTINGS_LIST_CORE_UPDATER,
|
|
|
|
SETTINGS_LIST_NETPLAY,
|
|
|
|
SETTINGS_LIST_LAKKA_SERVICES,
|
|
|
|
SETTINGS_LIST_USER,
|
|
|
|
SETTINGS_LIST_USER_ACCOUNTS,
|
|
|
|
SETTINGS_LIST_USER_ACCOUNTS_CHEEVOS,
|
|
|
|
SETTINGS_LIST_DIRECTORY,
|
|
|
|
SETTINGS_LIST_PRIVACY
|
|
|
|
};
|
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
struct bool_entry
|
|
|
|
{
|
2017-09-08 23:10:00 +00:00
|
|
|
bool default_value;
|
|
|
|
bool *target;
|
|
|
|
uint32_t flags;
|
2016-10-26 05:32:42 +00:00
|
|
|
enum msg_hash_enums name_enum_idx;
|
|
|
|
enum msg_hash_enums SHORT_enum_idx;
|
|
|
|
enum msg_hash_enums off_enum_idx;
|
|
|
|
enum msg_hash_enums on_enum_idx;
|
|
|
|
};
|
|
|
|
|
2016-10-26 05:58:21 +00:00
|
|
|
struct string_options_entry
|
|
|
|
{
|
|
|
|
enum msg_hash_enums name_enum_idx;
|
|
|
|
enum msg_hash_enums SHORT_enum_idx;
|
|
|
|
const char *default_value;
|
|
|
|
const char *values;
|
2017-09-08 22:02:38 +00:00
|
|
|
char *target;
|
|
|
|
size_t len;
|
2016-10-26 05:58:21 +00:00
|
|
|
};
|
|
|
|
|
2016-09-01 15:37:29 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
2016-09-01 06:08:43 +00:00
|
|
|
static void setting_get_string_representation_cheevos_password(void *data,
|
|
|
|
char *s, size_t len)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
2016-12-14 15:19:32 +00:00
|
|
|
if (!string_is_empty(setting->value.target.string))
|
2017-01-25 01:44:36 +00:00
|
|
|
strlcpy(s, "********", len);
|
2016-09-01 06:08:43 +00:00
|
|
|
else
|
|
|
|
*setting->value.target.string = '\0';
|
|
|
|
}
|
2016-09-01 15:37:29 +00:00
|
|
|
#endif
|
2016-09-01 06:08:43 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void setting_get_string_representation_uint_video_monitor_index(void *data,
|
|
|
|
char *s, size_t len)
|
2015-09-28 00:28:34 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2015-10-11 11:10:46 +00:00
|
|
|
if (!setting)
|
2016-08-29 01:07:20 +00:00
|
|
|
return;
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
if (*setting->value.target.unsigned_integer)
|
|
|
|
snprintf(s, len, "%u",
|
|
|
|
*setting->value.target.unsigned_integer);
|
|
|
|
else
|
|
|
|
strlcpy(s, "0 (Auto)", len);
|
2015-09-28 00:10:44 +00:00
|
|
|
}
|
|
|
|
|
2016-11-07 20:11:18 +00:00
|
|
|
static void setting_get_string_representation_uint_custom_viewport_width(void *data,
|
|
|
|
char *s, size_t len)
|
|
|
|
{
|
2016-11-08 18:42:58 +00:00
|
|
|
struct retro_game_geometry *geom = NULL;
|
|
|
|
struct retro_system_av_info *av_info = NULL;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-11-07 20:11:18 +00:00
|
|
|
if (!setting)
|
|
|
|
return;
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2016-11-08 18:42:58 +00:00
|
|
|
av_info = video_viewport_get_system_av_info();
|
|
|
|
geom = (struct retro_game_geometry*)&av_info->geometry;
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2016-11-07 20:11:18 +00:00
|
|
|
if (*setting->value.target.unsigned_integer%geom->base_width == 0)
|
|
|
|
snprintf(s, len, "%u (%ux)",
|
|
|
|
*setting->value.target.unsigned_integer,
|
|
|
|
*setting->value.target.unsigned_integer / geom->base_width);
|
|
|
|
else
|
|
|
|
snprintf(s, len, "%u",
|
|
|
|
*setting->value.target.unsigned_integer);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void setting_get_string_representation_uint_custom_viewport_height(void *data,
|
|
|
|
char *s, size_t len)
|
|
|
|
{
|
2016-11-08 18:42:58 +00:00
|
|
|
struct retro_game_geometry *geom = NULL;
|
|
|
|
struct retro_system_av_info *av_info = NULL;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-11-07 20:11:18 +00:00
|
|
|
if (!setting)
|
|
|
|
return;
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2016-11-08 18:42:58 +00:00
|
|
|
av_info = video_viewport_get_system_av_info();
|
|
|
|
geom = (struct retro_game_geometry*)&av_info->geometry;
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2016-11-07 20:11:18 +00:00
|
|
|
if (*setting->value.target.unsigned_integer%geom->base_height == 0)
|
|
|
|
snprintf(s, len, "%u (%ux)",
|
|
|
|
*setting->value.target.unsigned_integer,
|
|
|
|
*setting->value.target.unsigned_integer / geom->base_height);
|
|
|
|
else
|
|
|
|
snprintf(s, len, "%u",
|
|
|
|
*setting->value.target.unsigned_integer);
|
|
|
|
}
|
|
|
|
|
2017-05-24 14:25:36 +00:00
|
|
|
#ifdef HAVE_WASAPI
|
|
|
|
static void setting_get_string_representation_int_audio_wasapi_sh_buffer_length(void *data,
|
|
|
|
char *s, size_t len)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (*setting->value.target.integer > 0)
|
|
|
|
snprintf(s, len, "%d",
|
|
|
|
*setting->value.target.integer);
|
|
|
|
else if (*setting->value.target.integer == 0)
|
|
|
|
strlcpy(s, "0 (Off)", len);
|
|
|
|
else
|
|
|
|
strlcpy(s, "Auto", len);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_uint_action_left_custom_viewport_width(void *data, bool wraparound)
|
2015-09-28 00:10:44 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
|
|
|
|
|
|
|
if (!settings || !av_info)
|
|
|
|
return -1;
|
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-11-21 15:32:22 +00:00
|
|
|
|
|
|
|
if (custom->width <= 1)
|
|
|
|
custom->width = 1;
|
2017-04-27 22:53:06 +00:00
|
|
|
else if (settings->bools.video_scale_integer)
|
2016-11-13 22:38:48 +00:00
|
|
|
{
|
|
|
|
if (custom->width > geom->base_width)
|
|
|
|
custom->width -= geom->base_width;
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
else
|
|
|
|
custom->width -= 1;
|
|
|
|
|
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
|
|
|
|
|
|
|
return 0;
|
2015-09-28 00:10:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_uint_action_right_custom_viewport_width(void *data, bool wraparound)
|
2015-09-28 00:10:44 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
|
|
|
|
|
|
|
if (!settings || !av_info)
|
|
|
|
return -1;
|
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
if (settings->bools.video_scale_integer)
|
2015-11-21 15:32:22 +00:00
|
|
|
custom->width += geom->base_width;
|
|
|
|
else
|
|
|
|
custom->width += 1;
|
|
|
|
|
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
|
|
|
|
|
|
|
return 0;
|
2015-09-28 00:10:44 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_uint_action_left_custom_viewport_height(void *data, bool wraparound)
|
2015-06-03 09:59:14 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
2015-06-06 17:34:23 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!settings || !av_info)
|
|
|
|
return -1;
|
2015-06-03 09:59:14 +00:00
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-06-13 17:11:18 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (custom->height <= 1)
|
|
|
|
custom->height = 1;
|
2017-04-27 22:53:06 +00:00
|
|
|
else if (settings->bools.video_scale_integer)
|
2016-11-13 22:38:48 +00:00
|
|
|
{
|
|
|
|
if (custom->height > geom->base_height)
|
|
|
|
custom->height -= geom->base_height;
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
else
|
|
|
|
custom->height -= 1;
|
2015-09-28 00:32:19 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
2015-06-13 17:11:18 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-06-03 09:59:14 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_uint_action_right_custom_viewport_height(void *data, bool wraparound)
|
|
|
|
{
|
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
2015-06-03 09:59:14 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!settings || !av_info)
|
|
|
|
return -1;
|
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
if (settings->bools.video_scale_integer)
|
2015-11-21 15:32:22 +00:00
|
|
|
custom->height += geom->base_height;
|
|
|
|
else
|
|
|
|
custom->height += 1;
|
|
|
|
|
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
2015-06-03 09:59:14 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2014-10-28 18:08:18 +00:00
|
|
|
}
|
2014-09-24 05:56:47 +00:00
|
|
|
|
2016-08-06 01:05:27 +00:00
|
|
|
#if !defined(RARCH_CONSOLE)
|
2016-04-27 20:29:58 +00:00
|
|
|
static int setting_string_action_left_audio_device(void *data, bool wraparound)
|
|
|
|
{
|
2016-04-27 20:40:02 +00:00
|
|
|
int audio_device_index;
|
|
|
|
struct string_list *ptr = NULL;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-05-08 14:02:46 +00:00
|
|
|
|
|
|
|
if (!audio_driver_get_devices_list((void**)&ptr))
|
2016-04-27 20:40:02 +00:00
|
|
|
return -1;
|
2016-04-27 20:29:58 +00:00
|
|
|
|
|
|
|
if (!ptr)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
/* Get index in the string list */
|
2016-04-27 20:40:02 +00:00
|
|
|
audio_device_index = string_list_find_elem(ptr,setting->value.target.string) - 1;
|
2016-04-27 20:29:58 +00:00
|
|
|
audio_device_index--;
|
|
|
|
|
|
|
|
/* Reset index if needed */
|
|
|
|
if (audio_device_index < 0)
|
2017-02-26 09:33:03 +00:00
|
|
|
audio_device_index = (int)(ptr->size - 1);
|
2016-04-27 20:29:58 +00:00
|
|
|
|
|
|
|
strlcpy(setting->value.target.string, ptr->elems[audio_device_index].data, setting->size);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int setting_string_action_right_audio_device(void *data, bool wraparound)
|
|
|
|
{
|
2016-04-27 20:40:02 +00:00
|
|
|
int audio_device_index;
|
|
|
|
struct string_list *ptr = NULL;
|
2016-04-27 20:29:58 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-05-08 14:02:46 +00:00
|
|
|
|
|
|
|
if (!audio_driver_get_devices_list((void**)&ptr))
|
2016-04-27 20:40:02 +00:00
|
|
|
return -1;
|
2016-04-27 20:29:58 +00:00
|
|
|
|
|
|
|
if (!ptr)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
/* Get index in the string list */
|
2016-04-27 20:40:02 +00:00
|
|
|
audio_device_index = string_list_find_elem(ptr,setting->value.target.string) -1;
|
2016-04-27 20:29:58 +00:00
|
|
|
audio_device_index++;
|
|
|
|
|
|
|
|
/* Reset index if needed */
|
2016-05-14 14:49:29 +00:00
|
|
|
if (audio_device_index == (signed)ptr->size)
|
2016-04-27 20:29:58 +00:00
|
|
|
audio_device_index = 0;
|
|
|
|
|
|
|
|
strlcpy(setting->value.target.string, ptr->elems[audio_device_index].data, setting->size);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2016-08-06 01:05:27 +00:00
|
|
|
#endif
|
2016-04-27 20:29:58 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_string_action_left_driver(void *data,
|
|
|
|
bool wraparound)
|
|
|
|
{
|
2016-02-01 11:56:17 +00:00
|
|
|
driver_ctx_info_t drv;
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
2016-02-01 11:56:17 +00:00
|
|
|
drv.label = setting->name;
|
2016-03-24 18:55:33 +00:00
|
|
|
drv.s = setting->value.target.string;
|
2016-02-01 11:56:17 +00:00
|
|
|
drv.len = setting->size;
|
|
|
|
|
|
|
|
if (!driver_ctl(RARCH_DRIVER_CTL_FIND_PREV, &drv))
|
2017-07-12 01:00:44 +00:00
|
|
|
{
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (settings && settings->bools.menu_navigation_wraparound_enable)
|
|
|
|
{
|
|
|
|
drv.label = setting->name;
|
|
|
|
drv.s = setting->value.target.string;
|
|
|
|
drv.len = setting->size;
|
|
|
|
driver_ctl(RARCH_DRIVER_CTL_FIND_LAST, &drv);
|
|
|
|
}
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2016-03-20 02:07:51 +00:00
|
|
|
if (setting->change_handler)
|
|
|
|
setting->change_handler(setting);
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int setting_string_action_right_driver(void *data,
|
|
|
|
bool wraparound)
|
|
|
|
{
|
2016-02-01 11:56:17 +00:00
|
|
|
driver_ctx_info_t drv;
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
2016-02-01 11:56:17 +00:00
|
|
|
drv.label = setting->name;
|
2016-03-24 18:55:33 +00:00
|
|
|
drv.s = setting->value.target.string;
|
2016-02-01 11:56:17 +00:00
|
|
|
drv.len = setting->size;
|
|
|
|
|
|
|
|
if (!driver_ctl(RARCH_DRIVER_CTL_FIND_NEXT, &drv))
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings && settings->bools.menu_navigation_wraparound_enable)
|
2016-02-01 11:56:17 +00:00
|
|
|
{
|
|
|
|
drv.label = setting->name;
|
2016-03-24 18:55:33 +00:00
|
|
|
drv.s = setting->value.target.string;
|
2016-02-01 11:56:17 +00:00
|
|
|
drv.len = setting->size;
|
|
|
|
driver_ctl(RARCH_DRIVER_CTL_FIND_FIRST, &drv);
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2015-06-03 09:19:26 +00:00
|
|
|
|
2016-03-20 02:07:51 +00:00
|
|
|
if (setting->change_handler)
|
|
|
|
setting->change_handler(setting);
|
|
|
|
|
2015-06-03 09:19:26 +00:00
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void setting_get_string_representation_uint_video_rotation(void *data,
|
2015-11-21 15:32:22 +00:00
|
|
|
char *s, size_t len)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
if (setting)
|
2016-10-28 06:23:54 +00:00
|
|
|
{
|
|
|
|
char rotation_lut[4][32] =
|
|
|
|
{
|
|
|
|
"Normal",
|
|
|
|
"90 deg",
|
|
|
|
"180 deg",
|
|
|
|
"270 deg"
|
|
|
|
};
|
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
strlcpy(s, rotation_lut[*setting->value.target.unsigned_integer],
|
|
|
|
len);
|
2016-10-28 06:23:54 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void setting_get_string_representation_uint_aspect_ratio_index(void *data,
|
2015-11-21 15:32:22 +00:00
|
|
|
char *s, size_t len)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
if (setting)
|
2016-08-29 01:07:20 +00:00
|
|
|
strlcpy(s,
|
|
|
|
aspectratio_lut[*setting->value.target.unsigned_integer].name,
|
|
|
|
len);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void setting_get_string_representation_uint_libretro_device(void *data,
|
2015-11-21 15:32:22 +00:00
|
|
|
char *s, size_t len)
|
|
|
|
{
|
2017-04-25 15:14:46 +00:00
|
|
|
unsigned index_offset, device;
|
2016-08-29 01:07:20 +00:00
|
|
|
const struct retro_controller_description *desc = NULL;
|
|
|
|
const char *name = NULL;
|
2017-04-23 14:41:26 +00:00
|
|
|
rarch_system_info_t *system = runloop_get_system_info();
|
2016-08-29 01:07:20 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
|
|
|
return;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-25 15:14:46 +00:00
|
|
|
index_offset = setting->index_offset;
|
|
|
|
device = input_config_get_device(index_offset);
|
2016-08-29 01:07:20 +00:00
|
|
|
|
2017-04-23 14:41:26 +00:00
|
|
|
if (system)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
if (index_offset < system->ports.size)
|
|
|
|
desc = libretro_find_controller_description(
|
|
|
|
&system->ports.data[index_offset],
|
2017-04-25 15:14:46 +00:00
|
|
|
device);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
if (desc)
|
|
|
|
name = desc->desc;
|
2015-10-11 12:23:32 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
if (!name)
|
|
|
|
{
|
|
|
|
/* Find generic name. */
|
2017-04-25 15:14:46 +00:00
|
|
|
switch (device)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
|
|
|
case RETRO_DEVICE_NONE:
|
2016-06-19 22:31:13 +00:00
|
|
|
name = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NONE);
|
2015-11-21 15:32:22 +00:00
|
|
|
break;
|
|
|
|
case RETRO_DEVICE_JOYPAD:
|
2016-06-19 22:31:13 +00:00
|
|
|
name = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RETROPAD);
|
2015-11-21 15:32:22 +00:00
|
|
|
break;
|
|
|
|
case RETRO_DEVICE_ANALOG:
|
2016-11-21 20:07:52 +00:00
|
|
|
name = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RETROPAD_WITH_ANALOG);
|
2015-11-21 15:32:22 +00:00
|
|
|
break;
|
|
|
|
default:
|
2016-06-19 22:31:13 +00:00
|
|
|
name = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_UNKNOWN);
|
2015-11-21 15:32:22 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2015-09-27 17:19:06 +00:00
|
|
|
|
2016-10-26 04:01:26 +00:00
|
|
|
if (!string_is_empty(name))
|
|
|
|
strlcpy(s, name, len);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void setting_get_string_representation_uint_analog_dpad_mode(void *data,
|
|
|
|
char *s, size_t len)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
const char *modes[3];
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
modes[0] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NONE);
|
|
|
|
modes[1] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LEFT_ANALOG);
|
|
|
|
modes[2] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RIGHT_ANALOG);
|
|
|
|
|
|
|
|
|
|
|
|
if (setting)
|
|
|
|
{
|
2016-10-23 01:25:27 +00:00
|
|
|
unsigned index_offset = setting->index_offset;
|
2017-04-28 19:03:04 +00:00
|
|
|
strlcpy(s, modes[settings->uints.input_analog_dpad_mode
|
2016-08-29 01:07:20 +00:00
|
|
|
[index_offset] % ANALOG_DPAD_LAST], len);
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
#ifdef HAVE_THREADS
|
|
|
|
static void setting_get_string_representation_uint_autosave_interval(void *data,
|
|
|
|
char *s, size_t len)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (*setting->value.target.unsigned_integer)
|
|
|
|
snprintf(s, len, "%u %s",
|
|
|
|
*setting->value.target.unsigned_integer, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SECONDS));
|
|
|
|
else
|
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF), len);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2016-08-29 01:07:20 +00:00
|
|
|
#endif
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
#ifdef HAVE_LANGEXTRA
|
|
|
|
static void setting_get_string_representation_uint_user_language(void *data,
|
|
|
|
char *s, size_t len)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
const char *modes[RETRO_LANGUAGE_LAST];
|
|
|
|
|
2017-04-07 18:15:44 +00:00
|
|
|
modes[RETRO_LANGUAGE_ENGLISH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_ENGLISH);
|
|
|
|
modes[RETRO_LANGUAGE_JAPANESE] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_JAPANESE);
|
|
|
|
modes[RETRO_LANGUAGE_FRENCH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_FRENCH);
|
|
|
|
modes[RETRO_LANGUAGE_SPANISH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_SPANISH);
|
|
|
|
modes[RETRO_LANGUAGE_GERMAN] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_GERMAN);
|
|
|
|
modes[RETRO_LANGUAGE_ITALIAN] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_ITALIAN);
|
|
|
|
modes[RETRO_LANGUAGE_DUTCH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_DUTCH);
|
|
|
|
modes[RETRO_LANGUAGE_PORTUGUESE_BRAZIL] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_PORTUGUESE_BRAZIL);
|
|
|
|
modes[RETRO_LANGUAGE_PORTUGUESE_PORTUGAL] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_PORTUGUESE_PORTUGAL);
|
|
|
|
modes[RETRO_LANGUAGE_RUSSIAN] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_RUSSIAN);
|
|
|
|
modes[RETRO_LANGUAGE_KOREAN] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_KOREAN);
|
|
|
|
modes[RETRO_LANGUAGE_CHINESE_TRADITIONAL] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_CHINESE_TRADITIONAL);
|
|
|
|
modes[RETRO_LANGUAGE_CHINESE_SIMPLIFIED] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_CHINESE_SIMPLIFIED);
|
|
|
|
modes[RETRO_LANGUAGE_ESPERANTO] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_ESPERANTO);
|
|
|
|
modes[RETRO_LANGUAGE_POLISH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_POLISH);
|
|
|
|
modes[RETRO_LANGUAGE_VIETNAMESE] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_VIETNAMESE);
|
2016-08-29 01:07:20 +00:00
|
|
|
|
2017-05-15 18:41:04 +00:00
|
|
|
strlcpy(s, modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], len);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2016-08-29 01:07:20 +00:00
|
|
|
#endif
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void setting_get_string_representation_uint_libretro_log_level(void *data,
|
|
|
|
char *s, size_t len)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-05-23 01:45:25 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
if (setting)
|
|
|
|
{
|
|
|
|
static const char *modes[] = {
|
|
|
|
"0 (Debug)",
|
|
|
|
"1 (Info)",
|
|
|
|
"2 (Warning)",
|
|
|
|
"3 (Error)"
|
|
|
|
};
|
|
|
|
strlcpy(s, modes[*setting->value.target.unsigned_integer],
|
|
|
|
len);
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
enum setting_type menu_setting_get_browser_selection_type(rarch_setting_t *setting)
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
if (!setting)
|
|
|
|
return ST_NONE;
|
|
|
|
return setting->browser_selection_type;
|
2015-09-27 15:49:27 +00:00
|
|
|
}
|
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
static void menu_settings_info_list_free(rarch_setting_info_t *list_info)
|
2015-09-27 16:14:55 +00:00
|
|
|
{
|
2016-08-29 01:07:20 +00:00
|
|
|
if (list_info)
|
|
|
|
free(list_info);
|
|
|
|
}
|
2016-05-23 01:45:25 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
void menu_settings_list_current_add_range(
|
|
|
|
rarch_setting_t **list,
|
|
|
|
rarch_setting_info_t *list_info,
|
|
|
|
float min, float max, float step,
|
|
|
|
bool enforce_minrange_enable, bool enforce_maxrange_enable)
|
|
|
|
{
|
2017-09-08 22:02:38 +00:00
|
|
|
unsigned idx = list_info->index - 1;
|
2015-09-27 16:14:55 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
(*list)[idx].min = min;
|
|
|
|
(*list)[idx].step = step;
|
|
|
|
(*list)[idx].max = max;
|
|
|
|
(*list)[idx].enforce_minrange = enforce_minrange_enable;
|
|
|
|
(*list)[idx].enforce_maxrange = enforce_maxrange_enable;
|
2015-09-27 16:14:55 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
(*list)[list_info->index - 1].flags |= SD_FLAG_HAS_RANGE;
|
|
|
|
}
|
2015-09-27 17:19:06 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static void menu_settings_list_current_add_values(
|
|
|
|
rarch_setting_t **list,
|
|
|
|
rarch_setting_info_t *list_info,
|
|
|
|
const char *values)
|
|
|
|
{
|
|
|
|
unsigned idx = list_info->index - 1;
|
|
|
|
(*list)[idx].values = values;
|
2015-09-27 16:14:55 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
void menu_settings_list_current_add_cmd(
|
|
|
|
rarch_setting_t **list,
|
|
|
|
rarch_setting_info_t *list_info,
|
|
|
|
enum event_command values)
|
2015-09-27 16:14:55 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned idx = list_info->index - 1;
|
|
|
|
(*list)[idx].cmd_trigger.idx = values;
|
|
|
|
}
|
2015-09-27 16:14:55 +00:00
|
|
|
|
2016-06-15 15:13:04 +00:00
|
|
|
void menu_settings_list_current_add_enum_idx(
|
2016-06-14 21:07:10 +00:00
|
|
|
rarch_setting_t **list,
|
|
|
|
rarch_setting_info_t *list_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
enum msg_hash_enums enum_idx)
|
2016-06-14 21:07:10 +00:00
|
|
|
{
|
|
|
|
unsigned idx = list_info->index - 1;
|
|
|
|
(*list)[idx].enum_idx = enum_idx;
|
|
|
|
}
|
|
|
|
|
2016-10-26 06:57:55 +00:00
|
|
|
void menu_settings_list_current_add_enum_value_idx(
|
|
|
|
rarch_setting_t **list,
|
|
|
|
rarch_setting_info_t *list_info,
|
|
|
|
enum msg_hash_enums enum_idx)
|
|
|
|
{
|
|
|
|
unsigned idx = list_info->index - 1;
|
|
|
|
(*list)[idx].enum_value_idx = enum_idx;
|
|
|
|
}
|
|
|
|
|
2015-09-27 16:14:55 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
int menu_setting_generic(rarch_setting_t *setting, bool wraparound)
|
|
|
|
{
|
2016-10-23 01:13:49 +00:00
|
|
|
uint64_t flags = setting->flags;
|
2015-11-21 15:32:22 +00:00
|
|
|
if (setting_generic_action_ok_default(setting, wraparound) != 0)
|
|
|
|
return -1;
|
2015-09-27 16:14:55 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (setting->change_handler)
|
|
|
|
setting->change_handler(setting);
|
2015-09-27 16:14:55 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if ((flags & SD_FLAG_EXIT) && setting->cmd_trigger.triggered)
|
|
|
|
{
|
|
|
|
setting->cmd_trigger.triggered = false;
|
|
|
|
return -1;
|
|
|
|
}
|
2015-09-27 17:19:06 +00:00
|
|
|
|
2015-09-27 16:14:55 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_handler(rarch_setting_t *setting, unsigned action)
|
2015-09-27 16:14:55 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
2015-09-27 16:14:55 +00:00
|
|
|
return -1;
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
switch (action)
|
|
|
|
{
|
|
|
|
case MENU_ACTION_UP:
|
|
|
|
if (setting->action_up)
|
|
|
|
return setting->action_up(setting);
|
|
|
|
break;
|
|
|
|
case MENU_ACTION_DOWN:
|
|
|
|
if (setting->action_down)
|
|
|
|
return setting->action_down(setting);
|
|
|
|
break;
|
|
|
|
case MENU_ACTION_LEFT:
|
|
|
|
if (setting->action_left)
|
2016-11-28 00:57:48 +00:00
|
|
|
{
|
|
|
|
int ret = setting->action_left(setting, false);
|
2016-12-01 01:43:53 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH, NULL);
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE, NULL);
|
2016-11-28 00:57:48 +00:00
|
|
|
return ret;
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
break;
|
|
|
|
case MENU_ACTION_RIGHT:
|
|
|
|
if (setting->action_right)
|
2016-11-28 00:57:48 +00:00
|
|
|
{
|
|
|
|
int ret = setting->action_right(setting, false);
|
2016-12-01 01:43:53 +00:00
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH, NULL);
|
|
|
|
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE, NULL);
|
2016-11-28 00:57:48 +00:00
|
|
|
return ret;
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
break;
|
|
|
|
case MENU_ACTION_SELECT:
|
|
|
|
if (setting->action_select)
|
|
|
|
return setting->action_select(setting, true);
|
|
|
|
break;
|
|
|
|
case MENU_ACTION_OK:
|
|
|
|
if (setting->action_ok)
|
|
|
|
return setting->action_ok(setting, false);
|
|
|
|
break;
|
|
|
|
case MENU_ACTION_CANCEL:
|
|
|
|
if (setting->action_cancel)
|
|
|
|
return setting->action_cancel(setting);
|
|
|
|
break;
|
|
|
|
case MENU_ACTION_START:
|
|
|
|
if (setting->action_start)
|
|
|
|
return setting->action_start(setting);
|
|
|
|
break;
|
|
|
|
}
|
2015-09-27 17:19:06 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return -1;
|
2015-09-27 16:14:55 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
int menu_action_handle_setting(rarch_setting_t *setting,
|
|
|
|
unsigned type, unsigned action, bool wraparound)
|
2015-09-27 16:14:55 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
2015-09-27 16:14:55 +00:00
|
|
|
return -1;
|
|
|
|
|
2016-10-31 14:01:40 +00:00
|
|
|
switch (setting_get_type(setting))
|
2015-11-21 15:32:22 +00:00
|
|
|
{
|
|
|
|
case ST_PATH:
|
|
|
|
if (action == MENU_ACTION_OK)
|
|
|
|
{
|
2017-09-10 20:27:35 +00:00
|
|
|
menu_displaylist_info_t info;
|
2016-10-15 23:09:37 +00:00
|
|
|
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
2016-10-23 01:13:49 +00:00
|
|
|
const char *name = setting->name;
|
2017-04-23 12:31:49 +00:00
|
|
|
size_t selection = menu_navigation_get_selection();
|
2015-09-27 17:19:06 +00:00
|
|
|
|
2017-09-10 20:38:03 +00:00
|
|
|
menu_displaylist_info_init(&info);
|
|
|
|
|
2017-09-28 01:06:54 +00:00
|
|
|
info.path = strdup(setting->default_value.string);
|
2017-09-28 00:45:03 +00:00
|
|
|
info.label = strdup(name);
|
2017-09-10 20:27:35 +00:00
|
|
|
info.type = type;
|
|
|
|
info.directory_ptr = selection;
|
|
|
|
info.list = menu_stack;
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2016-02-24 22:05:54 +00:00
|
|
|
if (menu_displaylist_ctl(DISPLAYLIST_GENERIC, &info))
|
2017-05-26 18:12:52 +00:00
|
|
|
menu_displaylist_process(&info);
|
2017-09-10 20:57:26 +00:00
|
|
|
|
|
|
|
menu_displaylist_info_free(&info);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
|
|
|
/* fall-through. */
|
|
|
|
case ST_BOOL:
|
|
|
|
case ST_INT:
|
|
|
|
case ST_UINT:
|
|
|
|
case ST_HEX:
|
|
|
|
case ST_FLOAT:
|
|
|
|
case ST_STRING:
|
|
|
|
case ST_STRING_OPTIONS:
|
|
|
|
case ST_DIR:
|
|
|
|
case ST_BIND:
|
|
|
|
case ST_ACTION:
|
2015-12-16 02:14:10 +00:00
|
|
|
if (setting_handler(setting, action) == 0)
|
2015-11-21 15:32:22 +00:00
|
|
|
return menu_setting_generic(setting, wraparound);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return -1;
|
2015-09-27 16:14:55 +00:00
|
|
|
}
|
|
|
|
|
2017-07-14 19:11:27 +00:00
|
|
|
static rarch_setting_t *menu_setting_find_internal(rarch_setting_t *setting,
|
2016-06-17 14:19:48 +00:00
|
|
|
const char *label)
|
2015-09-27 15:49:27 +00:00
|
|
|
{
|
2016-10-23 00:41:50 +00:00
|
|
|
uint32_t needle = msg_hash_calculate(label);
|
|
|
|
rarch_setting_t **list = &setting;
|
2016-06-17 14:19:48 +00:00
|
|
|
|
2016-10-31 14:01:40 +00:00
|
|
|
for (; setting_get_type(setting) != ST_NONE; (*list = *list + 1))
|
2015-09-27 15:49:27 +00:00
|
|
|
{
|
2016-10-31 14:01:40 +00:00
|
|
|
if ( (needle == setting->name_hash)
|
|
|
|
&& (setting_get_type(setting) <= ST_GROUP))
|
2015-09-27 15:49:27 +00:00
|
|
|
{
|
2016-10-23 01:13:49 +00:00
|
|
|
const char *name = setting->name;
|
2016-10-23 00:41:50 +00:00
|
|
|
const char *short_description = setting->short_description;
|
2015-11-21 15:32:22 +00:00
|
|
|
/* make sure this isn't a collision */
|
2016-01-20 03:54:17 +00:00
|
|
|
if (!string_is_equal(label, name))
|
2015-11-21 15:32:22 +00:00
|
|
|
continue;
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2015-12-26 06:37:44 +00:00
|
|
|
if (string_is_empty(short_description))
|
2015-11-21 15:32:22 +00:00
|
|
|
return NULL;
|
|
|
|
|
|
|
|
if (setting->read_handler)
|
|
|
|
setting->read_handler(setting);
|
|
|
|
|
|
|
|
return setting;
|
2015-09-27 15:49:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return NULL;
|
2015-09-27 15:49:27 +00:00
|
|
|
}
|
|
|
|
|
2017-07-14 19:11:27 +00:00
|
|
|
static rarch_setting_t *menu_setting_find_internal_enum(rarch_setting_t *setting,
|
2016-06-19 22:31:13 +00:00
|
|
|
enum msg_hash_enums enum_idx)
|
2016-06-14 23:06:58 +00:00
|
|
|
{
|
2016-10-23 00:41:50 +00:00
|
|
|
rarch_setting_t **list = &setting;
|
2016-10-31 14:01:40 +00:00
|
|
|
for (; setting_get_type(setting) != ST_NONE; (*list = *list + 1))
|
2016-06-14 23:06:58 +00:00
|
|
|
{
|
2016-10-31 14:01:40 +00:00
|
|
|
if (setting->enum_idx == enum_idx && setting_get_type(setting) <= ST_GROUP)
|
2016-06-14 23:06:58 +00:00
|
|
|
{
|
2016-10-23 00:41:50 +00:00
|
|
|
const char *short_description = setting->short_description;
|
2016-06-14 23:06:58 +00:00
|
|
|
if (string_is_empty(short_description))
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
if (setting->read_handler)
|
|
|
|
setting->read_handler(setting);
|
|
|
|
|
|
|
|
return setting;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2016-03-21 19:53:07 +00:00
|
|
|
/**
|
|
|
|
* menu_setting_find:
|
|
|
|
* @settings : pointer to settings
|
|
|
|
* @name : name of setting to search for
|
|
|
|
*
|
|
|
|
* Search for a setting with a specified name (@name).
|
|
|
|
*
|
|
|
|
* Returns: pointer to setting if found, NULL otherwise.
|
|
|
|
**/
|
|
|
|
rarch_setting_t *menu_setting_find(const char *label)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = NULL;
|
|
|
|
|
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_SETTINGS_GET, &setting);
|
|
|
|
|
|
|
|
if (!setting || !label)
|
|
|
|
return NULL;
|
|
|
|
|
2016-06-17 14:19:48 +00:00
|
|
|
return menu_setting_find_internal(setting, label);
|
2016-03-21 19:53:07 +00:00
|
|
|
}
|
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
rarch_setting_t *menu_setting_find_enum(enum msg_hash_enums enum_idx)
|
2016-06-14 23:06:58 +00:00
|
|
|
{
|
|
|
|
rarch_setting_t *setting = NULL;
|
|
|
|
|
|
|
|
menu_entries_ctl(MENU_ENTRIES_CTL_SETTINGS_GET, &setting);
|
|
|
|
|
|
|
|
if (!setting || enum_idx == 0)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
return menu_setting_find_internal_enum(setting, enum_idx);
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
int menu_setting_set_flags(rarch_setting_t *setting)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
|
|
|
if (!setting)
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2015-06-05 18:04:19 +00:00
|
|
|
|
2016-10-31 14:01:40 +00:00
|
|
|
switch (setting_get_type(setting))
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_STRING_OPTIONS:
|
|
|
|
return MENU_SETTING_STRING_OPTIONS;
|
|
|
|
case ST_ACTION:
|
|
|
|
return MENU_SETTING_ACTION;
|
|
|
|
case ST_PATH:
|
2016-06-20 13:50:37 +00:00
|
|
|
return FILE_TYPE_PATH;
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_GROUP:
|
|
|
|
return MENU_SETTING_GROUP;
|
|
|
|
case ST_SUB_GROUP:
|
|
|
|
return MENU_SETTING_SUBGROUP;
|
|
|
|
default:
|
|
|
|
break;
|
2015-06-05 18:04:19 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-06-05 18:04:19 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
int menu_setting_set(unsigned type, const char *label,
|
|
|
|
unsigned action, bool wraparound)
|
2015-06-05 18:04:19 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
int ret = 0;
|
|
|
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr(0);
|
2017-04-23 12:31:49 +00:00
|
|
|
size_t selection = menu_navigation_get_selection();
|
2017-11-23 16:55:53 +00:00
|
|
|
menu_file_list_cbs_t *cbs = selection_buf ?
|
2017-10-02 05:07:18 +00:00
|
|
|
(menu_file_list_cbs_t*)file_list_get_actiondata_at_offset(selection_buf, selection) : NULL;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!cbs)
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
ret = menu_action_handle_setting(cbs->setting,
|
|
|
|
type, action, wraparound);
|
2015-06-05 18:04:19 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (ret == -1)
|
|
|
|
return 0;
|
|
|
|
return ret;
|
2015-06-05 18:04:19 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
void *setting_get_ptr(rarch_setting_t *setting)
|
2015-06-05 18:04:19 +00:00
|
|
|
{
|
|
|
|
if (!setting)
|
2015-11-21 15:32:22 +00:00
|
|
|
return NULL;
|
2015-06-05 18:04:19 +00:00
|
|
|
|
2016-10-31 14:01:40 +00:00
|
|
|
switch (setting_get_type(setting))
|
2015-06-05 18:04:19 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_BOOL:
|
2016-03-18 18:01:42 +00:00
|
|
|
return setting->value.target.boolean;
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_INT:
|
2016-03-18 18:01:42 +00:00
|
|
|
return setting->value.target.integer;
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_UINT:
|
2016-03-18 18:01:42 +00:00
|
|
|
return setting->value.target.unsigned_integer;
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_FLOAT:
|
2016-03-18 18:01:42 +00:00
|
|
|
return setting->value.target.fraction;
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_BIND:
|
2016-03-18 18:01:42 +00:00
|
|
|
return setting->value.target.keybind;
|
2015-11-21 15:32:22 +00:00
|
|
|
case ST_STRING:
|
|
|
|
case ST_STRING_OPTIONS:
|
|
|
|
case ST_PATH:
|
|
|
|
case ST_DIR:
|
2016-03-18 18:01:42 +00:00
|
|
|
return setting->value.target.string;
|
2015-11-21 15:32:22 +00:00
|
|
|
default:
|
|
|
|
break;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return NULL;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
/**
|
|
|
|
* setting_get_string_representation:
|
|
|
|
* @setting : pointer to setting
|
|
|
|
* @s : buffer to write contents of string representation to.
|
|
|
|
* @len : size of the buffer (@s)
|
|
|
|
*
|
|
|
|
* Get a setting value's string representation.
|
|
|
|
**/
|
|
|
|
void setting_get_string_representation(void *data, char *s, size_t len)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t* setting = (rarch_setting_t*)data;
|
|
|
|
if (!setting || !s)
|
|
|
|
return;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (setting->get_string_representation)
|
|
|
|
setting->get_string_representation(setting, s, len);
|
|
|
|
}
|
2015-06-06 14:26:55 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
/**
|
|
|
|
* setting_action_start_savestates:
|
|
|
|
* @data : pointer to setting
|
|
|
|
*
|
|
|
|
* Function callback for 'Savestate' action's 'Action Start'
|
|
|
|
* function pointer.
|
|
|
|
*
|
|
|
|
* Returns: 0 on success, -1 on error.
|
|
|
|
**/
|
|
|
|
static int setting_action_start_bind_device(void *data)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting || !settings)
|
2015-06-02 18:26:27 +00:00
|
|
|
return -1;
|
|
|
|
|
2017-09-08 22:02:38 +00:00
|
|
|
configuration_set_uint(settings,
|
2017-09-08 22:19:04 +00:00
|
|
|
settings->uints.input_joypad_map[setting->index_offset], setting->index_offset);
|
2015-06-02 18:26:27 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
|
|
|
|
static int setting_action_start_custom_viewport_width(void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!settings || !av_info)
|
2015-06-02 18:26:27 +00:00
|
|
|
return -1;
|
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
if (settings->bools.video_scale_integer)
|
2015-11-21 15:32:22 +00:00
|
|
|
custom->width = ((custom->width + geom->base_width - 1) /
|
|
|
|
geom->base_width) * geom->base_width;
|
|
|
|
else
|
|
|
|
custom->width = vp.full_width - custom->x;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
2015-08-17 14:24:46 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_start_custom_viewport_height(void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!settings || !av_info)
|
2015-06-02 18:26:27 +00:00
|
|
|
return -1;
|
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-06-06 14:26:55 +00:00
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
if (settings->bools.video_scale_integer)
|
2015-11-21 15:32:22 +00:00
|
|
|
custom->height = ((custom->height + geom->base_height - 1) /
|
|
|
|
geom->base_height) * geom->base_height;
|
|
|
|
else
|
|
|
|
custom->height = vp.full_height - custom->y;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
static int setting_action_start_analog_dpad_mode(void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
2016-03-18 18:01:42 +00:00
|
|
|
*setting->value.target.unsigned_integer = 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_start_libretro_device_type(void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-01-28 03:13:31 +00:00
|
|
|
retro_ctx_controller_info_t pad;
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned index_offset, current_device;
|
|
|
|
unsigned devices[128], types = 0, port = 0;
|
|
|
|
const struct retro_controller_info *desc = NULL;
|
2017-04-23 14:41:26 +00:00
|
|
|
rarch_system_info_t *system = runloop_get_system_info();
|
2016-05-26 16:09:46 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (setting_generic_action_start_default(setting) != 0)
|
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-23 01:25:27 +00:00
|
|
|
index_offset = setting->index_offset;
|
|
|
|
port = index_offset;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
devices[types++] = RETRO_DEVICE_NONE;
|
|
|
|
devices[types++] = RETRO_DEVICE_JOYPAD;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-23 14:41:26 +00:00
|
|
|
if (system)
|
2016-05-26 16:09:46 +00:00
|
|
|
{
|
2017-07-14 19:11:27 +00:00
|
|
|
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
2016-05-26 16:09:46 +00:00
|
|
|
* older core which doesn't use SET_CONTROLLER_INFO. */
|
|
|
|
if (!system->ports.size)
|
|
|
|
devices[types++] = RETRO_DEVICE_ANALOG;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-01 03:18:59 +00:00
|
|
|
if (port < system->ports.size)
|
|
|
|
desc = &system->ports.data[port];
|
2016-05-26 16:09:46 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (desc)
|
|
|
|
{
|
|
|
|
unsigned i;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
for (i = 0; i < desc->num_types; i++)
|
|
|
|
{
|
|
|
|
unsigned id = desc->types[i].id;
|
|
|
|
if (types < ARRAY_SIZE(devices) &&
|
|
|
|
id != RETRO_DEVICE_NONE &&
|
|
|
|
id != RETRO_DEVICE_JOYPAD)
|
|
|
|
devices[types++] = id;
|
|
|
|
}
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
current_device = RETRO_DEVICE_JOYPAD;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-01-17 18:59:33 +00:00
|
|
|
input_config_set_device(port, current_device);
|
2016-01-28 03:13:31 +00:00
|
|
|
|
|
|
|
pad.port = port;
|
|
|
|
pad.device = current_device;
|
2016-05-07 23:33:57 +00:00
|
|
|
core_set_controller_port_device(&pad);
|
2015-11-21 15:32:22 +00:00
|
|
|
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_start_video_refresh_rate_auto(
|
|
|
|
void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_monitor_reset();
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
/**
|
|
|
|
******* ACTION TOGGLE CALLBACK FUNCTIONS *******
|
|
|
|
**/
|
|
|
|
|
|
|
|
static int setting_action_left_analog_dpad_mode(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned port = 0;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
if (!setting)
|
2015-11-21 15:32:22 +00:00
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
port = setting->index_offset;
|
|
|
|
|
2017-04-28 19:03:04 +00:00
|
|
|
configuration_set_uint(settings, settings->uints.input_analog_dpad_mode[port],
|
|
|
|
(settings->uints.input_analog_dpad_mode
|
2017-04-27 21:43:19 +00:00
|
|
|
[port] + ANALOG_DPAD_LAST - 1) % ANALOG_DPAD_LAST);
|
2015-11-21 15:32:22 +00:00
|
|
|
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_right_analog_dpad_mode(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned port = 0;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
port = setting->index_offset;
|
|
|
|
|
2017-04-23 11:37:00 +00:00
|
|
|
settings->modified = true;
|
2017-04-28 19:03:04 +00:00
|
|
|
settings->uints.input_analog_dpad_mode[port] =
|
|
|
|
(settings->uints.input_analog_dpad_mode[port] + 1)
|
2015-11-21 15:32:22 +00:00
|
|
|
% ANALOG_DPAD_LAST;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_left_libretro_device_type(
|
|
|
|
void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-01-28 03:13:31 +00:00
|
|
|
retro_ctx_controller_info_t pad;
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned current_device, current_idx, i, devices[128],
|
|
|
|
types = 0, port = 0;
|
|
|
|
const struct retro_controller_info *desc = NULL;
|
2015-12-10 21:30:25 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-09-06 06:38:26 +00:00
|
|
|
rarch_system_info_t *system = NULL;
|
2015-12-10 21:30:25 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
if (!setting)
|
2015-11-21 15:32:22 +00:00
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
port = setting->index_offset;
|
2015-10-11 12:23:32 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
devices[types++] = RETRO_DEVICE_NONE;
|
|
|
|
devices[types++] = RETRO_DEVICE_JOYPAD;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-23 14:41:26 +00:00
|
|
|
system = runloop_get_system_info();
|
2016-09-06 06:38:26 +00:00
|
|
|
|
2016-06-01 02:05:14 +00:00
|
|
|
if (system)
|
|
|
|
{
|
2017-07-14 19:11:27 +00:00
|
|
|
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
2016-06-01 02:05:14 +00:00
|
|
|
* older core which doesn't use SET_CONTROLLER_INFO. */
|
|
|
|
if (!system->ports.size)
|
|
|
|
devices[types++] = RETRO_DEVICE_ANALOG;
|
|
|
|
|
|
|
|
if (port < system->ports.size)
|
|
|
|
desc = &system->ports.data[port];
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (desc)
|
|
|
|
{
|
|
|
|
for (i = 0; i < desc->num_types; i++)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned id = desc->types[i].id;
|
|
|
|
if (types < ARRAY_SIZE(devices) &&
|
|
|
|
id != RETRO_DEVICE_NONE &&
|
|
|
|
id != RETRO_DEVICE_JOYPAD)
|
|
|
|
devices[types++] = id;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-25 15:14:46 +00:00
|
|
|
current_device = input_config_get_device(port);
|
2015-11-21 15:32:22 +00:00
|
|
|
current_idx = 0;
|
|
|
|
for (i = 0; i < types; i++)
|
|
|
|
{
|
|
|
|
if (current_device != devices[i])
|
|
|
|
continue;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
current_idx = i;
|
|
|
|
break;
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
current_device = devices
|
|
|
|
[(current_idx + types - 1) % types];
|
2015-06-25 06:00:12 +00:00
|
|
|
|
2017-01-17 18:59:33 +00:00
|
|
|
input_config_set_device(port, current_device);
|
2016-01-28 03:13:31 +00:00
|
|
|
|
|
|
|
pad.port = port;
|
|
|
|
pad.device = current_device;
|
|
|
|
|
2016-05-07 23:33:57 +00:00
|
|
|
core_set_controller_port_device(&pad);
|
2015-10-11 12:23:32 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_right_libretro_device_type(
|
|
|
|
void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-01-28 03:13:31 +00:00
|
|
|
retro_ctx_controller_info_t pad;
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned current_device, current_idx, i, devices[128],
|
|
|
|
types = 0, port = 0;
|
|
|
|
const struct retro_controller_info *desc = NULL;
|
2015-12-10 21:30:25 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2017-04-23 14:41:26 +00:00
|
|
|
rarch_system_info_t *system = runloop_get_system_info();
|
2015-12-10 21:30:25 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
port = setting->index_offset;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
devices[types++] = RETRO_DEVICE_NONE;
|
|
|
|
devices[types++] = RETRO_DEVICE_JOYPAD;
|
2015-06-26 09:43:11 +00:00
|
|
|
|
2017-04-23 14:41:26 +00:00
|
|
|
if (system)
|
2016-06-01 03:18:59 +00:00
|
|
|
{
|
2017-07-14 19:11:27 +00:00
|
|
|
/* Only push RETRO_DEVICE_ANALOG as default if we use an
|
2016-06-01 03:18:59 +00:00
|
|
|
* older core which doesn't use SET_CONTROLLER_INFO. */
|
|
|
|
if (!system->ports.size)
|
|
|
|
devices[types++] = RETRO_DEVICE_ANALOG;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-01 03:18:59 +00:00
|
|
|
if (port < system->ports.size)
|
|
|
|
desc = &system->ports.data[port];
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (desc)
|
2015-09-28 16:44:28 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
for (i = 0; i < desc->num_types; i++)
|
|
|
|
{
|
|
|
|
unsigned id = desc->types[i].id;
|
|
|
|
if (types < ARRAY_SIZE(devices) &&
|
|
|
|
id != RETRO_DEVICE_NONE &&
|
|
|
|
id != RETRO_DEVICE_JOYPAD)
|
|
|
|
devices[types++] = id;
|
|
|
|
}
|
2015-09-28 16:44:28 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-25 15:14:46 +00:00
|
|
|
current_device = input_config_get_device(port);
|
2015-11-21 15:32:22 +00:00
|
|
|
current_idx = 0;
|
|
|
|
for (i = 0; i < types; i++)
|
|
|
|
{
|
|
|
|
if (current_device != devices[i])
|
|
|
|
continue;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
current_idx = i;
|
|
|
|
break;
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
current_device = devices
|
|
|
|
[(current_idx + 1) % types];
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-01-17 18:59:33 +00:00
|
|
|
input_config_set_device(port, current_device);
|
2016-01-28 03:13:31 +00:00
|
|
|
|
|
|
|
pad.port = port;
|
|
|
|
pad.device = current_device;
|
|
|
|
|
2016-05-07 23:33:57 +00:00
|
|
|
core_set_controller_port_device(&pad);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_left_bind_device(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned index_offset;
|
|
|
|
unsigned *p = NULL;
|
2017-12-05 21:21:29 +00:00
|
|
|
unsigned max_devices = input_config_get_device_count();
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-23 01:25:27 +00:00
|
|
|
index_offset = setting->index_offset;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 19:03:04 +00:00
|
|
|
p = &settings->uints.input_joypad_map[index_offset];
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-12-05 21:21:29 +00:00
|
|
|
if ((*p) >= max_devices)
|
|
|
|
*p = max_devices - 1;
|
2015-11-21 15:32:22 +00:00
|
|
|
else if ((*p) > 0)
|
|
|
|
(*p)--;
|
|
|
|
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_right_bind_device(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned index_offset;
|
|
|
|
unsigned *p = NULL;
|
2017-12-05 21:21:29 +00:00
|
|
|
unsigned max_devices = input_config_get_device_count();
|
2015-11-21 15:32:22 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-23 01:25:27 +00:00
|
|
|
index_offset = setting->index_offset;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 19:03:04 +00:00
|
|
|
p = &settings->uints.input_joypad_map[index_offset];
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-12-05 21:21:29 +00:00
|
|
|
if (*p < max_devices)
|
2015-11-21 15:32:22 +00:00
|
|
|
(*p)++;
|
|
|
|
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2017-06-08 14:13:45 +00:00
|
|
|
static int setting_action_left_mouse_index(void *data, bool wraparound)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
if (settings->uints.input_mouse_index[setting->index_offset])
|
|
|
|
{
|
|
|
|
--settings->uints.input_mouse_index[setting->index_offset];
|
|
|
|
settings->modified = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int setting_action_right_mouse_index(void *data, bool wraparound)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2017-06-08 14:13:45 +00:00
|
|
|
++settings->uints.input_mouse_index[setting->index_offset];
|
|
|
|
settings->modified = true;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
/**
|
2015-11-21 15:32:22 +00:00
|
|
|
******* ACTION OK CALLBACK FUNCTIONS *******
|
|
|
|
**/
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_ok_bind_all(void *data, bool wraparound)
|
|
|
|
{
|
|
|
|
(void)wraparound;
|
2016-09-15 18:52:08 +00:00
|
|
|
if (!menu_input_key_bind_set_mode(MENU_INPUT_BINDS_CTL_BIND_ALL, data))
|
2015-11-21 15:32:22 +00:00
|
|
|
return -1;
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_ok_bind_all_save_autoconfig(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned index_offset;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2017-01-02 07:11:28 +00:00
|
|
|
const char *name = NULL;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
(void)wraparound;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-25 14:04:28 +00:00
|
|
|
if (!setting)
|
2015-11-21 15:32:22 +00:00
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-23 01:25:27 +00:00
|
|
|
index_offset = setting->index_offset;
|
2017-04-25 14:04:28 +00:00
|
|
|
name = input_config_get_device_name(index_offset);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-01-02 07:11:28 +00:00
|
|
|
if(!string_is_empty(name) && config_save_autoconf_profile(name, index_offset))
|
2016-12-22 22:36:11 +00:00
|
|
|
runloop_msg_queue_push(
|
2016-06-28 10:08:30 +00:00
|
|
|
msg_hash_to_str(MSG_AUTOCONFIG_FILE_SAVED_SUCCESSFULLY), 1, 100, true);
|
2015-11-21 15:32:22 +00:00
|
|
|
else
|
2016-12-22 22:36:11 +00:00
|
|
|
runloop_msg_queue_push(
|
2016-06-28 10:08:30 +00:00
|
|
|
msg_hash_to_str(MSG_AUTOCONFIG_FILE_ERROR_SAVING), 1, 100, true);
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2017-04-25 14:04:28 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_ok_bind_defaults(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
unsigned i;
|
2016-02-25 18:01:51 +00:00
|
|
|
menu_input_ctx_bind_limits_t lim;
|
2016-02-25 17:37:43 +00:00
|
|
|
struct retro_keybind *target = NULL;
|
2015-11-21 15:32:22 +00:00
|
|
|
const struct retro_keybind *def_binds = NULL;
|
2016-02-25 17:37:43 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
(void)wraparound;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-25 22:24:59 +00:00
|
|
|
target = &input_config_binds[setting->index_offset][0];
|
2017-07-14 19:11:27 +00:00
|
|
|
def_binds = (setting->index_offset) ?
|
2015-11-21 15:32:22 +00:00
|
|
|
retro_keybinds_rest : retro_keybinds_1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-05-06 16:00:44 +00:00
|
|
|
lim.min = MENU_SETTINGS_BIND_BEGIN;
|
|
|
|
lim.max = MENU_SETTINGS_BIND_LAST;
|
2016-02-25 18:01:51 +00:00
|
|
|
|
2016-09-15 18:40:19 +00:00
|
|
|
menu_input_key_bind_set_min_max(&lim);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
for (i = MENU_SETTINGS_BIND_BEGIN;
|
|
|
|
i <= MENU_SETTINGS_BIND_LAST; i++, target++)
|
|
|
|
{
|
2016-02-25 17:37:43 +00:00
|
|
|
target->key = def_binds[i - MENU_SETTINGS_BIND_BEGIN].key;
|
|
|
|
target->joykey = NO_BTN;
|
2015-11-21 15:32:22 +00:00
|
|
|
target->joyaxis = AXIS_NONE;
|
2017-11-26 11:56:55 +00:00
|
|
|
target->mbutton = NO_BTN;
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2017-11-23 16:55:53 +00:00
|
|
|
static void
|
2017-09-08 22:02:38 +00:00
|
|
|
setting_get_string_representation_st_float_video_refresh_rate_auto(
|
|
|
|
void *data, char *s, size_t len)
|
2016-08-29 01:07:20 +00:00
|
|
|
{
|
|
|
|
double video_refresh_rate = 0.0;
|
|
|
|
double deviation = 0.0;
|
|
|
|
unsigned sample_points = 0;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (video_monitor_fps_statistics(&video_refresh_rate, &deviation, &sample_points))
|
|
|
|
{
|
|
|
|
snprintf(s, len, "%.3f Hz (%.1f%% dev, %u samples)",
|
|
|
|
video_refresh_rate, 100.0 * deviation, sample_points);
|
|
|
|
menu_animation_ctl(MENU_ANIMATION_CTL_SET_ACTIVE, NULL);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE), len);
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
static int setting_action_ok_video_refresh_rate_auto(void *data, bool wraparound)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-11-21 15:32:22 +00:00
|
|
|
double video_refresh_rate = 0.0;
|
|
|
|
double deviation = 0.0;
|
|
|
|
unsigned sample_points = 0;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (!setting)
|
|
|
|
return -1;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (video_monitor_fps_statistics(&video_refresh_rate,
|
|
|
|
&deviation, &sample_points))
|
|
|
|
{
|
2015-12-13 20:28:06 +00:00
|
|
|
float video_refresh_rate_float = (float)video_refresh_rate;
|
|
|
|
driver_ctl(RARCH_DRIVER_CTL_SET_REFRESH_RATE, &video_refresh_rate_float);
|
2015-11-21 15:32:22 +00:00
|
|
|
/* Incase refresh rate update forced non-block video. */
|
2016-05-09 18:51:53 +00:00
|
|
|
command_event(CMD_EVENT_VIDEO_SET_BLOCKING_STATE, NULL);
|
2015-11-21 15:32:22 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
if (setting_generic_action_ok_default(setting, wraparound) != 0)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
return 0;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void get_string_representation_bind_device(void * data, char *s,
|
|
|
|
size_t len)
|
|
|
|
{
|
2015-10-11 12:23:32 +00:00
|
|
|
unsigned index_offset, map = 0;
|
2017-12-05 21:21:29 +00:00
|
|
|
unsigned max_devices = input_config_get_device_count();
|
2015-06-02 18:26:27 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
2016-10-23 01:25:27 +00:00
|
|
|
index_offset = setting->index_offset;
|
2017-04-28 19:03:04 +00:00
|
|
|
map = settings->uints.input_joypad_map[index_offset];
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-12-05 21:21:29 +00:00
|
|
|
if (map < max_devices)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2018-01-11 22:06:02 +00:00
|
|
|
const char *device_name = input_config_get_device_display_name(map) ?
|
|
|
|
input_config_get_device_display_name(map) : input_config_get_device_name(map);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-26 03:46:16 +00:00
|
|
|
if (!string_is_empty(device_name))
|
2017-12-05 22:10:34 +00:00
|
|
|
{
|
|
|
|
unsigned idx = input_autoconfigure_get_device_name_index(map);
|
|
|
|
|
|
|
|
/*if idx is non-zero, it's part of a set*/
|
|
|
|
if ( idx > 0 )
|
|
|
|
{
|
|
|
|
snprintf(s, len,
|
|
|
|
"%s (#%u)",
|
|
|
|
device_name,
|
|
|
|
idx);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
snprintf(s, len,
|
|
|
|
"%s",
|
|
|
|
device_name);
|
|
|
|
}
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
else
|
2017-12-05 22:10:34 +00:00
|
|
|
{
|
2015-06-02 18:26:27 +00:00
|
|
|
snprintf(s, len,
|
2015-06-25 05:23:19 +00:00
|
|
|
"%s (%s #%u)",
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PORT),
|
2015-06-25 05:23:19 +00:00
|
|
|
map);
|
2017-12-05 22:10:34 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
else
|
2016-06-19 22:31:13 +00:00
|
|
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DISABLED), len);
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2015-10-11 15:24:37 +00:00
|
|
|
* menu_setting_get_label:
|
2015-06-02 18:26:27 +00:00
|
|
|
* @list : File list on which to perform the search
|
|
|
|
* @s : String for the type to be represented on-screen as
|
|
|
|
* a label.
|
|
|
|
* @len : Size of @s
|
|
|
|
* @w : Width of the string (for text label representation
|
|
|
|
* purposes in the menu display driver).
|
|
|
|
* @type : Identifier of setting.
|
|
|
|
* @menu_label : Menu Label identifier of setting.
|
|
|
|
* @label : Label identifier of setting.
|
|
|
|
* @idx : Index identifier of setting.
|
|
|
|
*
|
|
|
|
* Get associated label of a setting.
|
|
|
|
**/
|
2015-10-11 15:24:37 +00:00
|
|
|
void menu_setting_get_label(void *data, char *s,
|
2017-07-14 19:11:27 +00:00
|
|
|
size_t len, unsigned *w, unsigned type,
|
2015-06-02 18:26:27 +00:00
|
|
|
const char *menu_label, const char *label, unsigned idx)
|
|
|
|
{
|
2015-10-11 13:46:55 +00:00
|
|
|
rarch_setting_t *setting = NULL;
|
|
|
|
file_list_t *list = (file_list_t*)data;
|
|
|
|
if (!list || !label)
|
2015-06-02 18:26:27 +00:00
|
|
|
return;
|
|
|
|
|
2015-06-06 17:31:39 +00:00
|
|
|
setting = menu_setting_find(list->list[idx].label);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-24 03:11:19 +00:00
|
|
|
if (setting && setting->get_string_representation)
|
|
|
|
setting->get_string_representation(setting, s, len);
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
void general_read_handler(void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
if (setting->enum_idx != MSG_UNKNOWN)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-06-16 12:35:53 +00:00
|
|
|
switch (setting->enum_idx)
|
|
|
|
{
|
|
|
|
case MENU_ENUM_LABEL_AUDIO_RATE_CONTROL_DELTA:
|
2017-05-08 19:50:21 +00:00
|
|
|
*setting->value.target.fraction = *(audio_get_float_ptr(AUDIO_ACTION_RATE_CONTROL_DELTA));
|
2016-06-16 12:35:53 +00:00
|
|
|
if (*setting->value.target.fraction < 0.0005)
|
|
|
|
{
|
2017-04-28 10:23:59 +00:00
|
|
|
configuration_set_bool(settings, settings->bools.audio_rate_control, false);
|
2017-05-08 19:50:21 +00:00
|
|
|
audio_set_float(AUDIO_ACTION_RATE_CONTROL_DELTA, 0.0f);
|
2016-06-16 12:35:53 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-04-28 10:23:59 +00:00
|
|
|
configuration_set_bool(settings, settings->bools.audio_rate_control, true);
|
2017-05-08 19:50:21 +00:00
|
|
|
audio_set_float(AUDIO_ACTION_RATE_CONTROL_DELTA, *setting->value.target.fraction);
|
2016-06-16 12:35:53 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_AUDIO_MAX_TIMING_SKEW:
|
2017-04-28 12:57:55 +00:00
|
|
|
*setting->value.target.fraction = settings->floats.audio_max_timing_skew;
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO:
|
2017-04-28 12:57:55 +00:00
|
|
|
*setting->value.target.fraction = settings->floats.video_refresh_rate;
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER1_JOYPAD_INDEX:
|
2017-04-28 19:03:04 +00:00
|
|
|
*setting->value.target.integer = settings->uints.input_joypad_map[0];
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER2_JOYPAD_INDEX:
|
2017-04-28 19:03:04 +00:00
|
|
|
*setting->value.target.integer = settings->uints.input_joypad_map[1];
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER3_JOYPAD_INDEX:
|
2017-04-28 19:03:04 +00:00
|
|
|
*setting->value.target.integer = settings->uints.input_joypad_map[2];
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER4_JOYPAD_INDEX:
|
2017-04-28 19:03:04 +00:00
|
|
|
*setting->value.target.integer = settings->uints.input_joypad_map[3];
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER5_JOYPAD_INDEX:
|
2017-04-28 19:03:04 +00:00
|
|
|
*setting->value.target.integer = settings->uints.input_joypad_map[4];
|
2016-06-16 12:35:53 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
void general_write_handler(void *data)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-05-09 18:51:53 +00:00
|
|
|
enum event_command rarch_cmd = CMD_EVENT_NONE;
|
2015-09-28 00:10:44 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
settings_t *settings = config_get_ptr();
|
2015-12-10 21:30:25 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
2016-05-09 18:51:53 +00:00
|
|
|
if (setting->cmd_trigger.idx != CMD_EVENT_NONE)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-10-23 01:13:49 +00:00
|
|
|
uint64_t flags = setting->flags;
|
2016-06-16 13:00:35 +00:00
|
|
|
|
2015-09-28 00:10:44 +00:00
|
|
|
if (flags & SD_FLAG_EXIT)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-03-18 18:01:42 +00:00
|
|
|
if (*setting->value.target.boolean)
|
|
|
|
*setting->value.target.boolean = false;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
if (setting->cmd_trigger.triggered ||
|
2015-09-28 00:10:44 +00:00
|
|
|
(flags & SD_FLAG_CMD_APPLY_AUTO))
|
2015-06-02 18:26:27 +00:00
|
|
|
rarch_cmd = setting->cmd_trigger.idx;
|
|
|
|
}
|
|
|
|
|
2016-06-16 13:00:35 +00:00
|
|
|
switch (setting->enum_idx)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_THREADED:
|
2016-02-09 16:41:19 +00:00
|
|
|
{
|
2016-03-18 18:01:42 +00:00
|
|
|
if (*setting->value.target.boolean)
|
2017-01-03 17:26:52 +00:00
|
|
|
task_queue_set_threaded();
|
2016-02-09 16:41:19 +00:00
|
|
|
else
|
2017-01-03 17:26:52 +00:00
|
|
|
task_queue_unset_threaded();
|
2016-02-09 16:41:19 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR:
|
2016-05-07 23:33:57 +00:00
|
|
|
core_set_poll_type((unsigned int*)setting->value.target.integer);
|
2016-01-27 00:51:09 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER:
|
2015-09-27 17:14:56 +00:00
|
|
|
{
|
|
|
|
video_viewport_t vp;
|
|
|
|
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
|
|
|
|
video_viewport_t *custom = video_viewport_get_custom();
|
|
|
|
struct retro_game_geometry *geom = (struct retro_game_geometry*)
|
|
|
|
&av_info->geometry;
|
|
|
|
|
2016-05-08 12:00:51 +00:00
|
|
|
video_driver_get_viewport_info(&vp);
|
2015-09-27 17:14:56 +00:00
|
|
|
|
2016-03-18 18:01:42 +00:00
|
|
|
if (*setting->value.target.boolean)
|
2015-09-27 17:14:56 +00:00
|
|
|
{
|
|
|
|
custom->x = 0;
|
|
|
|
custom->y = 0;
|
|
|
|
custom->width = ((custom->width + geom->base_width - 1) / geom->base_width) * geom->base_width;
|
|
|
|
custom->height = ((custom->height + geom->base_height - 1) / geom->base_height) * geom->base_height;
|
2015-09-27 17:19:06 +00:00
|
|
|
aspectratio_lut[ASPECT_RATIO_CUSTOM].value =
|
|
|
|
(float)custom->width / custom->height;
|
2015-09-27 17:14:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_HELP:
|
2016-03-18 18:01:42 +00:00
|
|
|
if (*setting->value.target.boolean)
|
2015-06-05 13:14:26 +00:00
|
|
|
{
|
2017-09-10 20:31:09 +00:00
|
|
|
menu_displaylist_info_t info;
|
2016-12-23 01:01:09 +00:00
|
|
|
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr(0);
|
2016-12-19 17:40:00 +00:00
|
|
|
|
2017-09-10 20:38:03 +00:00
|
|
|
menu_displaylist_info_init(&info);
|
|
|
|
|
|
|
|
info.enum_idx = MENU_ENUM_LABEL_HELP;
|
2017-09-28 00:45:03 +00:00
|
|
|
info.label = strdup(
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_HELP));
|
2017-09-10 20:38:03 +00:00
|
|
|
info.list = menu_stack;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-02-24 22:05:54 +00:00
|
|
|
if (menu_displaylist_ctl(DISPLAYLIST_GENERIC, &info))
|
2017-05-26 18:12:52 +00:00
|
|
|
menu_displaylist_process(&info);
|
2017-09-10 20:57:26 +00:00
|
|
|
menu_displaylist_info_free(&info);
|
2016-08-29 01:07:20 +00:00
|
|
|
setting_set_with_string_representation(setting, "false");
|
2015-06-05 13:14:26 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_MAX_TIMING_SKEW:
|
2017-04-28 12:57:55 +00:00
|
|
|
configuration_set_float(settings, settings->floats.audio_max_timing_skew,
|
2017-04-27 21:43:19 +00:00
|
|
|
*setting->value.target.fraction);
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_RATE_CONTROL_DELTA:
|
2016-03-18 18:01:42 +00:00
|
|
|
if (*setting->value.target.fraction < 0.0005)
|
2015-06-05 13:14:26 +00:00
|
|
|
{
|
2017-04-28 10:23:59 +00:00
|
|
|
configuration_set_bool(settings, settings->bools.audio_rate_control, false);
|
2017-05-08 19:50:21 +00:00
|
|
|
audio_set_float(AUDIO_ACTION_RATE_CONTROL_DELTA, 0.0f);
|
2015-06-05 13:14:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-04-28 10:23:59 +00:00
|
|
|
configuration_set_bool(settings, settings->bools.audio_rate_control, true);
|
2017-05-08 19:50:21 +00:00
|
|
|
audio_set_float(AUDIO_ACTION_RATE_CONTROL_DELTA, *setting->value.target.fraction);
|
2015-06-05 13:14:26 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO:
|
2016-03-18 18:01:42 +00:00
|
|
|
driver_ctl(RARCH_DRIVER_CTL_SET_REFRESH_RATE, setting->value.target.fraction);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-11-23 13:14:12 +00:00
|
|
|
/* In case refresh rate update forced non-block video. */
|
2016-05-09 18:51:53 +00:00
|
|
|
rarch_cmd = CMD_EVENT_VIDEO_SET_BLOCKING_STATE;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_SCALE:
|
2017-04-28 12:57:55 +00:00
|
|
|
settings->modified = true;
|
|
|
|
settings->floats.video_scale = roundf(*setting->value.target.fraction);
|
2015-06-05 13:14:26 +00:00
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
if (!settings->bools.video_fullscreen)
|
2016-05-09 18:51:53 +00:00
|
|
|
rarch_cmd = CMD_EVENT_REINIT;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER1_JOYPAD_INDEX:
|
2017-04-23 11:37:00 +00:00
|
|
|
settings->modified = true;
|
2017-04-28 19:03:04 +00:00
|
|
|
settings->uints.input_joypad_map[0] = *setting->value.target.integer;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER2_JOYPAD_INDEX:
|
2017-04-23 11:37:00 +00:00
|
|
|
settings->modified = true;
|
2017-04-28 19:03:04 +00:00
|
|
|
settings->uints.input_joypad_map[1] = *setting->value.target.integer;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER3_JOYPAD_INDEX:
|
2017-04-23 11:37:00 +00:00
|
|
|
settings->modified = true;
|
2017-04-28 19:03:04 +00:00
|
|
|
settings->uints.input_joypad_map[2] = *setting->value.target.integer;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER4_JOYPAD_INDEX:
|
2017-04-23 11:37:00 +00:00
|
|
|
settings->modified = true;
|
2017-04-28 19:03:04 +00:00
|
|
|
settings->uints.input_joypad_map[3] = *setting->value.target.integer;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_INPUT_PLAYER5_JOYPAD_INDEX:
|
2017-04-23 11:37:00 +00:00
|
|
|
settings->modified = true;
|
2017-04-28 19:03:04 +00:00
|
|
|
settings->uints.input_joypad_map[4] = *setting->value.target.integer;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_LOG_VERBOSITY:
|
2017-08-31 02:42:29 +00:00
|
|
|
if (!verbosity_is_enabled())
|
2017-05-12 01:18:43 +00:00
|
|
|
verbosity_enable();
|
|
|
|
else
|
|
|
|
verbosity_disable();
|
2017-08-31 02:42:29 +00:00
|
|
|
retroarch_override_setting_unset(RARCH_OVERRIDE_SETTING_VERBOSITY, NULL);
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_SMOOTH:
|
2017-04-27 22:53:06 +00:00
|
|
|
video_driver_set_filtering(1, settings->bools.video_smooth);
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_ROTATION:
|
|
|
|
{
|
2017-04-23 14:41:26 +00:00
|
|
|
rarch_system_info_t *system = runloop_get_system_info();
|
|
|
|
|
2016-06-16 13:00:35 +00:00
|
|
|
if (system)
|
|
|
|
video_driver_set_rotation(
|
|
|
|
(*setting->value.target.unsigned_integer +
|
|
|
|
system->rotation) % 4);
|
|
|
|
}
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_VOLUME:
|
2017-06-08 20:32:03 +00:00
|
|
|
audio_set_float(AUDIO_ACTION_VOLUME_GAIN, *setting->value.target.fraction);
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2017-06-08 20:58:43 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_MIXER_VOLUME:
|
|
|
|
audio_set_float(AUDIO_ACTION_MIXER_VOLUME_GAIN, *setting->value.target.fraction);
|
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_LATENCY:
|
2017-04-26 04:17:53 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_OUTPUT_RATE:
|
2017-04-29 01:36:52 +00:00
|
|
|
case MENU_ENUM_LABEL_AUDIO_WASAPI_EXCLUSIVE_MODE:
|
|
|
|
case MENU_ENUM_LABEL_AUDIO_WASAPI_FLOAT_FORMAT:
|
|
|
|
case MENU_ENUM_LABEL_AUDIO_WASAPI_SH_BUFFER_LENGTH:
|
2017-04-23 01:06:15 +00:00
|
|
|
rarch_cmd = CMD_EVENT_AUDIO_REINIT;
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_PAL60_ENABLE:
|
2016-12-23 01:01:09 +00:00
|
|
|
{
|
|
|
|
global_t *global = global_get_ptr();
|
|
|
|
if (*setting->value.target.boolean && global->console.screen.pal_enable)
|
|
|
|
rarch_cmd = CMD_EVENT_REINIT;
|
|
|
|
else
|
|
|
|
setting_set_with_string_representation(setting, "false");
|
|
|
|
}
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_SYSTEM_BGM_ENABLE:
|
2016-03-18 18:01:42 +00:00
|
|
|
if (*setting->value.target.boolean)
|
2015-06-05 13:14:26 +00:00
|
|
|
{
|
2015-06-02 18:26:27 +00:00
|
|
|
#if defined(__CELLOS_LV2__) && (CELL_SDK_VERSION > 0x340000)
|
2015-06-05 13:14:26 +00:00
|
|
|
cellSysutilEnableBgmPlayback();
|
2017-07-14 19:11:27 +00:00
|
|
|
#endif
|
2015-06-05 13:14:26 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-06-02 18:26:27 +00:00
|
|
|
#if defined(__CELLOS_LV2__) && (CELL_SDK_VERSION > 0x340000)
|
2015-06-05 13:14:26 +00:00
|
|
|
cellSysutilDisableBgmPlayback();
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
2015-06-05 13:14:26 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_NETPLAY_IP_ADDRESS:
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-08-01 19:51:23 +00:00
|
|
|
{
|
|
|
|
bool val = (!string_is_empty(setting->value.target.string));
|
|
|
|
if (val)
|
2016-10-01 03:51:03 +00:00
|
|
|
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_NETPLAY_IP_ADDRESS, NULL);
|
2016-08-01 19:51:23 +00:00
|
|
|
else
|
2016-10-01 04:14:30 +00:00
|
|
|
retroarch_override_setting_unset(RARCH_OVERRIDE_SETTING_NETPLAY_IP_ADDRESS, NULL);
|
2016-08-01 19:51:23 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
2015-06-05 13:14:26 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
case MENU_ENUM_LABEL_NETPLAY_MODE:
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-10-01 06:24:02 +00:00
|
|
|
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_NETPLAY_MODE, NULL);
|
2015-06-05 13:14:26 +00:00
|
|
|
#endif
|
|
|
|
break;
|
2016-12-16 04:09:55 +00:00
|
|
|
case MENU_ENUM_LABEL_NETPLAY_STATELESS_MODE:
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-12-16 04:09:55 +00:00
|
|
|
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_NETPLAY_STATELESS_MODE, NULL);
|
2015-06-05 13:14:26 +00:00
|
|
|
#endif
|
|
|
|
break;
|
2016-09-15 03:54:18 +00:00
|
|
|
case MENU_ENUM_LABEL_NETPLAY_CHECK_FRAMES:
|
2016-09-29 19:07:10 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-12-19 00:27:51 +00:00
|
|
|
retroarch_override_setting_set(RARCH_OVERRIDE_SETTING_NETPLAY_CHECK_FRAMES, NULL);
|
2016-09-15 03:54:18 +00:00
|
|
|
#endif
|
2016-12-19 00:27:51 +00:00
|
|
|
break;
|
2017-12-11 23:12:32 +00:00
|
|
|
case MENU_ENUM_LABEL_VIDEO_WINDOW_OPACITY:
|
2017-12-16 04:48:05 +00:00
|
|
|
video_display_server_set_window_opacity(settings->uints.video_window_opacity);
|
2017-12-11 23:12:32 +00:00
|
|
|
break;
|
2016-06-16 13:00:35 +00:00
|
|
|
default:
|
|
|
|
break;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (rarch_cmd || setting->cmd_trigger.triggered)
|
2016-05-09 18:20:50 +00:00
|
|
|
command_event(rarch_cmd, NULL);
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
|
|
|
|
2015-08-30 21:19:45 +00:00
|
|
|
#ifdef HAVE_OVERLAY
|
2015-06-02 18:26:27 +00:00
|
|
|
static void overlay_enable_toggle_change_handler(void *data)
|
|
|
|
{
|
2015-07-09 02:05:59 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2015-06-02 18:26:27 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t *)data;
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return;
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings && settings->bools.input_overlay_hide_in_menu)
|
2015-07-09 02:05:59 +00:00
|
|
|
{
|
2016-05-09 18:51:53 +00:00
|
|
|
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
2015-07-09 02:05:59 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-03-18 18:01:42 +00:00
|
|
|
if (setting->value.target.boolean)
|
2016-05-09 18:51:53 +00:00
|
|
|
command_event(CMD_EVENT_OVERLAY_INIT, NULL);
|
2015-06-02 18:26:27 +00:00
|
|
|
else
|
2016-05-09 18:51:53 +00:00
|
|
|
command_event(CMD_EVENT_OVERLAY_DEINIT, NULL);
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
2015-08-30 21:19:45 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-09 23:46:47 +00:00
|
|
|
#ifdef HAVE_LAKKA
|
2016-04-25 13:21:39 +00:00
|
|
|
static void systemd_service_toggle(const char *path, char *unit, bool enable)
|
2016-03-23 18:20:26 +00:00
|
|
|
{
|
2017-09-08 22:02:38 +00:00
|
|
|
int pid = fork();
|
2016-04-27 09:11:53 +00:00
|
|
|
char* args[] = {(char*)"systemctl", NULL, NULL, NULL};
|
2016-04-25 08:49:25 +00:00
|
|
|
|
2016-04-27 09:11:53 +00:00
|
|
|
if (enable)
|
|
|
|
args[1] = (char*)"start";
|
|
|
|
else
|
|
|
|
args[1] = (char*)"stop";
|
2016-04-25 08:49:25 +00:00
|
|
|
args[2] = unit;
|
|
|
|
|
2016-03-23 18:20:26 +00:00
|
|
|
if (enable)
|
2017-12-10 21:25:38 +00:00
|
|
|
filestream_close(filestream_open(path,
|
2017-12-11 11:53:47 +00:00
|
|
|
RETRO_VFS_FILE_ACCESS_WRITE,
|
|
|
|
RETRO_VFS_FILE_ACCESS_HINT_NONE));
|
2016-03-21 22:46:36 +00:00
|
|
|
else
|
2017-12-14 18:29:36 +00:00
|
|
|
filestream_delete(path);
|
2016-04-25 08:49:25 +00:00
|
|
|
|
2016-04-27 09:11:53 +00:00
|
|
|
if (pid == 0)
|
2016-04-25 08:49:25 +00:00
|
|
|
execvp(args[0], args);
|
|
|
|
|
2016-03-23 18:20:26 +00:00
|
|
|
return;
|
|
|
|
}
|
2016-03-21 22:46:36 +00:00
|
|
|
|
2016-03-23 18:20:26 +00:00
|
|
|
static void ssh_enable_toggle_change_handler(void *data)
|
|
|
|
{
|
2016-04-27 09:11:53 +00:00
|
|
|
bool enable = false;
|
2016-03-23 18:20:26 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2017-09-08 22:02:38 +00:00
|
|
|
|
2017-05-03 15:01:37 +00:00
|
|
|
if (settings && settings->bools.ssh_enable)
|
2016-04-27 09:11:53 +00:00
|
|
|
enable = true;
|
|
|
|
|
|
|
|
systemd_service_toggle(LAKKA_SSH_PATH, (char*)"sshd.service",
|
|
|
|
enable);
|
2016-03-21 22:46:36 +00:00
|
|
|
}
|
2016-04-27 09:11:53 +00:00
|
|
|
|
2016-03-23 12:58:01 +00:00
|
|
|
static void samba_enable_toggle_change_handler(void *data)
|
|
|
|
{
|
2016-04-27 09:11:53 +00:00
|
|
|
bool enable = false;
|
2016-03-23 12:58:01 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2017-09-08 22:02:38 +00:00
|
|
|
|
2017-05-03 15:01:37 +00:00
|
|
|
if (settings && settings->bools.samba_enable)
|
2016-04-27 09:11:53 +00:00
|
|
|
enable = true;
|
|
|
|
|
|
|
|
systemd_service_toggle(LAKKA_SAMBA_PATH, (char*)"smbd.service",
|
|
|
|
enable);
|
2016-03-23 12:58:01 +00:00
|
|
|
}
|
2016-04-27 09:11:53 +00:00
|
|
|
|
2016-03-23 13:06:53 +00:00
|
|
|
static void bluetooth_enable_toggle_change_handler(void *data)
|
|
|
|
{
|
2016-04-27 09:11:53 +00:00
|
|
|
bool enable = false;
|
2016-03-23 13:06:53 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
2017-09-08 22:02:38 +00:00
|
|
|
|
2017-05-03 15:01:37 +00:00
|
|
|
if (settings && settings->bools.bluetooth_enable)
|
2016-04-27 09:11:53 +00:00
|
|
|
enable = true;
|
|
|
|
|
|
|
|
systemd_service_toggle(LAKKA_BLUETOOTH_PATH, (char*)"bluetooth.service",
|
|
|
|
enable);
|
2016-03-23 13:06:53 +00:00
|
|
|
}
|
2016-03-21 22:46:36 +00:00
|
|
|
#endif
|
2016-03-20 19:45:06 +00:00
|
|
|
|
2015-10-23 04:54:33 +00:00
|
|
|
static bool setting_append_list_input_player_options(
|
|
|
|
rarch_setting_t **list,
|
|
|
|
rarch_setting_info_t *list_info,
|
|
|
|
const char *parent_group,
|
|
|
|
unsigned user)
|
|
|
|
{
|
|
|
|
/* This constants matches the string length.
|
|
|
|
* Keep it up to date or you'll get some really obvious bugs.
|
|
|
|
* 2 is the length of '99'; we don't need more users than that.
|
|
|
|
*/
|
|
|
|
static char buffer[MAX_USERS][13+2+1];
|
2016-10-27 07:49:21 +00:00
|
|
|
static char group_lbl[MAX_USERS][255];
|
2015-10-23 04:54:33 +00:00
|
|
|
unsigned i;
|
2016-12-19 17:40:00 +00:00
|
|
|
rarch_setting_group_info_t group_info = {0};
|
|
|
|
rarch_setting_group_info_t subgroup_info = {0};
|
|
|
|
settings_t *settings = config_get_ptr();
|
2017-04-23 14:41:26 +00:00
|
|
|
rarch_system_info_t *system = runloop_get_system_info();
|
2015-10-23 04:54:33 +00:00
|
|
|
const struct retro_keybind* const defaults =
|
|
|
|
(user == 0) ? retro_keybinds_1 : retro_keybinds_rest;
|
2017-04-23 14:41:26 +00:00
|
|
|
const char *temp_value = msg_hash_to_str
|
|
|
|
((enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_USER_1_BINDS + user));
|
2016-06-17 20:12:06 +00:00
|
|
|
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(buffer[user], sizeof(buffer[user]),
|
2016-06-19 22:31:13 +00:00
|
|
|
"%s %u", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1);
|
2016-06-17 20:12:06 +00:00
|
|
|
|
|
|
|
strlcpy(group_lbl[user], temp_value, sizeof(group_lbl[user]));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2015-11-21 15:32:22 +00:00
|
|
|
START_GROUP(list, list_info, &group_info, group_lbl[user], parent_group);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
buffer[user],
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group);
|
|
|
|
|
|
|
|
{
|
2016-12-19 17:30:17 +00:00
|
|
|
char tmp_string[PATH_MAX_LENGTH];
|
2015-10-23 04:54:33 +00:00
|
|
|
/* These constants match the string lengths.
|
|
|
|
* Keep them up to date or you'll get some really obvious bugs.
|
|
|
|
* 2 is the length of '99'; we don't need more users than that.
|
|
|
|
*/
|
|
|
|
/* FIXME/TODO - really need to clean up this mess in some way. */
|
|
|
|
static char key[MAX_USERS][64];
|
|
|
|
static char key_type[MAX_USERS][64];
|
|
|
|
static char key_analog[MAX_USERS][64];
|
|
|
|
static char key_bind_all[MAX_USERS][64];
|
|
|
|
static char key_bind_all_save_autoconfig[MAX_USERS][64];
|
|
|
|
static char key_bind_defaults[MAX_USERS][64];
|
2017-06-08 14:13:45 +00:00
|
|
|
static char mouse_index[MAX_USERS][64];
|
2015-10-23 04:54:33 +00:00
|
|
|
|
|
|
|
static char label[MAX_USERS][64];
|
|
|
|
static char label_type[MAX_USERS][64];
|
|
|
|
static char label_analog[MAX_USERS][64];
|
|
|
|
static char label_bind_all[MAX_USERS][64];
|
|
|
|
static char label_bind_all_save_autoconfig[MAX_USERS][64];
|
|
|
|
static char label_bind_defaults[MAX_USERS][64];
|
2017-06-08 14:13:45 +00:00
|
|
|
static char label_mouse_index[MAX_USERS][64];
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-12-19 17:30:17 +00:00
|
|
|
tmp_string[0] = '\0';
|
|
|
|
|
2016-07-23 02:30:35 +00:00
|
|
|
snprintf(tmp_string, sizeof(tmp_string), "input_player%u", user + 1);
|
|
|
|
|
|
|
|
fill_pathname_join_delim(key[user], tmp_string, "joypad_index", '_',
|
|
|
|
sizeof(key[user]));
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(key_type[user], sizeof(key_type[user]),
|
2016-07-10 12:59:59 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE),
|
|
|
|
user + 1);
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(key_analog[user], sizeof(key_analog[user]),
|
2016-07-10 12:59:59 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE),
|
|
|
|
user + 1);
|
2016-07-23 02:30:35 +00:00
|
|
|
fill_pathname_join_delim(key_bind_all[user], tmp_string, "bind_all", '_',
|
|
|
|
sizeof(key_bind_all[user]));
|
|
|
|
fill_pathname_join_delim(key_bind_all_save_autoconfig[user],
|
|
|
|
tmp_string, "bind_all_save_autoconfig", '_',
|
|
|
|
sizeof(key_bind_all_save_autoconfig[user]));
|
|
|
|
fill_pathname_join_delim(key_bind_defaults[user],
|
|
|
|
tmp_string, "bind_defaults", '_',
|
|
|
|
sizeof(key_bind_defaults[user]));
|
2017-06-08 14:13:45 +00:00
|
|
|
fill_pathname_join_delim(mouse_index[user], tmp_string, "mouse_index", '_',
|
|
|
|
sizeof(mouse_index[user]));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
|
|
|
snprintf(label[user], sizeof(label[user]),
|
2016-10-25 04:03:25 +00:00
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_DEVICE_INDEX));
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(label_type[user], sizeof(label_type[user]),
|
2016-10-25 04:03:25 +00:00
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_DEVICE_TYPE));
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(label_analog[user], sizeof(label_analog[user]),
|
2016-10-25 04:03:25 +00:00
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_ADC_TYPE));
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(label_bind_all[user], sizeof(label_bind_all[user]),
|
2016-10-25 04:03:25 +00:00
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_BIND_ALL));
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(label_bind_defaults[user], sizeof(label_bind_defaults[user]),
|
2016-10-25 04:03:25 +00:00
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_BIND_DEFAULT_ALL));
|
2015-10-23 04:54:33 +00:00
|
|
|
snprintf(label_bind_all_save_autoconfig[user], sizeof(label_bind_all_save_autoconfig[user]),
|
2016-10-25 04:03:25 +00:00
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SAVE_AUTOCONFIG));
|
2017-06-08 14:13:45 +00:00
|
|
|
snprintf(label_mouse_index[user], sizeof(label_mouse_index[user]),
|
|
|
|
"%s %u %s", msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER), user + 1,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_MOUSE_INDEX));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-10-26 03:38:25 +00:00
|
|
|
CONFIG_UINT_ALT(
|
2015-11-21 15:32:22 +00:00
|
|
|
list, list_info,
|
2017-04-25 15:14:46 +00:00
|
|
|
input_config_get_device_ptr(user),
|
2015-10-23 04:54:33 +00:00
|
|
|
key_type[user],
|
|
|
|
label_type[user],
|
|
|
|
user,
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_left = &setting_action_left_libretro_device_type;
|
|
|
|
(*list)[list_info->index - 1].action_right = &setting_action_right_libretro_device_type;
|
|
|
|
(*list)[list_info->index - 1].action_select = &setting_action_right_libretro_device_type;
|
|
|
|
(*list)[list_info->index - 1].action_start = &setting_action_start_libretro_device_type;
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2015-10-23 04:54:33 +00:00
|
|
|
&setting_get_string_representation_uint_libretro_device;
|
2017-09-08 22:02:38 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info,
|
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_LIBRETRO_DEVICE + user));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-10-26 03:38:25 +00:00
|
|
|
CONFIG_UINT_ALT(
|
2015-11-21 15:32:22 +00:00
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_analog_dpad_mode[user],
|
2015-10-23 04:54:33 +00:00
|
|
|
key_analog[user],
|
|
|
|
label_analog[user],
|
|
|
|
user,
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_left = &setting_action_left_analog_dpad_mode;
|
|
|
|
(*list)[list_info->index - 1].action_right = &setting_action_right_analog_dpad_mode;
|
|
|
|
(*list)[list_info->index - 1].action_select = &setting_action_right_analog_dpad_mode;
|
|
|
|
(*list)[list_info->index - 1].action_start = &setting_action_start_analog_dpad_mode;
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2015-10-23 04:54:33 +00:00
|
|
|
&setting_get_string_representation_uint_analog_dpad_mode;
|
2017-09-08 22:02:38 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info,
|
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_PLAYER_ANALOG_DPAD_MODE + user));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-10-26 03:15:52 +00:00
|
|
|
CONFIG_ACTION_ALT(
|
2015-11-21 15:32:22 +00:00
|
|
|
list, list_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
key[user],
|
|
|
|
label[user],
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_start = &setting_action_start_bind_device;
|
|
|
|
(*list)[list_info->index - 1].action_left = &setting_action_left_bind_device;
|
|
|
|
(*list)[list_info->index - 1].action_right = &setting_action_right_bind_device;
|
|
|
|
(*list)[list_info->index - 1].action_select = &setting_action_right_bind_device;
|
|
|
|
(*list)[list_info->index - 1].get_string_representation = &get_string_representation_bind_device;
|
|
|
|
|
2016-10-26 03:15:52 +00:00
|
|
|
CONFIG_ACTION_ALT(
|
2015-11-21 15:32:22 +00:00
|
|
|
list, list_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
key_bind_all[user],
|
|
|
|
label_bind_all[user],
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_bind_all;
|
|
|
|
(*list)[list_info->index - 1].action_cancel = NULL;
|
|
|
|
|
2016-10-26 03:15:52 +00:00
|
|
|
CONFIG_ACTION_ALT(
|
2015-11-21 15:32:22 +00:00
|
|
|
list, list_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
key_bind_defaults[user],
|
|
|
|
label_bind_defaults[user],
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_bind_defaults;
|
|
|
|
(*list)[list_info->index - 1].action_cancel = NULL;
|
|
|
|
|
2016-10-26 03:15:52 +00:00
|
|
|
CONFIG_ACTION_ALT(
|
2015-11-21 15:32:22 +00:00
|
|
|
list, list_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
key_bind_all_save_autoconfig[user],
|
|
|
|
label_bind_all_save_autoconfig[user],
|
2015-11-21 15:32:22 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2015-10-23 04:54:33 +00:00
|
|
|
parent_group);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_bind_all_save_autoconfig;
|
|
|
|
(*list)[list_info->index - 1].action_cancel = NULL;
|
2017-06-08 14:13:45 +00:00
|
|
|
|
|
|
|
CONFIG_UINT_ALT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.input_mouse_index[user],
|
|
|
|
mouse_index[user],
|
|
|
|
label_mouse_index[user],
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
(*list)[list_info->index - 1].index = user + 1;
|
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
|
|
|
(*list)[list_info->index - 1].action_left = &setting_action_left_mouse_index;
|
|
|
|
(*list)[list_info->index - 1].action_right = &setting_action_right_mouse_index;
|
2015-10-23 04:54:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
for (i = 0; i < RARCH_BIND_LIST_END; i ++)
|
|
|
|
{
|
2016-10-27 07:49:21 +00:00
|
|
|
char label[255];
|
|
|
|
char name[255];
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2015-12-01 17:29:30 +00:00
|
|
|
if (input_config_bind_map_get_meta(i))
|
2015-10-23 04:54:33 +00:00
|
|
|
continue;
|
|
|
|
|
2016-10-26 04:23:05 +00:00
|
|
|
label[0] = name[0] = '\0';
|
|
|
|
|
2016-06-29 16:14:29 +00:00
|
|
|
fill_pathname_noext(label, buffer[user],
|
2016-06-29 15:43:36 +00:00
|
|
|
" ",
|
|
|
|
sizeof(label));
|
2016-07-10 13:04:01 +00:00
|
|
|
|
2015-10-23 04:54:33 +00:00
|
|
|
if (
|
2017-04-28 11:43:47 +00:00
|
|
|
settings->bools.input_descriptor_label_show
|
2015-10-23 04:54:33 +00:00
|
|
|
&& (i < RARCH_FIRST_META_KEY)
|
2016-05-07 23:33:57 +00:00
|
|
|
&& core_has_set_input_descriptor()
|
2015-10-23 04:54:33 +00:00
|
|
|
&& (i != RARCH_TURBO_ENABLE)
|
|
|
|
)
|
|
|
|
{
|
|
|
|
if (system->input_desc_btn[user][i])
|
2017-07-14 19:11:27 +00:00
|
|
|
strlcat(label,
|
2015-10-23 04:54:33 +00:00
|
|
|
system->input_desc_btn[user][i],
|
|
|
|
sizeof(label));
|
|
|
|
else
|
|
|
|
{
|
2016-06-19 22:31:13 +00:00
|
|
|
strlcat(label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
2015-10-23 04:54:33 +00:00
|
|
|
sizeof(label));
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings->bools.input_descriptor_hide_unbound)
|
2016-07-10 13:04:01 +00:00
|
|
|
continue;
|
2015-10-23 04:54:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
2015-11-28 01:13:27 +00:00
|
|
|
strlcat(label, input_config_bind_map_get_desc(i), sizeof(label));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2015-11-28 01:13:27 +00:00
|
|
|
snprintf(name, sizeof(name), "p%u_%s", user + 1, input_config_bind_map_get_base(i));
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-10-27 02:03:24 +00:00
|
|
|
CONFIG_BIND_ALT(
|
2016-07-10 13:04:01 +00:00
|
|
|
list, list_info,
|
2017-04-25 22:24:59 +00:00
|
|
|
&input_config_binds[user][i],
|
2016-07-10 13:04:01 +00:00
|
|
|
user + 1,
|
|
|
|
user,
|
|
|
|
strdup(name),
|
|
|
|
strdup(label),
|
|
|
|
&defaults[i],
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
(*list)[list_info->index - 1].bind_type = i + MENU_SETTINGS_BIND_BEGIN;
|
2015-10-23 04:54:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-12-12 11:29:37 +00:00
|
|
|
/**
|
|
|
|
* config_get_audio_resampler_driver_options:
|
|
|
|
*
|
|
|
|
* Get an enumerated list of all resampler driver names, separated by '|'.
|
|
|
|
*
|
|
|
|
* Returns: string listing of all resampler driver names, separated by '|'.
|
|
|
|
**/
|
|
|
|
static const char* config_get_audio_resampler_driver_options(void)
|
|
|
|
{
|
|
|
|
return char_list_new_special(STRING_LIST_AUDIO_RESAMPLER_DRIVERS, NULL);
|
|
|
|
}
|
|
|
|
|
2017-05-23 22:15:18 +00:00
|
|
|
static int directory_action_start_generic(void *data)
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
setting_set_with_string_representation(setting,
|
|
|
|
setting->default_value.string);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
static bool setting_append_list(
|
|
|
|
enum settings_list_type type,
|
2015-06-02 18:26:27 +00:00
|
|
|
rarch_setting_t **list,
|
2015-06-07 23:40:25 +00:00
|
|
|
rarch_setting_info_t *list_info,
|
2015-10-19 01:28:00 +00:00
|
|
|
const char *parent_group)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2015-10-23 04:54:33 +00:00
|
|
|
unsigned user;
|
2015-06-06 08:35:14 +00:00
|
|
|
rarch_setting_group_info_t group_info = {0};
|
|
|
|
rarch_setting_group_info_t subgroup_info = {0};
|
2016-12-19 17:40:00 +00:00
|
|
|
settings_t *settings = config_get_ptr();
|
|
|
|
global_t *global = global_get_ptr();
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-06-23 09:46:45 +00:00
|
|
|
(void)settings;
|
2016-03-20 19:45:06 +00:00
|
|
|
(void)global;
|
2015-06-23 09:46:45 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case SETTINGS_LIST_MAIN_MENU:
|
2016-06-19 22:31:13 +00:00
|
|
|
START_GROUP(list, list_info, &group_info, msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU), parent_group);
|
2016-06-17 00:46:17 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_MAIN_MENU);
|
2016-03-20 18:54:16 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-15 04:15:02 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_INT(
|
|
|
|
list, list_info,
|
2017-04-28 17:12:48 +00:00
|
|
|
&settings->ints.state_slot,
|
2016-10-26 03:32:28 +00:00
|
|
|
MENU_ENUM_LABEL_STATE_SLOT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_STATE_SLOT,
|
2016-03-20 18:54:16 +00:00
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, -1, 0, 1, true, false);
|
2015-11-01 09:59:01 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_START_CORE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_START_CORE,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-01-24 00:51:05 +00:00
|
|
|
|
2016-07-28 18:35:05 +00:00
|
|
|
#if defined(HAVE_VIDEO_PROCESSOR)
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_START_VIDEO_PROCESSOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_START_VIDEO_PROCESSOR,
|
2016-07-28 18:35:05 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
#endif
|
|
|
|
|
2017-12-02 18:59:44 +00:00
|
|
|
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORKGAMEPAD)
|
2016-05-27 17:18:46 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_START_NET_RETROPAD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD,
|
2016-05-27 17:18:46 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
#endif
|
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_CONTENT_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SETTINGS,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-07-18 20:11:59 +00:00
|
|
|
|
2017-09-26 12:41:07 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_XMB_MAIN_MENU_ENABLE_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_MAIN_MENU_ENABLE_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2017-10-11 09:30:53 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_MENU_DISABLE_KIOSK_MODE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_DISABLE_KIOSK_MODE,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2016-02-04 10:31:34 +00:00
|
|
|
#ifndef HAVE_DYNAMIC
|
2016-03-20 18:54:16 +00:00
|
|
|
if (frontend_driver_has_fork())
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
2016-03-20 18:54:16 +00:00
|
|
|
{
|
2016-10-27 07:49:21 +00:00
|
|
|
char ext_name[255];
|
2016-10-26 04:23:05 +00:00
|
|
|
|
|
|
|
ext_name[0] = '\0';
|
2016-03-20 18:54:16 +00:00
|
|
|
|
|
|
|
if (frontend_driver_get_core_extension(ext_name, sizeof(ext_name)))
|
|
|
|
{
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_LIST,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-26 09:33:03 +00:00
|
|
|
(*list)[list_info->index - 1].size = (uint32_t)path_get_realsize(RARCH_PATH_CORE);
|
2016-10-03 13:46:07 +00:00
|
|
|
(*list)[list_info->index - 1].value.target.string = path_get_ptr(RARCH_PATH_CORE);
|
2016-03-20 18:54:16 +00:00
|
|
|
(*list)[list_info->index - 1].values = ext_name;
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_LOAD_CORE);
|
2016-03-20 18:54:16 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_BROWSER_ACTION);
|
|
|
|
}
|
|
|
|
}
|
2016-02-03 13:36:34 +00:00
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_LOAD_CONTENT_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST,
|
2016-02-03 13:36:34 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
if (settings->bools.history_list_enable)
|
2016-03-20 18:54:16 +00:00
|
|
|
{
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_HISTORY,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
}
|
2015-06-28 14:24:21 +00:00
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(settings->arrays.menu_driver, "xmb", 3))
|
2016-10-29 13:04:20 +00:00
|
|
|
{
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_ADD_CONTENT_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
}
|
2015-07-03 23:51:41 +00:00
|
|
|
|
2016-09-29 19:07:10 +00:00
|
|
|
#if defined(HAVE_NETWORKING)
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-09-29 02:45:31 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_ONLINE_UPDATER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER,
|
2016-09-29 02:45:31 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
#endif
|
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SETTINGS,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_INFORMATION_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INFORMATION_LIST,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-22 06:06:54 +00:00
|
|
|
|
2016-07-26 09:25:04 +00:00
|
|
|
#ifndef __CELLOS_LV2__
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_RESTART_RETROARCH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RESTART_RETROARCH,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_RESTART_RETROARCH);
|
2016-07-26 09:25:04 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-11-04 14:03:09 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-11-21 06:26:58 +00:00
|
|
|
MENU_ENUM_LABEL_CONFIGURATIONS_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONFIGURATIONS_LIST,
|
2016-11-04 14:03:09 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-11-04 14:03:09 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-11-21 06:26:58 +00:00
|
|
|
MENU_ENUM_LABEL_CONFIGURATIONS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONFIGURATIONS,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-11-11 01:57:20 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_SAVE_NEW_CONFIG,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVE_NEW_CONFIG,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_SAVE_CONFIG);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-25 05:54:39 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG_OVERRIDE_CORE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_CORE,
|
2016-08-25 05:54:39 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-08-26 14:43:29 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_CORE);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-08-26 14:43:29 +00:00
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_SAVE_CURRENT_CONFIG_OVERRIDE_GAME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVE_CURRENT_CONFIG_OVERRIDE_GAME,
|
2016-08-26 14:43:29 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_SAVE_CURRENT_CONFIG_OVERRIDE_GAME);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-08-25 05:54:39 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_HELP_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_HELP_LIST,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
#if !defined(IOS)
|
2016-03-20 18:54:16 +00:00
|
|
|
/* Apple rejects iOS apps that lets you forcibly quit an application. */
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_QUIT_RETROARCH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUIT_RETROARCH,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-05-11 18:56:02 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_QUIT);
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
|
|
|
|
2015-10-23 08:24:47 +00:00
|
|
|
#if defined(HAVE_LAKKA)
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-12-23 21:12:33 +00:00
|
|
|
MENU_ENUM_LABEL_REBOOT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_REBOOT,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-12-23 21:12:33 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REBOOT);
|
2015-10-23 08:24:47 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-12-23 21:12:33 +00:00
|
|
|
MENU_ENUM_LABEL_SHUTDOWN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SHUTDOWN,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-12-23 21:12:33 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_SHUTDOWN);
|
2016-01-18 19:31:38 +00:00
|
|
|
#endif
|
|
|
|
|
2016-06-16 19:40:13 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_DRIVER_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS,
|
2016-06-16 19:40:13 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-06-16 19:40:13 +00:00
|
|
|
|
2016-06-17 02:02:26 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS,
|
2016-06-17 02:02:26 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS,
|
2016-06-17 02:02:26 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-12-01 23:20:50 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_CORE_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-12-01 23:23:08 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-06-18 20:17:39 +00:00
|
|
|
|
2016-11-21 06:26:58 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_CONFIGURATION_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONFIGURATION_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-11-21 06:26:58 +00:00
|
|
|
|
2016-07-02 10:03:50 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_SAVING_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVING_SETTINGS,
|
2016-07-02 10:03:50 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 10:03:50 +00:00
|
|
|
|
2016-12-01 23:20:50 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_LOGGING_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-07-02 10:03:50 +00:00
|
|
|
|
2016-07-02 11:17:24 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_FRAME_THROTTLE_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS,
|
2016-07-02 11:17:24 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 11:17:24 +00:00
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_REWIND_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_REWIND_SETTINGS,
|
2016-07-02 11:17:24 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 11:17:24 +00:00
|
|
|
|
2016-10-02 05:54:56 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_RECORDING_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS,
|
2016-10-02 05:54:56 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-10-02 05:54:56 +00:00
|
|
|
|
2016-07-02 11:49:05 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_ONSCREEN_DISPLAY_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS,
|
2016-07-02 11:49:05 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 11:49:05 +00:00
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_ONSCREEN_OVERLAY_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ONSCREEN_OVERLAY_SETTINGS,
|
2016-07-02 11:49:05 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 11:49:05 +00:00
|
|
|
|
2016-11-23 13:28:15 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_ONSCREEN_NOTIFICATIONS_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ONSCREEN_NOTIFICATIONS_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-11-23 13:28:15 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2017-06-20 00:04:23 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_MENU_VIEWS_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_VIEWS_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2017-10-09 06:14:52 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_VIEWS_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_VIEWS_SETTINGS,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_USER_INTERFACE_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_USER_INTERFACE_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 18:40:27 +00:00
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_RETRO_ACHIEVEMENTS_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RETRO_ACHIEVEMENTS_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_UPDATER_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_UPDATER_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-12-12 00:51:13 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-07-02 18:40:27 +00:00
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(settings->arrays.wifi_driver, "null", 4))
|
2016-09-22 02:19:31 +00:00
|
|
|
{
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_WIFI_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_WIFI_SETTINGS,
|
2016-09-22 02:19:31 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
}
|
2016-09-21 19:58:43 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETWORK_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 18:40:27 +00:00
|
|
|
|
2016-08-09 23:46:47 +00:00
|
|
|
#ifdef HAVE_LAKKA
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_LAKKA_SERVICES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LAKKA_SERVICES,
|
2016-08-09 23:46:47 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
#endif
|
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_PLAYLIST_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PLAYLIST_SETTINGS,
|
2016-03-20 18:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_USER_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_USER_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_DIRECTORY_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-02 18:40:27 +00:00
|
|
|
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_PRIVACY_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PRIVACY_SETTINGS,
|
2016-07-02 18:40:27 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
for (user = 0; user < MAX_USERS; user++)
|
|
|
|
setting_append_list_input_player_options(list, list_info, parent_group, user);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 18:54:16 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_DRIVERS:
|
2016-10-26 05:58:21 +00:00
|
|
|
{
|
|
|
|
unsigned i;
|
2016-10-26 06:02:17 +00:00
|
|
|
struct string_options_entry string_options_entries[10];
|
2016-10-26 05:58:21 +00:00
|
|
|
|
|
|
|
START_GROUP(list, list_info, &group_info, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DRIVER_SETTINGS), parent_group);
|
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_DRIVER_SETTINGS);
|
|
|
|
|
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
|
|
|
|
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info,
|
|
|
|
&subgroup_info, parent_group);
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[0].target = settings->arrays.input_driver;
|
|
|
|
string_options_entries[0].len = sizeof(settings->arrays.input_driver);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[0].name_enum_idx = MENU_ENUM_LABEL_INPUT_DRIVER;
|
|
|
|
string_options_entries[0].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_INPUT_DRIVER;
|
|
|
|
string_options_entries[0].default_value = config_get_default_input();
|
|
|
|
string_options_entries[0].values = config_get_input_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[1].target = settings->arrays.input_joypad_driver;
|
|
|
|
string_options_entries[1].len = sizeof(settings->arrays.input_joypad_driver);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[1].name_enum_idx = MENU_ENUM_LABEL_JOYPAD_DRIVER;
|
|
|
|
string_options_entries[1].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_JOYPAD_DRIVER;
|
|
|
|
string_options_entries[1].default_value = config_get_default_joypad();
|
|
|
|
string_options_entries[1].values = config_get_joypad_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[2].target = settings->arrays.video_driver;
|
|
|
|
string_options_entries[2].len = sizeof(settings->arrays.video_driver);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[2].name_enum_idx = MENU_ENUM_LABEL_VIDEO_DRIVER;
|
|
|
|
string_options_entries[2].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_VIDEO_DRIVER;
|
|
|
|
string_options_entries[2].default_value = config_get_default_video();
|
|
|
|
string_options_entries[2].values = config_get_video_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[3].target = settings->arrays.audio_driver;
|
|
|
|
string_options_entries[3].len = sizeof(settings->arrays.audio_driver);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[3].name_enum_idx = MENU_ENUM_LABEL_AUDIO_DRIVER;
|
|
|
|
string_options_entries[3].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_AUDIO_DRIVER;
|
|
|
|
string_options_entries[3].default_value = config_get_default_audio();
|
|
|
|
string_options_entries[3].values = config_get_audio_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[4].target = settings->arrays.audio_resampler;
|
|
|
|
string_options_entries[4].len = sizeof(settings->arrays.audio_resampler);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[4].name_enum_idx = MENU_ENUM_LABEL_AUDIO_RESAMPLER_DRIVER;
|
|
|
|
string_options_entries[4].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_AUDIO_RESAMPLER_DRIVER;
|
|
|
|
string_options_entries[4].default_value = config_get_default_audio_resampler();
|
|
|
|
string_options_entries[4].values = config_get_audio_resampler_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[5].target = settings->arrays.camera_driver;
|
|
|
|
string_options_entries[5].len = sizeof(settings->arrays.camera_driver);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[5].name_enum_idx = MENU_ENUM_LABEL_CAMERA_DRIVER;
|
|
|
|
string_options_entries[5].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_CAMERA_DRIVER;
|
|
|
|
string_options_entries[5].default_value = config_get_default_camera();
|
|
|
|
string_options_entries[5].values = config_get_camera_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[6].target = settings->arrays.wifi_driver;
|
|
|
|
string_options_entries[6].len = sizeof(settings->arrays.wifi_driver);
|
2016-10-26 05:58:21 +00:00
|
|
|
string_options_entries[6].name_enum_idx = MENU_ENUM_LABEL_WIFI_DRIVER;
|
|
|
|
string_options_entries[6].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_WIFI_DRIVER;
|
|
|
|
string_options_entries[6].default_value = config_get_default_wifi();
|
|
|
|
string_options_entries[6].values = config_get_wifi_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[7].target = settings->arrays.location_driver;
|
|
|
|
string_options_entries[7].len = sizeof(settings->arrays.location_driver);
|
2016-10-26 06:02:17 +00:00
|
|
|
string_options_entries[7].name_enum_idx = MENU_ENUM_LABEL_LOCATION_DRIVER;
|
|
|
|
string_options_entries[7].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_LOCATION_DRIVER;
|
|
|
|
string_options_entries[7].default_value = config_get_default_location();
|
|
|
|
string_options_entries[7].values = config_get_location_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[8].target = settings->arrays.menu_driver;
|
|
|
|
string_options_entries[8].len = sizeof(settings->arrays.menu_driver);
|
2016-10-26 06:02:17 +00:00
|
|
|
string_options_entries[8].name_enum_idx = MENU_ENUM_LABEL_MENU_DRIVER;
|
|
|
|
string_options_entries[8].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_MENU_DRIVER;
|
|
|
|
string_options_entries[8].default_value = config_get_default_menu();
|
|
|
|
string_options_entries[8].values = config_get_menu_driver_options();
|
|
|
|
|
2017-04-28 20:59:13 +00:00
|
|
|
string_options_entries[9].target = settings->arrays.record_driver;
|
|
|
|
string_options_entries[9].len = sizeof(settings->arrays.record_driver);
|
2016-10-26 06:02:17 +00:00
|
|
|
string_options_entries[9].name_enum_idx = MENU_ENUM_LABEL_RECORD_DRIVER;
|
|
|
|
string_options_entries[9].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_RECORD_DRIVER;
|
|
|
|
string_options_entries[9].default_value = config_get_default_record();
|
|
|
|
string_options_entries[9].values = config_get_record_driver_options();
|
|
|
|
|
2016-10-26 05:58:21 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE(string_options_entries); i++)
|
|
|
|
{
|
|
|
|
CONFIG_STRING_OPTIONS(
|
|
|
|
list, list_info,
|
|
|
|
string_options_entries[i].target,
|
|
|
|
string_options_entries[i].len,
|
|
|
|
string_options_entries[i].name_enum_idx,
|
|
|
|
string_options_entries[i].SHORT_enum_idx,
|
|
|
|
string_options_entries[i].default_value,
|
|
|
|
string_options_entries[i].values,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_read_handler,
|
|
|
|
general_write_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_IS_DRIVER);
|
|
|
|
(*list)[list_info->index - 1].action_left = setting_string_action_left_driver;
|
|
|
|
(*list)[list_info->index - 1].action_right = setting_string_action_right_driver;
|
|
|
|
}
|
2016-03-20 18:54:16 +00:00
|
|
|
|
2016-10-26 05:58:21 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
2016-05-23 19:39:17 +00:00
|
|
|
break;
|
2016-03-20 18:54:16 +00:00
|
|
|
case SETTINGS_LIST_CORE:
|
2016-10-26 05:32:42 +00:00
|
|
|
{
|
|
|
|
unsigned i;
|
2016-11-30 04:22:22 +00:00
|
|
|
struct bool_entry bool_entries[5];
|
2016-06-18 20:17:39 +00:00
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
START_GROUP(list, list_info, &group_info,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_SETTINGS), parent_group);
|
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_CORE_SETTINGS);
|
2016-03-20 18:54:16 +00:00
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-03-20 18:54:16 +00:00
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
bool_entries[0].target = &settings->bools.video_shared_context;
|
2016-10-26 05:32:42 +00:00
|
|
|
bool_entries[0].name_enum_idx = MENU_ENUM_LABEL_VIDEO_SHARED_CONTEXT;
|
|
|
|
bool_entries[0].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_VIDEO_SHARED_CONTEXT;
|
|
|
|
bool_entries[0].default_value = video_shared_context;
|
|
|
|
bool_entries[0].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[1].target = &settings->bools.load_dummy_on_core_shutdown;
|
2016-10-26 05:32:42 +00:00
|
|
|
bool_entries[1].name_enum_idx = MENU_ENUM_LABEL_DUMMY_ON_CORE_SHUTDOWN;
|
|
|
|
bool_entries[1].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_DUMMY_ON_CORE_SHUTDOWN;
|
|
|
|
bool_entries[1].default_value = load_dummy_on_core_shutdown;
|
|
|
|
bool_entries[1].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[2].target = &settings->bools.set_supports_no_game_enable;
|
2016-10-26 05:32:42 +00:00
|
|
|
bool_entries[2].name_enum_idx = MENU_ENUM_LABEL_CORE_SET_SUPPORTS_NO_CONTENT_ENABLE;
|
|
|
|
bool_entries[2].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_CORE_SET_SUPPORTS_NO_CONTENT_ENABLE;
|
|
|
|
bool_entries[2].default_value = true;
|
|
|
|
bool_entries[2].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[3].target = &settings->bools.check_firmware_before_loading;
|
2016-11-30 04:22:22 +00:00
|
|
|
bool_entries[3].name_enum_idx = MENU_ENUM_LABEL_CHECK_FOR_MISSING_FIRMWARE;
|
|
|
|
bool_entries[3].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_CHECK_FOR_MISSING_FIRMWARE;
|
|
|
|
bool_entries[3].default_value = true;
|
2016-11-21 08:01:56 +00:00
|
|
|
bool_entries[3].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
2017-04-27 22:53:06 +00:00
|
|
|
bool_entries[4].target = &settings->bools.video_allow_rotate;
|
2016-11-30 04:22:22 +00:00
|
|
|
bool_entries[4].name_enum_idx = MENU_ENUM_LABEL_VIDEO_ALLOW_ROTATE;
|
|
|
|
bool_entries[4].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_VIDEO_ALLOW_ROTATE;
|
|
|
|
bool_entries[4].default_value = allow_rotate;
|
|
|
|
bool_entries[4].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE(bool_entries); i++)
|
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
bool_entries[i].target,
|
|
|
|
bool_entries[i].name_enum_idx,
|
|
|
|
bool_entries[i].SHORT_enum_idx,
|
|
|
|
bool_entries[i].default_value,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
bool_entries[i].flags);
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
|
2016-10-26 05:32:42 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
2016-03-20 18:54:16 +00:00
|
|
|
break;
|
2016-03-20 19:45:06 +00:00
|
|
|
case SETTINGS_LIST_CONFIGURATION:
|
2016-10-26 05:36:23 +00:00
|
|
|
{
|
2017-09-08 22:02:38 +00:00
|
|
|
uint8_t i;
|
2016-11-01 09:58:48 +00:00
|
|
|
struct bool_entry bool_entries[6];
|
2016-10-26 05:36:23 +00:00
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-11-21 06:26:58 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CONFIGURATION_SETTINGS), parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-11-21 06:26:58 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_CONFIGURATION_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-26 05:36:23 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[0].target = &settings->bools.config_save_on_exit;
|
2016-10-26 05:36:23 +00:00
|
|
|
bool_entries[0].name_enum_idx = MENU_ENUM_LABEL_CONFIG_SAVE_ON_EXIT;
|
|
|
|
bool_entries[0].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_CONFIG_SAVE_ON_EXIT;
|
|
|
|
bool_entries[0].default_value = config_save_on_exit;
|
|
|
|
bool_entries[0].flags = SD_FLAG_NONE;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[1].target = &settings->bools.show_hidden_files;
|
2016-11-01 09:58:48 +00:00
|
|
|
bool_entries[1].name_enum_idx = MENU_ENUM_LABEL_SHOW_HIDDEN_FILES;
|
|
|
|
bool_entries[1].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SHOW_HIDDEN_FILES;
|
|
|
|
bool_entries[1].default_value = show_hidden_files;
|
|
|
|
bool_entries[1].flags = SD_FLAG_NONE;
|
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[2].target = &settings->bools.game_specific_options;
|
2016-11-01 09:58:48 +00:00
|
|
|
bool_entries[2].name_enum_idx = MENU_ENUM_LABEL_GAME_SPECIFIC_OPTIONS;
|
|
|
|
bool_entries[2].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_GAME_SPECIFIC_OPTIONS;
|
|
|
|
bool_entries[2].default_value = default_game_specific_options;
|
2017-02-19 22:35:30 +00:00
|
|
|
bool_entries[2].flags = SD_FLAG_ADVANCED;
|
2016-08-28 01:48:55 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[3].target = &settings->bools.auto_overrides_enable;
|
2016-11-01 09:58:48 +00:00
|
|
|
bool_entries[3].name_enum_idx = MENU_ENUM_LABEL_AUTO_OVERRIDES_ENABLE;
|
|
|
|
bool_entries[3].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_AUTO_OVERRIDES_ENABLE;
|
|
|
|
bool_entries[3].default_value = default_auto_overrides_enable;
|
2017-02-15 15:15:09 +00:00
|
|
|
bool_entries[3].flags = SD_FLAG_ADVANCED;
|
2016-10-26 05:40:01 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[4].target = &settings->bools.auto_remaps_enable;
|
2016-11-01 09:58:48 +00:00
|
|
|
bool_entries[4].name_enum_idx = MENU_ENUM_LABEL_AUTO_REMAPS_ENABLE;
|
|
|
|
bool_entries[4].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_AUTO_REMAPS_ENABLE;
|
|
|
|
bool_entries[4].default_value = default_auto_remaps_enable;
|
2017-02-15 15:15:09 +00:00
|
|
|
bool_entries[4].flags = SD_FLAG_ADVANCED;
|
2016-10-26 05:40:01 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[5].target = &settings->bools.auto_shaders_enable;
|
2016-11-01 09:58:48 +00:00
|
|
|
bool_entries[5].name_enum_idx = MENU_ENUM_LABEL_AUTO_SHADERS_ENABLE;
|
|
|
|
bool_entries[5].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_AUTO_SHADERS_ENABLE;
|
|
|
|
bool_entries[5].default_value = default_auto_shaders_enable;
|
2016-10-26 05:40:01 +00:00
|
|
|
bool_entries[5].flags = SD_FLAG_NONE;
|
|
|
|
|
2016-10-26 05:36:23 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE(bool_entries); i++)
|
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
bool_entries[i].target,
|
|
|
|
bool_entries[i].name_enum_idx,
|
|
|
|
bool_entries[i].SHORT_enum_idx,
|
|
|
|
bool_entries[i].default_value,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
bool_entries[i].flags);
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-26 05:36:23 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
2016-03-20 19:45:06 +00:00
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_LOGGING:
|
|
|
|
{
|
|
|
|
bool *tmp_b = NULL;
|
2016-06-19 22:31:13 +00:00
|
|
|
START_GROUP(list, list_info, &group_info, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LOGGING_SETTINGS), parent_group);
|
2016-07-02 10:03:50 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_LOGGING_SETTINGS);
|
2015-11-18 02:08:19 +00:00
|
|
|
|
2016-07-02 10:03:50 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-11-15 17:29:19 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2016-05-31 02:42:04 +00:00
|
|
|
verbosity_get_ptr(),
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_LOG_VERBOSITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LOG_VERBOSITY,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.libretro_log_level,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LIBRETRO_LOG_LEVEL,
|
2016-03-20 19:45:06 +00:00
|
|
|
libretro_log_level,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1.0, true, true);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2016-03-20 19:45:06 +00:00
|
|
|
&setting_get_string_representation_uint_libretro_log_level;
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Performance Counters", &group_info, &subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-05-15 03:06:23 +00:00
|
|
|
rarch_ctl(RARCH_CTL_GET_PERFCNT, &tmp_b);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
tmp_b,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_PERFCNT_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PERFCNT_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_SAVING:
|
2016-10-27 02:12:49 +00:00
|
|
|
{
|
2017-09-08 22:02:38 +00:00
|
|
|
uint8_t i;
|
2017-08-05 18:14:26 +00:00
|
|
|
struct bool_entry bool_entries[11];
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-27 02:12:49 +00:00
|
|
|
START_GROUP(list, list_info, &group_info, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SAVING_SETTINGS), parent_group);
|
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SAVING_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-27 02:12:49 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[0].target = &settings->bools.sort_savefiles_enable;
|
2016-10-27 02:12:49 +00:00
|
|
|
bool_entries[0].name_enum_idx = MENU_ENUM_LABEL_SORT_SAVEFILES_ENABLE;
|
|
|
|
bool_entries[0].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SORT_SAVEFILES_ENABLE;
|
|
|
|
bool_entries[0].default_value = default_sort_savefiles_enable;
|
2016-12-17 10:05:08 +00:00
|
|
|
bool_entries[0].flags = SD_FLAG_ADVANCED;
|
2016-03-20 19:45:06 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[1].target = &settings->bools.sort_savestates_enable;
|
2016-10-27 02:12:49 +00:00
|
|
|
bool_entries[1].name_enum_idx = MENU_ENUM_LABEL_SORT_SAVESTATES_ENABLE;
|
|
|
|
bool_entries[1].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SORT_SAVESTATES_ENABLE;
|
|
|
|
bool_entries[1].default_value = default_sort_savestates_enable;
|
2016-12-17 10:05:08 +00:00
|
|
|
bool_entries[1].flags = SD_FLAG_ADVANCED;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[2].target = &settings->bools.block_sram_overwrite;
|
2016-10-27 02:12:49 +00:00
|
|
|
bool_entries[2].name_enum_idx = MENU_ENUM_LABEL_BLOCK_SRAM_OVERWRITE;
|
|
|
|
bool_entries[2].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_BLOCK_SRAM_OVERWRITE;
|
|
|
|
bool_entries[2].default_value = block_sram_overwrite;
|
|
|
|
bool_entries[2].flags = SD_FLAG_NONE;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[3].target = &settings->bools.savestate_auto_index;
|
2016-10-27 02:12:49 +00:00
|
|
|
bool_entries[3].name_enum_idx = MENU_ENUM_LABEL_SAVESTATE_AUTO_INDEX;
|
|
|
|
bool_entries[3].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_INDEX;
|
|
|
|
bool_entries[3].default_value = savestate_auto_index;
|
|
|
|
bool_entries[3].flags = SD_FLAG_NONE;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[4].target = &settings->bools.savestate_auto_save;
|
2016-10-27 02:12:49 +00:00
|
|
|
bool_entries[4].name_enum_idx = MENU_ENUM_LABEL_SAVESTATE_AUTO_SAVE;
|
|
|
|
bool_entries[4].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_SAVE;
|
|
|
|
bool_entries[4].default_value = savestate_auto_save;
|
|
|
|
bool_entries[4].flags = SD_FLAG_NONE;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[5].target = &settings->bools.savestate_auto_load;
|
2016-10-27 02:12:49 +00:00
|
|
|
bool_entries[5].name_enum_idx = MENU_ENUM_LABEL_SAVESTATE_AUTO_LOAD;
|
|
|
|
bool_entries[5].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_LOAD;
|
|
|
|
bool_entries[5].default_value = savestate_auto_load;
|
|
|
|
bool_entries[5].flags = SD_FLAG_NONE;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-28 11:43:47 +00:00
|
|
|
bool_entries[6].target = &settings->bools.savestate_thumbnail_enable;
|
2016-11-29 13:57:30 +00:00
|
|
|
bool_entries[6].name_enum_idx = MENU_ENUM_LABEL_SAVESTATE_THUMBNAIL_ENABLE;
|
|
|
|
bool_entries[6].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVESTATE_THUMBNAIL_ENABLE;
|
|
|
|
bool_entries[6].default_value = savestate_thumbnail_enable;
|
2016-12-11 09:59:15 +00:00
|
|
|
bool_entries[6].flags = SD_FLAG_ADVANCED;
|
2016-11-29 13:57:30 +00:00
|
|
|
|
2017-08-05 18:14:26 +00:00
|
|
|
bool_entries[7].target = &settings->bools.savefiles_in_content_dir;
|
|
|
|
bool_entries[7].name_enum_idx = MENU_ENUM_LABEL_SAVEFILES_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[7].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVEFILES_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[7].default_value = default_savefiles_in_content_dir;
|
|
|
|
bool_entries[7].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
|
|
|
bool_entries[8].target = &settings->bools.savestates_in_content_dir;
|
|
|
|
bool_entries[8].name_enum_idx = MENU_ENUM_LABEL_SAVESTATES_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[8].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVESTATES_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[8].default_value = default_savestates_in_content_dir;
|
|
|
|
bool_entries[8].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
|
|
|
bool_entries[9].target = &settings->bools.systemfiles_in_content_dir;
|
|
|
|
bool_entries[9].name_enum_idx = MENU_ENUM_LABEL_SYSTEMFILES_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[9].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SYSTEMFILES_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[9].default_value = default_systemfiles_in_content_dir;
|
|
|
|
bool_entries[9].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
|
|
|
bool_entries[10].target = &settings->bools.screenshots_in_content_dir;
|
|
|
|
bool_entries[10].name_enum_idx = MENU_ENUM_LABEL_SCREENSHOTS_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[10].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SCREENSHOTS_IN_CONTENT_DIR_ENABLE;
|
|
|
|
bool_entries[10].default_value = default_screenshots_in_content_dir;
|
|
|
|
bool_entries[10].flags = SD_FLAG_ADVANCED;
|
|
|
|
|
2016-10-27 02:12:49 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE(bool_entries); i++)
|
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
bool_entries[i].target,
|
|
|
|
bool_entries[i].name_enum_idx,
|
|
|
|
bool_entries[i].SHORT_enum_idx,
|
|
|
|
bool_entries[i].default_value,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
bool_entries[i].flags);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef HAVE_THREADS
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.autosave_interval,
|
2016-10-27 02:12:49 +00:00
|
|
|
MENU_ENUM_LABEL_AUTOSAVE_INTERVAL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUTOSAVE_INTERVAL,
|
|
|
|
autosave_interval,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_AUTOSAVE_INIT);
|
2017-04-08 20:41:45 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 1, true, false);
|
2016-10-27 02:12:49 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2016-10-27 02:12:49 +00:00
|
|
|
&setting_get_string_representation_uint_autosave_interval;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
2016-03-20 19:45:06 +00:00
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_REWIND:
|
2016-06-19 22:31:13 +00:00
|
|
|
START_GROUP(list, list_info, &group_info, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_REWIND_SETTINGS), parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 11:17:24 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_REWIND_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.rewind_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_REWIND_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_REWIND_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
rewind_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_CMD_APPLY_AUTO);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REWIND_TOGGLE);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#if 0
|
|
|
|
CONFIG_SIZE(
|
|
|
|
settings->rewind_buffer_size,
|
|
|
|
"rewind_buffer_size",
|
|
|
|
"Rewind Buffer Size",
|
|
|
|
rewind_buffer_size,
|
|
|
|
group_info,
|
|
|
|
subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler)
|
|
|
|
#endif
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.rewind_granularity,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_REWIND_GRANULARITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_REWIND_GRANULARITY,
|
2016-03-20 19:45:06 +00:00
|
|
|
rewind_granularity,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-07-25 16:33:41 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 32768, 1, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_VIDEO:
|
2017-04-29 11:10:01 +00:00
|
|
|
{
|
|
|
|
struct video_viewport *custom_vp = video_viewport_get_custom();
|
|
|
|
START_GROUP(list, list_info, &group_info, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SETTINGS), parent_group);
|
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_VIDEO_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-10-08 04:47:45 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-02 11:57:54 +00:00
|
|
|
#if !defined(RARCH_CONSOLE) && !defined(RARCH_MOBILE)
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&settings->bools.ui_suspend_screensaver_enable,
|
|
|
|
MENU_ENUM_LABEL_SUSPEND_SCREENSAVER_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SUSPEND_SCREENSAVER_ENABLE,
|
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2017-04-29 11:10:01 +00:00
|
|
|
SD_FLAG_NONE);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-04-29 11:10:01 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&settings->bools.video_fps_show,
|
|
|
|
MENU_ENUM_LABEL_FPS_SHOW,
|
|
|
|
MENU_ENUM_LABEL_VALUE_FPS_SHOW,
|
|
|
|
fps_show,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-10-14 00:35:55 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_framecount_show,
|
|
|
|
MENU_ENUM_LABEL_FRAMECOUNT_SHOW,
|
|
|
|
MENU_ENUM_LABEL_VALUE_FRAMECOUNT_SHOW,
|
|
|
|
fps_show,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(list, list_info, "Platform-specific", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
video_driver_menu_settings((void**)list, (void*)list_info, (void*)&group_info, (void*)&subgroup_info, parent_group);
|
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(list, list_info, "Monitor", &group_info, &subgroup_info, parent_group);
|
|
|
|
|
|
|
|
CONFIG_UINT(
|
2016-03-20 19:45:06 +00:00
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&settings->uints.video_monitor_index,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MONITOR_INDEX,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MONITOR_INDEX,
|
|
|
|
monitor_index,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2017-04-29 11:10:01 +00:00
|
|
|
general_read_handler);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
2017-04-29 11:10:01 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 1, true, false);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2017-04-29 11:10:01 +00:00
|
|
|
&setting_get_string_representation_uint_video_monitor_index;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
if (video_driver_has_windowed())
|
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_fullscreen,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FULLSCREEN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN,
|
|
|
|
fullscreen,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_CMD_APPLY_AUTO);
|
2017-12-17 17:56:26 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT_FROM_TOGGLE);
|
2017-04-29 11:10:01 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
}
|
|
|
|
if (video_driver_has_windowed())
|
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_windowed_fullscreen,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOWED_FULLSCREEN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_WINDOWED_FULLSCREEN,
|
|
|
|
windowed_fullscreen,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-05-02 00:19:33 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_fullscreen_x,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FULLSCREEN_X,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN_X,
|
|
|
|
fullscreen_x,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 7680, 8, true, true);
|
2017-05-02 02:06:07 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-05-02 00:19:33 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_fullscreen_y,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FULLSCREEN_Y,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FULLSCREEN_Y,
|
|
|
|
fullscreen_y,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 4320, 8, true, true);
|
2017-05-02 02:06:07 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-04-29 11:10:01 +00:00
|
|
|
}
|
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_refresh_rate,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE,
|
|
|
|
refresh_rate,
|
|
|
|
"%.3f Hz",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 0.001, true, false);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_refresh_rate,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_REFRESH_RATE_AUTO,
|
|
|
|
refresh_rate,
|
|
|
|
"%.3f Hz",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
(*list)[list_info->index - 1].action_start = &setting_action_start_video_refresh_rate_auto;
|
|
|
|
(*list)[list_info->index - 1].action_ok = &setting_action_ok_video_refresh_rate_auto;
|
|
|
|
(*list)[list_info->index - 1].action_select = &setting_action_ok_video_refresh_rate_auto;
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2017-04-29 11:10:01 +00:00
|
|
|
&setting_get_string_representation_st_float_video_refresh_rate_auto;
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.video_driver, "gl"))
|
2017-04-29 11:10:01 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_force_srgb_disable,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FORCE_SRGB_DISABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FORCE_SRGB_DISABLE,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_CMD_APPLY_AUTO | SD_FLAG_ADVANCED
|
|
|
|
);
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
|
|
|
}
|
2016-03-20 19:45:06 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(list, list_info, "Aspect", &group_info, &subgroup_info, parent_group);
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_aspect_ratio_idx,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_ASPECT_RATIO_INDEX,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_ASPECT_RATIO_INDEX,
|
|
|
|
aspect_ratio_idx,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_SET_ASPECT_RATIO);
|
|
|
|
menu_settings_list_current_add_range(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
0,
|
|
|
|
LAST_ASPECT_RATIO,
|
|
|
|
1,
|
|
|
|
true,
|
|
|
|
true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2017-04-29 11:10:01 +00:00
|
|
|
&setting_get_string_representation_uint_aspect_ratio_index;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-05-02 01:10:41 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_aspect_ratio,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_ASPECT_RATIO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_ASPECT_RATIO,
|
|
|
|
1.33,
|
|
|
|
"%.2f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_SET_ASPECT_RATIO);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0.1, 16.0, 0.01, true, false);
|
2017-05-02 02:06:07 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-05-02 01:10:41 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_INT(
|
|
|
|
list, list_info,
|
|
|
|
&custom_vp->x,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_X,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_X,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, -99999, 0, 1, false, false);
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_INT(
|
2016-03-20 19:45:06 +00:00
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&custom_vp->y,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_Y,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_Y,
|
|
|
|
0,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-04-29 11:10:01 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, -99999, 0, 1, false, false);
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-04-29 11:10:01 +00:00
|
|
|
|
2016-11-24 00:43:50 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&custom_vp->width,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_WIDTH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_WIDTH,
|
2016-11-24 00:43:50 +00:00
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-04-29 11:10:01 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 1, true, false);
|
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
|
|
|
&setting_get_string_representation_uint_custom_viewport_width;
|
|
|
|
(*list)[list_info->index - 1].action_start = &setting_action_start_custom_viewport_width;
|
|
|
|
(*list)[list_info->index - 1].action_left = setting_uint_action_left_custom_viewport_width;
|
|
|
|
(*list)[list_info->index - 1].action_right = setting_uint_action_right_custom_viewport_width;
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-04-29 11:10:01 +00:00
|
|
|
|
2016-11-24 00:43:50 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&custom_vp->height,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VIEWPORT_CUSTOM_HEIGHT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VIEWPORT_CUSTOM_HEIGHT,
|
2016-11-24 00:43:50 +00:00
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-04-29 11:10:01 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 1, true, false);
|
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
|
|
|
&setting_get_string_representation_uint_custom_viewport_height;
|
|
|
|
(*list)[list_info->index - 1].action_start = &setting_action_start_custom_viewport_height;
|
|
|
|
(*list)[list_info->index - 1].action_left = setting_uint_action_left_custom_viewport_height;
|
|
|
|
(*list)[list_info->index - 1].action_right = setting_uint_action_right_custom_viewport_height;
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(list, list_info, "Scaling", &group_info, &subgroup_info, parent_group);
|
|
|
|
|
|
|
|
if (video_driver_has_windowed())
|
|
|
|
{
|
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_scale,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SCALE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE,
|
|
|
|
scale,
|
|
|
|
"%.1fx",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1.0, 10.0, 1.0, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_window_x,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOW_WIDTH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_WIDTH,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 7680, 8, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_window_y,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOW_HEIGHT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_HEIGHT,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 4320, 8, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-12-11 23:12:32 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_window_opacity,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_WINDOW_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_WINDOW_OPACITY,
|
|
|
|
window_opacity,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 100, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-04-29 11:10:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_scale_integer,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SCALE_INTEGER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER,
|
|
|
|
scale_integer,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
menu_settings_list_current_add_cmd(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
CMD_EVENT_VIDEO_APPLY_STATE_CHANGES);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#ifdef GEKKO
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_viwidth,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VI_WIDTH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VI_WIDTH,
|
|
|
|
video_viwidth,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 640, 720, 2, true, true);
|
2015-10-12 14:47:34 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_vfilter,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VFILTER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VFILTER,
|
|
|
|
video_vfilter,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_smooth,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SMOOTH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_SMOOTH,
|
|
|
|
video_smooth,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_rotation,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_ROTATION,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_ROTATION,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1, true, true);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2017-04-29 11:10:01 +00:00
|
|
|
&setting_get_string_representation_uint_video_rotation;
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
"Synchronization",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-05-10 22:40:34 +00:00
|
|
|
#if defined(HAVE_THREADS)
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-29 14:37:49 +00:00
|
|
|
video_driver_get_threaded(),
|
2017-04-29 11:10:01 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_THREADED,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_THREADED,
|
|
|
|
video_threaded,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_CMD_APPLY_AUTO
|
|
|
|
);
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
2016-03-20 19:45:06 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-24 07:57:37 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&settings->bools.video_vsync,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_VSYNC,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_VSYNC,
|
|
|
|
vsync,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-07-24 07:57:37 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2017-04-29 11:10:01 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_swap_interval,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_SWAP_INTERVAL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_SWAP_INTERVAL,
|
|
|
|
swap_interval,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_VIDEO_SET_BLOCKING_STATE);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 4, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-24 07:57:37 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-29 11:10:01 +00:00
|
|
|
&settings->uints.video_max_swapchain_images,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MAX_SWAPCHAIN_IMAGES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MAX_SWAPCHAIN_IMAGES,
|
|
|
|
max_swapchain_images,
|
2016-07-24 07:57:37 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-04-29 11:10:01 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 4, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.video_driver, "gl"))
|
2017-04-29 11:10:01 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_hard_sync,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_HARD_SYNC,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_HARD_SYNC,
|
|
|
|
hard_sync,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_hard_sync_frames,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_HARD_SYNC_FRAMES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_HARD_SYNC_FRAMES,
|
|
|
|
hard_sync_frames,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_frame_delay,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FRAME_DELAY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FRAME_DELAY,
|
|
|
|
frame_delay,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 15, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#if !defined(RARCH_MOBILE)
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_black_frame_insertion,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_BLACK_FRAME_INSERTION,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_BLACK_FRAME_INSERTION,
|
|
|
|
black_frame_insertion,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-03-20 19:45:06 +00:00
|
|
|
#endif
|
2017-04-29 11:10:01 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
"Miscellaneous",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_gpu_screenshot,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_GPU_SCREENSHOT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_GPU_SCREENSHOT,
|
|
|
|
gpu_screenshot,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_crop_overscan,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_CROP_OVERSCAN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_CROP_OVERSCAN,
|
|
|
|
crop_overscan,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
|
|
|
settings->paths.path_softfilter_plugin,
|
|
|
|
sizeof(settings->paths.path_softfilter_plugin),
|
|
|
|
MENU_ENUM_LABEL_VIDEO_FILTER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FILTER,
|
|
|
|
settings->paths.directory_video_filter,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_values(list, list_info, "filt");
|
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2017-04-29 11:10:01 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
2016-03-20 19:45:06 +00:00
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_AUDIO:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS), parent_group);
|
2016-06-17 02:02:26 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_AUDIO_SETTINGS);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-10-20 15:51:03 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 10:23:59 +00:00
|
|
|
&settings->bools.audio_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
audio_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-06-15 15:43:08 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-05-08 19:39:08 +00:00
|
|
|
audio_get_bool_ptr(AUDIO_ACTION_MUTE_ENABLE),
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_MUTE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_MUTE,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2015-11-21 10:22:34 +00:00
|
|
|
|
2017-06-08 21:53:24 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
audio_get_bool_ptr(AUDIO_ACTION_MIXER_MUTE_ENABLE),
|
|
|
|
MENU_ENUM_LABEL_AUDIO_MIXER_MUTE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_MIXER_MUTE,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
2017-11-04 04:27:31 +00:00
|
|
|
SD_FLAG_LAKKA_ADVANCED
|
2017-06-08 21:53:24 +00:00
|
|
|
);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.audio_volume,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_VOLUME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_VOLUME,
|
2016-03-20 19:45:06 +00:00
|
|
|
audio_volume,
|
|
|
|
"%.1f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, -80, 12, 1.0, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-06-08 20:58:43 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.audio_mixer_volume,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_MIXER_VOLUME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_MIXER_VOLUME,
|
|
|
|
audio_mixer_volume,
|
|
|
|
"%.1f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, -80, 12, 1.0, true, true);
|
2017-11-04 04:27:31 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-06-08 20:58:43 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#ifdef __CELLOS_LV2__
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&global->console.sound.system_bgm_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_BGM_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_BGM_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:45:06 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-24 04:09:03 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
"Synchronization",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 10:23:59 +00:00
|
|
|
&settings->bools.audio_sync,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_SYNC,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_SYNC,
|
2016-03-20 19:45:06 +00:00
|
|
|
audio_sync,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.audio_latency,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_LATENCY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_LATENCY,
|
2017-07-14 19:11:27 +00:00
|
|
|
g_defaults.settings.out_latency ?
|
2016-03-20 19:45:06 +00:00
|
|
|
g_defaults.settings.out_latency : out_latency,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-03-27 02:28:19 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 512, 1.0, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2018-01-01 05:53:31 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.audio_resampler_quality,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_RESAMPLER_QUALITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_RESAMPLER_QUALITY,
|
|
|
|
audio_resampler_quality_level,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, RESAMPLER_QUALITY_DONTCARE, RESAMPLER_QUALITY_HIGHEST, 1.0, true, true);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-05-08 19:50:21 +00:00
|
|
|
audio_get_float_ptr(AUDIO_ACTION_RATE_CONTROL_DELTA),
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_RATE_CONTROL_DELTA,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_RATE_CONTROL_DELTA,
|
2016-03-20 19:45:06 +00:00
|
|
|
rate_control_delta,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0.001,
|
|
|
|
true,
|
|
|
|
false);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.audio_max_timing_skew,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_MAX_TIMING_SKEW,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_MAX_TIMING_SKEW,
|
2016-03-20 19:45:06 +00:00
|
|
|
max_timing_skew,
|
|
|
|
"%.2f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(
|
|
|
|
list,
|
|
|
|
list_info,
|
2017-08-02 02:03:58 +00:00
|
|
|
0.0,
|
2016-03-20 19:45:06 +00:00
|
|
|
0.5,
|
|
|
|
0.01,
|
|
|
|
true,
|
|
|
|
true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-10-21 21:33:20 +00:00
|
|
|
#ifdef RARCH_MOBILE
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.audio_block_frames,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_BLOCK_FRAMES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_BLOCK_FRAMES,
|
2016-03-20 19:45:06 +00:00
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-10-21 21:33:20 +00:00
|
|
|
#endif
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-09-27 15:49:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
"Miscellaneous",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-02 12:06:47 +00:00
|
|
|
#if !defined(RARCH_CONSOLE)
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 20:59:13 +00:00
|
|
|
settings->arrays.audio_device,
|
|
|
|
sizeof(settings->arrays.audio_device),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_DEVICE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_DEVICE,
|
2016-03-20 19:45:06 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2016-04-27 20:29:58 +00:00
|
|
|
(*list)[list_info->index - 1].action_left = &setting_string_action_left_audio_device;
|
|
|
|
(*list)[list_info->index - 1].action_right = &setting_string_action_right_audio_device;
|
2016-08-02 12:06:47 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.audio_out_rate,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_OUTPUT_RATE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_OUTPUT_RATE,
|
2016-03-20 19:45:06 +00:00
|
|
|
out_rate,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-04-26 04:17:53 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 1000, 192000, 100.0, true, true);
|
2016-03-20 19:45:06 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_audio_dsp_plugin,
|
|
|
|
sizeof(settings->paths.path_audio_dsp_plugin),
|
2016-10-26 03:30:45 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_DSP_PLUGIN,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_audio_filter,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_values(list, list_info, "dsp");
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_DSP_FILTER_INIT);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-04-29 01:36:52 +00:00
|
|
|
#ifdef HAVE_WASAPI
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.audio_driver, "wasapi"))
|
2017-04-29 01:36:52 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.audio_wasapi_exclusive_mode,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_WASAPI_EXCLUSIVE_MODE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_WASAPI_EXCLUSIVE_MODE,
|
2017-04-29 02:40:24 +00:00
|
|
|
wasapi_exclusive_mode,
|
2017-04-29 01:36:52 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.audio_wasapi_float_format,
|
|
|
|
MENU_ENUM_LABEL_AUDIO_WASAPI_FLOAT_FORMAT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_WASAPI_FLOAT_FORMAT,
|
2017-04-29 02:40:24 +00:00
|
|
|
wasapi_float_format,
|
2017-04-29 01:36:52 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
2017-05-24 14:25:36 +00:00
|
|
|
SD_FLAG_NONE
|
2017-04-29 01:36:52 +00:00
|
|
|
);
|
|
|
|
|
2017-05-24 14:25:36 +00:00
|
|
|
CONFIG_INT(
|
2017-04-29 01:36:52 +00:00
|
|
|
list, list_info,
|
2017-05-24 14:25:36 +00:00
|
|
|
&settings->ints.audio_wasapi_sh_buffer_length,
|
2017-04-29 01:36:52 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_WASAPI_SH_BUFFER_LENGTH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_WASAPI_SH_BUFFER_LENGTH,
|
2017-04-29 02:40:24 +00:00
|
|
|
wasapi_sh_buffer_length,
|
2017-04-29 01:36:52 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-24 14:25:36 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, -16.0f, 0.0f, 16.0f, true, false);
|
2017-04-29 01:36:52 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-05-24 14:25:36 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
|
|
|
&setting_get_string_representation_int_audio_wasapi_sh_buffer_length;
|
2017-04-29 01:36:52 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_INPUT:
|
|
|
|
{
|
|
|
|
unsigned user;
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INPUT_SETTINGS_BEGIN),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-05-11 05:36:21 +00:00
|
|
|
input_driver_get_uint(INPUT_ACTION_MAX_USERS),
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_MAX_USERS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_MAX_USERS,
|
2016-03-20 19:45:06 +00:00
|
|
|
input_max_users,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, MAX_USERS, 1, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-12-11 00:29:53 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_unified_controls,
|
2016-12-11 00:29:53 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_UNIFIED_MENU_CONTROLS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_UNIFIED_MENU_CONTROLS,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-12-11 00:29:53 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_poll_type_behavior,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_POLL_TYPE_BEHAVIOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_POLL_TYPE_BEHAVIOR,
|
2016-03-20 19:45:06 +00:00
|
|
|
input_poll_type_behavior,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 2, 1, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
|
2016-10-14 19:57:18 +00:00
|
|
|
#ifdef VITA
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_backtouch_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_TOUCH_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_TOUCH_ENABLE,
|
2016-10-14 19:57:18 +00:00
|
|
|
input_backtouch_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-10-14 19:57:18 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-10-15 11:28:35 +00:00
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_backtouch_toggle,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_PREFER_FRONT_TOUCH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_PREFER_FRONT_TOUCH,
|
2016-10-15 11:28:35 +00:00
|
|
|
input_backtouch_toggle,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-10-15 11:28:35 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-10-14 19:57:18 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#if TARGET_OS_IPHONE
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_keyboard_gamepad_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_ICADE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_ICADE_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:45:06 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_keyboard_gamepad_mapping_type,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_KEYBOARD_GAMEPAD_MAPPING_TYPE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_KEYBOARD_GAMEPAD_MAPPING_TYPE,
|
2016-03-20 19:45:06 +00:00
|
|
|
1,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1, true, true);
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_small_keyboard_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_SMALL_KEYBOARD_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_SMALL_KEYBOARD_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_menu_toggle_gamepad_combo,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_MENU_ENUM_TOGGLE_GAMEPAD_COMBO,
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_toggle_gamepad_combo,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-11-27 16:10:32 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 4, 1, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-11-19 18:48:24 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_menu_swap_ok_cancel_buttons,
|
2016-11-19 18:48:24 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_INPUT_SWAP_OK_CANCEL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_INPUT_SWAP_OK_CANCEL,
|
|
|
|
menu_swap_ok_cancel_buttons,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
|
2016-09-03 23:01:29 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_all_users_control_menu,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_ALL_USERS_CONTROL_MENU,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_ALL_USERS_CONTROL_MENU,
|
2016-09-03 23:01:29 +00:00
|
|
|
all_users_control_menu,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-09-03 23:01:29 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-09-03 23:01:29 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_remap_binds_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_REMAP_BINDS_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_REMAP_BINDS_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-12 00:46:44 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_autodetect_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_AUTODETECT_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_AUTODETECT_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
input_autodetect_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-12 00:46:44 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-11-18 06:53:21 +00:00
|
|
|
#if 0
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_descriptor_label_show,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_DESCRIPTOR_LABEL_SHOW,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_DESCRIPTOR_LABEL_SHOW,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED
|
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_descriptor_hide_unbound,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_DESCRIPTOR_HIDE_UNBOUND,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_DESCRIPTOR_HIDE_UNBOUND,
|
2016-03-20 19:45:06 +00:00
|
|
|
input_descriptor_hide_unbound,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED
|
|
|
|
);
|
2016-11-18 06:53:21 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
2016-11-19 14:52:12 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TURBO_DEADZONE_LIST),
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-22 05:31:45 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-05-10 05:07:06 +00:00
|
|
|
input_driver_get_float(INPUT_ACTION_AXIS_THRESHOLD),
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_AXIS_THRESHOLD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_AXIS_THRESHOLD,
|
2016-03-20 19:45:06 +00:00
|
|
|
axis_threshold,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1.00, 0.001, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
|
2016-06-26 06:22:40 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_bind_timeout,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_BIND_TIMEOUT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_BIND_TIMEOUT,
|
2016-06-26 06:22:40 +00:00
|
|
|
input_bind_timeout,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 0, 1, true, false);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_turbo_period,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_TURBO_PERIOD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_TURBO_PERIOD,
|
2016-03-20 19:45:06 +00:00
|
|
|
turbo_period,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 0, 1, true, false);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.input_turbo_duty_cycle,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_DUTY_CYCLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_DUTY_CYCLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
turbo_duty_cycle,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 0, 1, true, false);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Binds", &group_info, &subgroup_info, parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_HOTKEY_BINDS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_HOTKEY_BINDS,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
for (user = 0; user < MAX_USERS; user++)
|
|
|
|
{
|
2016-10-27 07:49:21 +00:00
|
|
|
static char binds_list[MAX_USERS][255];
|
|
|
|
static char binds_label[MAX_USERS][255];
|
2016-06-16 20:32:27 +00:00
|
|
|
unsigned user_value = user + 1;
|
2015-06-04 13:49:21 +00:00
|
|
|
|
2016-06-16 20:32:27 +00:00
|
|
|
snprintf(binds_list[user], sizeof(binds_list[user]), "%d_input_binds_list", user_value);
|
2016-11-07 22:28:26 +00:00
|
|
|
snprintf(binds_label[user], sizeof(binds_label[user]), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_USER_BINDS), user_value);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-26 03:15:52 +00:00
|
|
|
CONFIG_ACTION_ALT(
|
2016-03-20 19:45:06 +00:00
|
|
|
list, list_info,
|
|
|
|
binds_list[user],
|
|
|
|
binds_label[user],
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2016-06-16 20:32:27 +00:00
|
|
|
(*list)[list_info->index - 1].index = user_value;
|
2016-03-20 19:45:06 +00:00
|
|
|
(*list)[list_info->index - 1].index_offset = user;
|
2016-06-16 20:32:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, (enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_USER_1_BINDS + user));
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_RECORDING:
|
2016-03-20 19:46:34 +00:00
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_RECORDING_SETTINGS),
|
2016-03-20 19:46:34 +00:00
|
|
|
parent_group);
|
|
|
|
|
2016-07-02 11:49:05 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_RECORDING_SETTINGS);
|
2016-03-20 19:46:34 +00:00
|
|
|
|
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
recording_is_enabled(),
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_RECORD_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORD_ENABLE,
|
2016-03-20 19:46:34 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:46:34 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:46:34 +00:00
|
|
|
|
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
2016-10-01 06:17:13 +00:00
|
|
|
global->record.config,
|
|
|
|
sizeof(global->record.config),
|
2016-10-26 03:30:45 +00:00
|
|
|
MENU_ENUM_LABEL_RECORD_CONFIG,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORD_CONFIG,
|
2016-03-20 19:46:34 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_values(list, list_info, "cfg");
|
|
|
|
|
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2016-10-01 06:17:13 +00:00
|
|
|
global->record.path,
|
|
|
|
sizeof(global->record.path),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_RECORD_PATH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORD_PATH,
|
2016-03-20 19:46:34 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2016-09-30 22:47:05 +00:00
|
|
|
recording_driver_get_use_output_dir_ptr(),
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_RECORD_USE_OUTPUT_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORD_USE_OUTPUT_DIRECTORY,
|
2016-03-20 19:46:34 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:46:34 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:46:34 +00:00
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
|
|
|
|
START_SUB_GROUP(list, list_info, "Miscellaneous", &group_info, &subgroup_info, parent_group);
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.video_post_filter_record,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_POST_FILTER_RECORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_POST_FILTER_RECORD,
|
2016-03-20 19:46:34 +00:00
|
|
|
post_filter_record,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:46:34 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:46:34 +00:00
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.video_gpu_record,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_GPU_RECORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_GPU_RECORD,
|
2016-03-20 19:46:34 +00:00
|
|
|
gpu_record,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:46:34 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:46:34 +00:00
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
2016-03-20 19:45:06 +00:00
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_INPUT_HOTKEY:
|
|
|
|
{
|
|
|
|
unsigned i;
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_INPUT_HOTKEY_BINDS_BEGIN),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info,
|
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
for (i = 0; i < RARCH_BIND_LIST_END; i ++)
|
|
|
|
{
|
|
|
|
if (!input_config_bind_map_get_meta(i))
|
|
|
|
continue;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-27 02:03:24 +00:00
|
|
|
CONFIG_BIND_ALT(
|
2016-03-20 19:45:06 +00:00
|
|
|
list, list_info,
|
2017-04-25 22:24:59 +00:00
|
|
|
&input_config_binds[0][i],
|
2017-04-25 16:27:18 +00:00
|
|
|
0, 0,
|
2016-03-20 19:45:06 +00:00
|
|
|
strdup(input_config_bind_map_get_base(i)),
|
|
|
|
strdup(input_config_bind_map_get_desc(i)),
|
|
|
|
&retro_keybinds_1[i],
|
|
|
|
&group_info, &subgroup_info, parent_group);
|
|
|
|
(*list)[list_info->index - 1].bind_type = i + MENU_SETTINGS_BIND_BEGIN;
|
2017-07-14 19:11:27 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info,
|
2016-07-10 19:06:29 +00:00
|
|
|
(enum msg_hash_enums)(MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN + i));
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_FRAME_THROTTLING:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_FRAME_THROTTLE_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-07-02 11:17:24 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_FRAME_THROTTLE_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.fastforward_ratio,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_FASTFORWARD_RATIO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_FASTFORWARD_RATIO,
|
2016-03-20 19:45:06 +00:00
|
|
|
fastforward_ratio,
|
|
|
|
"%.1fx",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_SET_FRAME_LIMIT);
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 10, 1.0, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.slowmotion_ratio,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_SLOWMOTION_RATIO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SLOWMOTION_RATIO,
|
2016-03-20 19:45:06 +00:00
|
|
|
slowmotion_ratio,
|
|
|
|
"%.1fx",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-12-29 04:51:41 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 10, 0.1, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_throttle_framerate,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_THROTTLE_FRAMERATE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_ENUM_THROTTLE_FRAMERATE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_FONT:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 11:49:05 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_ONSCREEN_DISPLAY_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Messages",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.video_font_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_FONT_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FONT_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
font_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_font,
|
|
|
|
sizeof(settings->paths.path_font),
|
2016-10-26 03:30:45 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_FONT_PATH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FONT_PATH,
|
2016-03-20 19:45:06 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.video_font_size,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_FONT_SIZE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FONT_SIZE,
|
2016-03-20 19:45:06 +00:00
|
|
|
font_size,
|
|
|
|
"%.1f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1.00, 100.00, 1.0, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.video_msg_pos_x,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_POS_X,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_POS_X,
|
2016-03-20 19:45:06 +00:00
|
|
|
message_pos_offset_x,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 0.01, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.video_msg_pos_y,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_POS_Y,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_POS_Y,
|
2016-03-20 19:45:06 +00:00
|
|
|
message_pos_offset_y,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 0.01, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-10-12 18:26:17 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_msg_color_r,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_COLOR_RED,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_RED,
|
|
|
|
((message_color >> 16) & 0xff) / 255.0f,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 1.0f/255.0f, true, true);
|
|
|
|
|
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_msg_color_g,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_COLOR_GREEN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_GREEN,
|
|
|
|
((message_color >> 8) & 0xff) / 255.0f,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 1.0f/255.0f, true, true);
|
|
|
|
|
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_msg_color_b,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_COLOR_BLUE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_COLOR_BLUE,
|
|
|
|
((message_color >> 0) & 0xff) / 255.0f,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 1.0f/255.0f, true, true);
|
|
|
|
|
2017-10-10 18:53:32 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.video_msg_bgcolor_enable,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_BGCOLOR_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_ENABLE,
|
|
|
|
message_bgcolor_enable,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_msg_bgcolor_red,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_BGCOLOR_RED,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_RED,
|
|
|
|
message_bgcolor_red,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 255, 1, true, true);
|
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_msg_bgcolor_green,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_BGCOLOR_GREEN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_GREEN,
|
|
|
|
message_bgcolor_green,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 255, 1, true, true);
|
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.video_msg_bgcolor_blue,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_BGCOLOR_BLUE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_BLUE,
|
|
|
|
message_bgcolor_blue,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 255, 1, true, true);
|
|
|
|
|
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.video_msg_bgcolor_opacity,
|
|
|
|
MENU_ENUM_LABEL_VIDEO_MESSAGE_BGCOLOR_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_MESSAGE_BGCOLOR_OPACITY,
|
|
|
|
message_bgcolor_opacity,
|
|
|
|
"%.2f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
2016-03-20 19:45:06 +00:00
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 0.01, true, true);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_OVERLAY:
|
|
|
|
#ifdef HAVE_OVERLAY
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OVERLAY_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-07-02 11:49:05 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_OVERLAY_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_overlay_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_OVERLAY_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_ENABLE,
|
2016-08-01 12:14:21 +00:00
|
|
|
config_overlay_enable_default(),
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:45:06 +00:00
|
|
|
(*list)[list_info->index - 1].change_handler = overlay_enable_toggle_change_handler;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_overlay_enable_autopreferred,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_OVERLAY_AUTOLOAD_PREFERRED,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OVERLAY_AUTOLOAD_PREFERRED,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:45:06 +00:00
|
|
|
(*list)[list_info->index - 1].change_handler = overlay_enable_toggle_change_handler;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.input_overlay_hide_in_menu,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_OVERLAY_HIDE_IN_MENU,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_HIDE_IN_MENU,
|
2016-03-20 19:45:06 +00:00
|
|
|
overlay_hide_in_menu,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-03-20 19:45:06 +00:00
|
|
|
(*list)[list_info->index - 1].change_handler = overlay_enable_toggle_change_handler;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-08-08 11:50:39 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.input_overlay_show_physical_inputs,
|
|
|
|
MENU_ENUM_LABEL_INPUT_OVERLAY_SHOW_PHYSICAL_INPUTS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_PHYSICAL_INPUTS,
|
2017-08-16 20:30:15 +00:00
|
|
|
show_physical_inputs,
|
2017-08-08 11:50:39 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2017-08-08 14:56:27 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->uints.input_overlay_show_physical_inputs_port,
|
|
|
|
MENU_ENUM_LABEL_INPUT_OVERLAY_SHOW_PHYSICAL_INPUTS_PORT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_OVERLAY_SHOW_PHYSICAL_INPUTS_PORT,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler
|
|
|
|
);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, MAX_USERS - 1, 1, true, true);
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_overlay,
|
|
|
|
sizeof(settings->paths.path_overlay),
|
2016-10-26 03:30:45 +00:00
|
|
|
MENU_ENUM_LABEL_OVERLAY_PRESET,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OVERLAY_PRESET,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_overlay,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_values(list, list_info, "cfg");
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_OVERLAY_INIT);
|
2015-06-04 12:39:40 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.input_overlay_opacity,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_OVERLAY_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OVERLAY_OPACITY,
|
2016-03-20 19:45:06 +00:00
|
|
|
0.7f,
|
|
|
|
"%.2f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_OVERLAY_SET_ALPHA_MOD);
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 1, 0.01, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.input_overlay_scale,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_OVERLAY_SCALE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OVERLAY_SCALE,
|
2016-03-20 19:45:06 +00:00
|
|
|
1.0f,
|
|
|
|
"%.2f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_OVERLAY_SET_SCALE_FACTOR);
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 2, 0.01, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_CMD_APPLY_AUTO);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-04 12:39:40 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Onscreen Keyboard Overlay", &group_info, &subgroup_info, parent_group);
|
2015-06-04 12:39:40 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_MENU:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2016-06-17 00:52:08 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_MENU_SETTINGS);
|
2015-06-04 12:39:40 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_MENU_SETTINGS);
|
2015-06-04 12:39:40 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-04 15:41:07 +00:00
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(settings->arrays.menu_driver, "rgui", 4))
|
2016-08-02 14:27:43 +00:00
|
|
|
{
|
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_menu_wallpaper,
|
|
|
|
sizeof(settings->paths.path_menu_wallpaper),
|
2016-10-26 03:30:45 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_WALLPAPER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER,
|
2016-08-02 14:27:43 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_values(list, list_info, "png");
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-02 14:27:43 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.menu_wallpaper_opacity,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_WALLPAPER_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_WALLPAPER_OPACITY,
|
2016-08-02 14:27:43 +00:00
|
|
|
menu_wallpaper_opacity,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0.0, 1.0, 0.010, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-08-15 20:17:02 +00:00
|
|
|
|
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->floats.menu_framebuffer_opacity,
|
|
|
|
MENU_ENUM_LABEL_MENU_FRAMEBUFFER_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_FRAMEBUFFER_OPACITY,
|
|
|
|
menu_framebuffer_opacity,
|
|
|
|
"%.3f",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0.0, 1.0, 0.010, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-08-02 14:27:43 +00:00
|
|
|
}
|
2016-07-09 13:13:06 +00:00
|
|
|
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "xmb"))
|
2016-08-02 14:27:43 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_dynamic_wallpaper_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_DYNAMIC_WALLPAPER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_DYNAMIC_WALLPAPER,
|
2016-08-02 14:27:43 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-02 14:27:43 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-08-02 14:27:43 +00:00
|
|
|
}
|
2015-06-08 00:03:50 +00:00
|
|
|
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_pause_libretro,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_PAUSE_LIBRETRO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PAUSE_LIBRETRO,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_CMD_APPLY_AUTO
|
|
|
|
);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_PAUSE_LIBRETRO);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_mouse_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_MOUSE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MOUSE_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
def_mouse_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-24 00:08:42 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_pointer_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_POINTER_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_POINTER_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
pointer_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-24 00:08:42 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2016-01-27 00:51:09 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_linear_filter,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_MENU_LINEAR_FILTER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_LINEAR_FILTER,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-11-13 21:11:39 +00:00
|
|
|
|
2017-07-14 19:11:27 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_horizontal_animation,
|
|
|
|
MENU_ENUM_LABEL_MENU_HORIZONTAL_ANIMATION,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_HORIZONTAL_ANIMATION,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED
|
|
|
|
);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#ifdef RARCH_MOBILE
|
|
|
|
/* We don't want mobile users being able to switch this off. */
|
|
|
|
(*list)[list_info->index - 1].action_left = NULL;
|
|
|
|
(*list)[list_info->index - 1].action_right = NULL;
|
|
|
|
(*list)[list_info->index - 1].action_start = NULL;
|
2015-11-13 00:50:22 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-07-11 01:13:38 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Navigation", &group_info, &subgroup_info, parent_group);
|
2015-07-09 04:27:17 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_navigation_wraparound_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_NAVIGATION_WRAPAROUND,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NAVIGATION_WRAPAROUND,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED
|
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
START_SUB_GROUP(list, list_info, "Settings View", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_show_advanced_settings,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_SHOW_ADVANCED_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SHOW_ADVANCED_SETTINGS,
|
2016-03-20 19:45:06 +00:00
|
|
|
show_advanced_settings,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "xmb"))
|
2017-10-11 09:30:53 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.kiosk_mode_enable,
|
|
|
|
MENU_ENUM_LABEL_MENU_ENABLE_KIOSK_MODE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_ENABLE_KIOSK_MODE,
|
|
|
|
kiosk_mode_enable,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
|
|
|
settings->paths.kiosk_mode_password,
|
|
|
|
sizeof(settings->paths.kiosk_mode_password),
|
|
|
|
MENU_ENUM_LABEL_MENU_KIOSK_MODE_PASSWORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_KIOSK_MODE_PASSWORD,
|
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
}
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#ifdef HAVE_THREADS
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.threaded_data_runloop_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_THREADED_DATA_RUNLOOP_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_THREADED_DATA_RUNLOOP_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
threaded_data_runloop_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED
|
|
|
|
);
|
2016-03-20 19:45:06 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-26 08:37:35 +00:00
|
|
|
#if 0
|
2016-03-20 19:45:06 +00:00
|
|
|
/* These colors are hints. The menu driver is not required to use them. */
|
|
|
|
CONFIG_HEX(
|
|
|
|
list, list_info,
|
|
|
|
&settings->menu.entry_normal_color,
|
2016-10-26 03:42:24 +00:00
|
|
|
MENU_ENUM_LABEL_ENTRY_NORMAL_COLOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ENTRY_NORMAL_COLOR,
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_entry_normal_color,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-10-30 13:36:04 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_HEX(
|
|
|
|
list, list_info,
|
|
|
|
&settings->menu.entry_hover_color,
|
2016-10-26 03:42:24 +00:00
|
|
|
MENU_ENUM_LABEL_ENTRY_HOVER_COLOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ENTRY_HOVER_COLOR,
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_entry_hover_color,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_HEX(
|
|
|
|
list, list_info,
|
|
|
|
&settings->menu.title_color,
|
2016-10-26 03:42:24 +00:00
|
|
|
MENU_ENUM_LABEL_TITLE_COLOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_TITLE_COLOR,
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_title_color,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-07-26 08:37:35 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Display", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "glui"))
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
2018-01-16 21:53:38 +00:00
|
|
|
/* only GLUI uses these values, don't show
|
|
|
|
* them on other drivers */
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_dpi_override_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_DPI_OVERRIDE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_dpi_override_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_dpi_override_value,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_DPI_OVERRIDE_VALUE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_DPI_OVERRIDE_VALUE,
|
2016-03-20 19:45:06 +00:00
|
|
|
menu_dpi_override_value,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 72, 999, 1, true, true);
|
|
|
|
}
|
2016-06-14 22:52:15 +00:00
|
|
|
|
2016-07-24 09:32:45 +00:00
|
|
|
#ifdef HAVE_XMB
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "xmb"))
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
2018-01-16 21:53:38 +00:00
|
|
|
/* only XMB uses these values, don't show
|
|
|
|
* them on other drivers. */
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_xmb_alpha_factor,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_ALPHA_FACTOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_ALPHA_FACTOR,
|
2016-03-20 19:45:06 +00:00
|
|
|
xmb_alpha_factor,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 100, 1, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_xmb_scale_factor,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_SCALE_FACTOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_SCALE_FACTOR,
|
2016-03-20 19:45:06 +00:00
|
|
|
xmb_scale_factor,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-12-28 01:11:07 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 200, 1, true, true);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_PATH(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_menu_xmb_font,
|
|
|
|
sizeof(settings->paths.path_menu_xmb_font),
|
2016-10-26 03:30:45 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_FONT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_FONT,
|
2017-05-25 20:43:12 +00:00
|
|
|
"",
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2017-05-26 18:39:42 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
2016-03-21 19:54:16 +00:00
|
|
|
|
2017-03-12 14:33:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-12-27 22:03:39 +00:00
|
|
|
&settings->uints.menu_font_color_red,
|
|
|
|
MENU_ENUM_LABEL_MENU_FONT_COLOR_RED,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_FONT_COLOR_RED,
|
|
|
|
menu_font_color_red,
|
2017-03-12 14:33:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 255, 1, true, true);
|
2017-12-27 21:45:27 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-03-12 14:33:06 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-12-27 22:03:39 +00:00
|
|
|
&settings->uints.menu_font_color_green,
|
|
|
|
MENU_ENUM_LABEL_MENU_FONT_COLOR_GREEN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_FONT_COLOR_GREEN,
|
|
|
|
menu_font_color_green,
|
2017-03-12 14:33:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 255, 1, true, true);
|
2017-12-27 21:45:27 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-03-12 14:33:06 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-12-27 22:03:39 +00:00
|
|
|
&settings->uints.menu_font_color_blue,
|
|
|
|
MENU_ENUM_LABEL_MENU_FONT_COLOR_BLUE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_FONT_COLOR_BLUE,
|
|
|
|
menu_font_color_blue,
|
2017-03-12 14:33:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 255, 1, true, true);
|
2017-12-27 21:45:27 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2017-03-12 14:33:06 +00:00
|
|
|
|
2016-03-21 19:54:16 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_xmb_theme,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_THEME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_THEME,
|
2016-07-14 19:24:33 +00:00
|
|
|
xmb_icon_theme,
|
2016-03-21 19:54:16 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-02-01 23:01:15 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, XMB_ICON_THEME_LAST - 1, 1, true, true);
|
2017-03-05 21:31:14 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
2016-04-07 17:24:55 +00:00
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_xmb_shadows_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_SHADOWS_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_SHADOWS_ENABLE,
|
2016-04-22 05:46:56 +00:00
|
|
|
xmb_shadows_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-04-22 05:32:32 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-04-22 05:32:32 +00:00
|
|
|
|
2016-06-06 22:00:28 +00:00
|
|
|
#ifdef HAVE_SHADERPIPELINE
|
2016-04-24 20:03:39 +00:00
|
|
|
CONFIG_UINT(
|
2016-04-22 05:32:32 +00:00
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_xmb_shader_pipeline,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_RIBBON_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_RIBBON_ENABLE,
|
2016-05-01 02:40:20 +00:00
|
|
|
menu_shader_pipeline,
|
2016-04-07 17:24:55 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-07-14 16:40:57 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, XMB_SHADER_PIPELINE_LAST-1, 1, true, true);
|
2016-06-06 22:00:28 +00:00
|
|
|
#endif
|
2016-04-22 06:47:14 +00:00
|
|
|
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_xmb_color_theme,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_XMB_MENU_COLOR_THEME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_XMB_MENU_COLOR_THEME,
|
2016-09-06 17:50:13 +00:00
|
|
|
xmb_theme,
|
2016-04-22 06:47:14 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-07-14 16:29:05 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, XMB_THEME_LAST-1, 1, true, true);
|
2018-01-01 18:38:16 +00:00
|
|
|
}
|
|
|
|
#endif
|
2017-10-05 07:14:05 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_load_core,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_LOAD_CORE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CORE,
|
|
|
|
menu_show_load_core,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-05 07:26:25 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_load_content,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_LOAD_CONTENT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_LOAD_CONTENT,
|
|
|
|
menu_show_load_content,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-05 12:30:15 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_information,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_INFORMATION,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_INFORMATION,
|
|
|
|
menu_show_information,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-06 06:18:39 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_configurations,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_CONFIGURATIONS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_CONFIGURATIONS,
|
|
|
|
menu_show_configurations,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
|
2017-10-06 06:28:45 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_help,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_HELP,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_HELP,
|
|
|
|
menu_show_help,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
|
2017-10-06 07:27:42 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_quit_retroarch,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_QUIT_RETROARCH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_QUIT_RETROARCH,
|
|
|
|
menu_show_quit_retroarch,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2018-01-01 18:38:16 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_LAKKA
|
2017-10-06 07:40:41 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_reboot,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_REBOOT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_REBOOT,
|
|
|
|
menu_show_reboot,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2018-01-01 18:38:16 +00:00
|
|
|
#endif
|
|
|
|
|
2018-01-01 23:56:48 +00:00
|
|
|
#ifdef HAVE_XMB
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "xmb"))
|
2018-01-01 23:56:48 +00:00
|
|
|
{
|
2016-08-18 14:42:39 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_settings,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_SETTINGS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_SETTINGS,
|
|
|
|
content_show_settings,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-18 14:42:39 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2018-01-01 18:38:16 +00:00
|
|
|
|
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
|
|
|
settings->paths.menu_content_show_settings_password,
|
|
|
|
sizeof(settings->paths.menu_content_show_settings_password),
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_SETTINGS_PASSWORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_SETTINGS_PASSWORD,
|
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT | SD_FLAG_LAKKA_ADVANCED);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2017-08-13 22:38:38 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_favorites,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_FAVORITES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_FAVORITES,
|
|
|
|
content_show_favorites,
|
2017-08-13 22:38:38 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2016-08-18 14:42:39 +00:00
|
|
|
#ifdef HAVE_IMAGEVIEWER
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_images,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_IMAGES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_IMAGES,
|
|
|
|
content_show_images,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-18 14:42:39 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_music,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_MUSIC,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_MUSIC,
|
|
|
|
content_show_music,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-18 14:42:39 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-05-27 21:56:10 +00:00
|
|
|
#ifdef HAVE_FFMPEG
|
2016-08-18 14:42:39 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_video,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_VIDEO,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_VIDEO,
|
|
|
|
content_show_video,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-18 14:42:39 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_history,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_HISTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_HISTORY,
|
|
|
|
content_show_history,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-18 14:42:39 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-02-27 22:32:24 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_netplay,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_NETPLAY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_NETPLAY,
|
|
|
|
content_show_netplay,
|
2017-02-27 22:32:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
#endif
|
|
|
|
|
2016-12-24 17:45:15 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2018-01-01 18:38:16 +00:00
|
|
|
&settings->bools.menu_content_show_add,
|
|
|
|
MENU_ENUM_LABEL_CONTENT_SHOW_ADD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_SHOW_ADD,
|
|
|
|
content_show_add,
|
2016-12-24 17:45:15 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-07-24 09:32:45 +00:00
|
|
|
#endif
|
2016-07-09 11:17:29 +00:00
|
|
|
|
2016-07-24 09:32:45 +00:00
|
|
|
#ifdef HAVE_MATERIALUI
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "glui"))
|
2016-07-09 11:17:29 +00:00
|
|
|
{
|
2018-01-16 21:53:38 +00:00
|
|
|
/* only MaterialUI uses these values, don't show
|
|
|
|
* them on other drivers. */
|
2017-08-17 19:05:38 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_materialui_icons_enable,
|
|
|
|
MENU_ENUM_LABEL_MATERIALUI_ICONS_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MATERIALUI_ICONS_ENABLE,
|
|
|
|
materialui_icons_enable,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
|
|
|
|
2016-07-09 11:17:29 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_materialui_color_theme,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_MATERIALUI_MENU_COLOR_THEME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_COLOR_THEME,
|
2016-07-10 22:47:25 +00:00
|
|
|
MATERIALUI_THEME_BLUE,
|
2016-07-09 11:17:29 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-07-14 16:29:05 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, MATERIALUI_THEME_LAST-1, 1, true, true);
|
2016-07-11 15:27:36 +00:00
|
|
|
|
2016-07-11 15:41:06 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.menu_header_opacity,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_MATERIALUI_MENU_HEADER_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_HEADER_OPACITY,
|
2016-07-11 15:41:06 +00:00
|
|
|
menu_header_opacity,
|
2016-07-16 17:09:38 +00:00
|
|
|
"%.3f",
|
2016-07-11 15:41:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0.0, 1.0, 0.010, true, true);
|
|
|
|
|
2016-07-11 15:27:36 +00:00
|
|
|
CONFIG_FLOAT(
|
|
|
|
list, list_info,
|
2017-04-28 12:57:55 +00:00
|
|
|
&settings->floats.menu_footer_opacity,
|
2016-10-26 03:07:27 +00:00
|
|
|
MENU_ENUM_LABEL_MATERIALUI_MENU_FOOTER_OPACITY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MATERIALUI_MENU_FOOTER_OPACITY,
|
2016-07-11 15:27:36 +00:00
|
|
|
menu_footer_opacity,
|
2016-07-16 17:09:38 +00:00
|
|
|
"%.3f",
|
2016-07-11 15:27:36 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0.0, 1.0, 0.010, true, true);
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2016-07-24 09:32:45 +00:00
|
|
|
#endif
|
2015-10-25 09:41:53 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_show_start_screen,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_RGUI_SHOW_START_SCREEN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RGUI_SHOW_START_SCREEN,
|
2016-03-20 19:45:06 +00:00
|
|
|
default_menu_show_start_screen,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2018-01-16 21:53:38 +00:00
|
|
|
if (string_is_equal(settings->arrays.menu_driver, "xmb"))
|
2016-08-02 14:27:43 +00:00
|
|
|
{
|
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.menu_thumbnails,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_THUMBNAILS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_THUMBNAILS,
|
2016-08-02 14:27:43 +00:00
|
|
|
menu_thumbnails_default,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 3, 1, true, true);
|
|
|
|
}
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_timedate_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_TIMEDATE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_TIMEDATE_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-12-19 19:28:21 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_battery_level_enable,
|
2016-12-19 19:28:21 +00:00
|
|
|
MENU_ENUM_LABEL_BATTERY_LEVEL_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_BATTERY_LEVEL_ENABLE,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_core_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED);
|
2015-10-23 04:54:33 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_MENU_FILE_BROWSER:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MENU_FILE_BROWSER_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_MENU_FILE_BROWSER_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.menu_navigation_browser_filter_supported_extensions_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_MULTIMEDIA:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MULTIMEDIA_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-07-03 17:27:16 +00:00
|
|
|
|
2017-11-27 05:47:08 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.automatically_add_content_to_playlist,
|
|
|
|
MENU_ENUM_LABEL_AUTOMATICALLY_ADD_CONTENT_TO_PLAYLIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUTOMATICALLY_ADD_CONTENT_TO_PLAYLIST,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
#endif
|
|
|
|
|
2017-05-31 22:25:13 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.multimedia_builtin_mediaplayer_enable,
|
|
|
|
MENU_ENUM_LABEL_USE_BUILTIN_PLAYER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_USE_BUILTIN_PLAYER,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2015-07-09 02:05:59 +00:00
|
|
|
|
2015-06-15 22:58:13 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#ifdef HAVE_IMAGEVIEWER
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.multimedia_builtin_imageviewer_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_USE_BUILTIN_IMAGE_VIEWER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_USE_BUILTIN_IMAGE_VIEWER,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-03-20 19:45:06 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-05-31 22:25:13 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.filter_by_current_core,
|
|
|
|
MENU_ENUM_LABEL_FILTER_BY_CURRENT_CORE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_FILTER_BY_CURRENT_CORE,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_USER_INTERFACE:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-07-02 18:40:27 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER_INTERFACE_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_USER_INTERFACE_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.pause_nonactive,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_PAUSE_NONACTIVE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PAUSE_NONACTIVE,
|
2016-06-03 04:43:11 +00:00
|
|
|
pause_nonactive,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-06-21 12:28:15 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-02 14:33:04 +00:00
|
|
|
#if !defined(RARCH_MOBILE)
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.video_disable_composition,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_DISABLE_COMPOSITION,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_DISABLE_COMPOSITION,
|
2016-06-03 04:43:11 +00:00
|
|
|
disable_composition,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_CMD_APPLY_AUTO);
|
2016-06-03 04:43:11 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_REINIT);
|
2017-06-21 12:28:15 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2016-08-02 14:33:04 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-06-19 23:42:28 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_online_updater,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_ONLINE_UPDATER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_ONLINE_UPDATER,
|
|
|
|
menu_show_online_updater,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-06-20 00:22:07 +00:00
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.menu_show_core_updater,
|
|
|
|
MENU_ENUM_LABEL_MENU_SHOW_CORE_UPDATER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_MENU_SHOW_CORE_UPDATER,
|
|
|
|
menu_show_online_updater,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-06-19 23:42:28 +00:00
|
|
|
|
2017-10-09 06:14:52 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_take_screenshot,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_TAKE_SCREENSHOT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_TAKE_SCREENSHOT,
|
|
|
|
quick_menu_show_take_screenshot,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-09 07:13:00 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_save_load_state,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_SAVE_LOAD_STATE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SAVE_LOAD_STATE,
|
|
|
|
quick_menu_show_save_load_state,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-09 07:30:53 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_undo_save_load_state,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_UNDO_SAVE_LOAD_STATE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_UNDO_SAVE_LOAD_STATE,
|
|
|
|
quick_menu_show_undo_save_load_state,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
2017-10-26 11:38:12 +00:00
|
|
|
SD_FLAG_NONE);
|
2017-10-09 07:30:53 +00:00
|
|
|
|
2017-10-09 07:46:42 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_add_to_favorites,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_ADD_TO_FAVORITES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_ADD_TO_FAVORITES,
|
|
|
|
quick_menu_show_add_to_favorites,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-09 07:56:27 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_options,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_OPTIONS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_OPTIONS,
|
|
|
|
quick_menu_show_options,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-09 08:05:32 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_controls,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_CONTROLS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CONTROLS,
|
|
|
|
quick_menu_show_controls,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-10-09 08:17:15 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_cheats,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_CHEATS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CHEATS,
|
|
|
|
quick_menu_show_cheats,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
2017-10-26 11:38:12 +00:00
|
|
|
SD_FLAG_NONE);
|
2017-10-09 08:17:15 +00:00
|
|
|
|
2017-10-09 08:30:25 +00:00
|
|
|
#ifdef HAVE_SHADER_MANAGER
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_shaders,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_SHADERS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SHADERS,
|
|
|
|
quick_menu_show_shaders,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
#endif
|
|
|
|
|
2017-10-09 08:44:37 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_save_core_overrides,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_SAVE_CORE_OVERRIDES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SAVE_CORE_OVERRIDES,
|
|
|
|
quick_menu_show_save_core_overrides,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
2017-10-26 11:38:12 +00:00
|
|
|
SD_FLAG_NONE);
|
2017-10-09 08:44:37 +00:00
|
|
|
|
2017-10-09 08:53:58 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_save_game_overrides,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_SAVE_GAME_OVERRIDES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_SAVE_GAME_OVERRIDES,
|
|
|
|
quick_menu_show_save_game_overrides,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
2017-10-26 11:38:12 +00:00
|
|
|
SD_FLAG_NONE);
|
2017-10-09 08:53:58 +00:00
|
|
|
|
2017-10-09 09:16:04 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.quick_menu_show_information,
|
|
|
|
MENU_ENUM_LABEL_QUICK_MENU_SHOW_INFORMATION,
|
|
|
|
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_INFORMATION,
|
|
|
|
quick_menu_show_information,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(ui_companion_driver_get_ident(), "null", 4))
|
2016-08-10 05:18:55 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.ui_companion_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_UI_COMPANION_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_UI_COMPANION_ENABLE,
|
2016-08-10 05:18:55 +00:00
|
|
|
ui_companion_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-10 05:18:55 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-10 05:18:55 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.ui_companion_start_on_boot,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_UI_COMPANION_START_ON_BOOT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_UI_COMPANION_START_ON_BOOT,
|
2016-08-10 05:18:55 +00:00
|
|
|
ui_companion_start_on_boot,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-10 05:18:55 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-10 05:18:55 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-27 22:53:06 +00:00
|
|
|
&settings->bools.ui_menubar_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_UI_MENUBAR_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_UI_MENUBAR_ENABLE,
|
2016-08-10 05:18:55 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-08-10 05:18:55 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_PLAYLIST:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_PLAYLIST_SETTINGS_BEGIN),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "History", &group_info, &subgroup_info, parent_group);
|
2015-06-04 10:17:23 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.history_list_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_HISTORY_LIST_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_HISTORY_LIST_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-18 02:32:56 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.content_history_size,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_CONTENT_HISTORY_SIZE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_HISTORY_SIZE,
|
2016-03-20 19:45:06 +00:00
|
|
|
default_content_history_size,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 0, 1.0, true, false);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2017-10-02 20:17:44 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "Playlist", &group_info, &subgroup_info, parent_group);
|
2016-12-27 12:20:41 +00:00
|
|
|
|
2017-10-02 20:17:44 +00:00
|
|
|
CONFIG_BOOL(
|
2016-12-27 12:20:41 +00:00
|
|
|
list, list_info,
|
2017-10-02 20:17:44 +00:00
|
|
|
&settings->bools.playlist_entry_rename,
|
|
|
|
MENU_ENUM_LABEL_PLAYLIST_ENTRY_RENAME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_RENAME,
|
|
|
|
def_playlist_entry_rename,
|
2016-12-27 12:20:41 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2017-10-02 20:17:44 +00:00
|
|
|
CONFIG_BOOL(
|
2017-08-14 17:40:25 +00:00
|
|
|
list, list_info,
|
2017-10-02 20:17:44 +00:00
|
|
|
&settings->bools.playlist_entry_remove,
|
|
|
|
MENU_ENUM_LABEL_PLAYLIST_ENTRY_REMOVE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PLAYLIST_ENTRY_REMOVE,
|
|
|
|
def_playlist_entry_remove,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2017-08-14 17:40:25 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
2017-10-02 20:17:44 +00:00
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-08-14 17:40:25 +00:00
|
|
|
|
2016-12-27 12:20:41 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
2017-07-14 19:11:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_CHEEVOS:
|
|
|
|
#ifdef HAVE_CHEEVOS
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CHEEVOS_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_RETRO_ACHIEVEMENTS_SETTINGS);
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.cheevos_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_CHEEVOS_ENABLE,
|
2016-11-06 11:41:26 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_CHEEVOS_ENABLE,
|
2016-07-25 05:33:41 +00:00
|
|
|
cheevos_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-02-27 23:30:12 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.cheevos_test_unofficial,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_CHEEVOS_TEST_UNOFFICIAL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CHEEVOS_TEST_UNOFFICIAL,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
2016-12-11 09:59:15 +00:00
|
|
|
SD_FLAG_ADVANCED
|
2016-06-15 15:38:59 +00:00
|
|
|
);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-10-31 06:18:53 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.cheevos_leaderboards_enable,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_LEADERBOARDS_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CHEEVOS_LEADERBOARDS_ENABLE,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
|
2017-11-23 16:55:53 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.cheevos_badges_enable,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_BADGES_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CHEEVOS_BADGES_ENABLE,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
|
2017-07-02 07:59:39 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.cheevos_verbose_enable,
|
|
|
|
MENU_ENUM_LABEL_CHEEVOS_VERBOSE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CHEEVOS_VERBOSE_ENABLE,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.cheevos_hardcore_mode_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_CHEEVOS_HARDCORE_MODE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CHEEVOS_HARDCORE_MODE_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_CHEEVOS_HARDCORE_MODE_TOGGLE);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
#endif
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_CORE_UPDATER:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_UPDATER_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_UPDATER_SETTINGS);
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2016-09-10 17:06:00 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.network_buildbot_url,
|
|
|
|
sizeof(settings->paths.network_buildbot_url),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_UPDATER_BUILDBOT_URL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_UPDATER_BUILDBOT_URL,
|
2017-07-14 19:11:27 +00:00
|
|
|
buildbot_server_url,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.network_buildbot_assets_url,
|
|
|
|
sizeof(settings->paths.network_buildbot_assets_url),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_BUILDBOT_ASSETS_URL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_BUILDBOT_ASSETS_URL,
|
2017-07-14 19:11:27 +00:00
|
|
|
buildbot_assets_server_url,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.network_buildbot_auto_extract_archive,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_UPDATER_AUTO_EXTRACT_ARCHIVE,
|
2016-03-20 19:45:06 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE
|
|
|
|
);
|
2016-09-10 17:06:00 +00:00
|
|
|
#endif
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_NETPLAY:
|
2016-09-10 17:06:00 +00:00
|
|
|
START_GROUP(list, list_info, &group_info,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETWORK_SETTINGS),
|
|
|
|
parent_group);
|
|
|
|
|
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_SETTINGS);
|
|
|
|
|
|
|
|
START_SUB_GROUP(list, list_info, "Netplay", &group_info, &subgroup_info, parent_group);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
2016-09-29 19:07:10 +00:00
|
|
|
#if defined(HAVE_NETWORKING)
|
2016-03-20 19:45:06 +00:00
|
|
|
#if defined(HAVE_NETWORK_CMD)
|
|
|
|
unsigned user;
|
|
|
|
#endif
|
2017-02-06 18:45:58 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_public_announce,
|
2017-02-06 18:45:58 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_PUBLIC_ANNOUNCE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_PUBLIC_ANNOUNCE,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-03-04 20:23:59 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_use_mitm_server,
|
2017-03-04 20:23:59 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_USE_MITM_SERVER,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_USE_MITM_SERVER,
|
2017-03-07 14:00:20 +00:00
|
|
|
netplay_use_mitm_server,
|
2017-03-04 20:23:59 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.netplay_server,
|
|
|
|
sizeof(settings->paths.netplay_server),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_IP_ADDRESS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_IP_ADDRESS,
|
2016-03-20 19:45:06 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2017-02-24 02:33:44 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-10-03 21:28:20 +00:00
|
|
|
CONFIG_UINT(
|
2016-03-20 19:45:06 +00:00
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.netplay_port,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_TCP_UDP_PORT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_TCP_UDP_PORT,
|
2016-10-03 21:28:20 +00:00
|
|
|
RARCH_DEFAULT_PORT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-10-03 21:28:20 +00:00
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 65535, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2017-02-24 02:33:44 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-02-08 05:34:13 +00:00
|
|
|
|
2016-12-14 03:03:10 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.netplay_password,
|
|
|
|
sizeof(settings->paths.netplay_password),
|
2016-12-14 03:03:10 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_PASSWORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_PASSWORD,
|
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
|
2016-12-15 03:25:46 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.netplay_spectate_password,
|
|
|
|
sizeof(settings->paths.netplay_spectate_password),
|
2016-12-15 03:25:46 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_SPECTATE_PASSWORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_SPECTATE_PASSWORD,
|
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
|
2017-02-17 00:17:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_start_as_spectator,
|
2017-02-17 00:17:06 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_START_AS_SPECTATOR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_START_AS_SPECTATOR,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
|
2017-02-24 02:33:44 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_allow_slaves,
|
2017-02-24 02:33:44 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_ALLOW_SLAVES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_ALLOW_SLAVES,
|
|
|
|
true,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_require_slaves,
|
2017-02-24 02:33:44 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_REQUIRE_SLAVES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_REQUIRE_SLAVES,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
|
|
|
|
2016-12-16 04:09:55 +00:00
|
|
|
CONFIG_BOOL(
|
2016-03-20 19:45:06 +00:00
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_stateless_mode,
|
2016-12-16 04:09:55 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_STATELESS_MODE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_STATELESS_MODE,
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-12-16 04:09:55 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-02-24 02:33:44 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-02-08 06:08:03 +00:00
|
|
|
|
2016-12-19 19:54:13 +00:00
|
|
|
CONFIG_INT(
|
2016-09-15 03:54:18 +00:00
|
|
|
list, list_info,
|
2017-04-28 17:12:48 +00:00
|
|
|
&settings->ints.netplay_check_frames,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_CHECK_FRAMES,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_CHECK_FRAMES,
|
2016-12-07 02:08:46 +00:00
|
|
|
netplay_check_frames,
|
2016-09-15 03:54:18 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-01-19 18:27:52 +00:00
|
|
|
menu_settings_list_current_add_range(list, list_info, -600, 600, 1, false, false);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
|
|
|
|
|
|
|
CONFIG_INT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
(int *) &settings->uints.netplay_input_latency_frames_min,
|
2017-01-19 18:27:52 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_INPUT_LATENCY_FRAMES_MIN,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_INPUT_LATENCY_FRAMES_MIN,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 15, 1, true, true);
|
|
|
|
|
|
|
|
CONFIG_INT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
(int *) &settings->uints.netplay_input_latency_frames_range,
|
2017-01-19 18:27:52 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_INPUT_LATENCY_FRAMES_RANGE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_INPUT_LATENCY_FRAMES_RANGE,
|
|
|
|
0,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 0, 15, 1, true, true);
|
2016-09-15 03:54:18 +00:00
|
|
|
|
2016-11-30 03:18:37 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_nat_traversal,
|
2016-11-30 03:18:37 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_NAT_TRAVERSAL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_NAT_TRAVERSAL,
|
2017-02-24 02:33:44 +00:00
|
|
|
true,
|
2016-11-30 03:18:37 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-02-24 02:33:44 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-11-30 03:18:37 +00:00
|
|
|
|
2016-10-03 21:28:20 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.netplay_swap_input,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_CLIENT_SWAP_INPUT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_CLIENT_SWAP_INPUT,
|
2016-10-03 21:28:20 +00:00
|
|
|
netplay_client_swap_input,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-10-03 21:28:20 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2017-02-24 02:33:44 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-03-20 19:45:06 +00:00
|
|
|
|
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
|
|
|
|
START_SUB_GROUP(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
"Miscellaneous",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2015-06-22 01:07:32 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#if defined(HAVE_NETWORK_CMD)
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.network_cmd_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_CMD_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETWORK_CMD_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
network_cmd_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2015-06-20 17:46:13 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.network_cmd_port,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_CMD_PORT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETWORK_CMD_PORT,
|
2016-03-20 19:45:06 +00:00
|
|
|
network_cmd_port,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 99999, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.network_remote_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_REMOTE_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_ENABLE,
|
2016-09-23 14:08:12 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-04-28 19:03:04 +00:00
|
|
|
&settings->uints.network_remote_base_port,
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_NETWORK_REMOTE_PORT,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETWORK_REMOTE_PORT,
|
2016-03-20 19:45:06 +00:00
|
|
|
network_remote_base_port,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
NULL,
|
|
|
|
NULL);
|
|
|
|
menu_settings_list_current_add_range(list, list_info, 1, 99999, 1, true, true);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ADVANCED);
|
2016-06-14 22:52:15 +00:00
|
|
|
/* TODO/FIXME - add enum_idx */
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
2017-05-11 05:36:21 +00:00
|
|
|
unsigned max_users = *(input_driver_get_uint(INPUT_ACTION_MAX_USERS));
|
|
|
|
for(user = 0; user < max_users; user++)
|
|
|
|
{
|
|
|
|
char s1[64], s2[64];
|
|
|
|
|
|
|
|
snprintf(s1, sizeof(s1), "%s_user_p%d", msg_hash_to_str(MENU_ENUM_LABEL_NETWORK_REMOTE_ENABLE), user + 1);
|
|
|
|
snprintf(s2, sizeof(s2), msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NETWORK_USER_REMOTE_ENABLE), user + 1);
|
|
|
|
|
|
|
|
|
|
|
|
CONFIG_BOOL_ALT(
|
|
|
|
list, list_info,
|
|
|
|
&settings->bools.network_remote_enable_user[user],
|
|
|
|
/* todo: figure out this value, it's working fine but I don't think this is correct */
|
|
|
|
strdup(s1),
|
|
|
|
strdup(s2),
|
|
|
|
false,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
|
|
|
settings_data_list_current_add_free_flags(list, list_info, SD_FREE_FLAG_NAME | SD_FREE_FLAG_SHORT);
|
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, (enum msg_hash_enums)(MENU_ENUM_LABEL_NETWORK_REMOTE_USER_1_ENABLE + user));
|
|
|
|
}
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2015-06-23 05:09:24 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.stdin_cmd_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_STDIN_CMD_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_STDIN_CMD_ENABLE,
|
2016-03-20 19:45:06 +00:00
|
|
|
stdin_cmd_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_ADVANCED);
|
2015-06-28 16:55:00 +00:00
|
|
|
#endif
|
2016-03-21 20:31:34 +00:00
|
|
|
#endif
|
|
|
|
}
|
2016-09-10 17:06:00 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
2016-03-21 20:31:34 +00:00
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_LAKKA_SERVICES:
|
|
|
|
{
|
2016-08-09 23:46:47 +00:00
|
|
|
#if defined(HAVE_LAKKA)
|
2016-03-21 20:31:34 +00:00
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LAKKA_SERVICES),
|
2016-03-21 20:31:34 +00:00
|
|
|
parent_group);
|
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2016-03-21 20:31:34 +00:00
|
|
|
|
2016-06-30 15:53:54 +00:00
|
|
|
START_SUB_GROUP(list, list_info,
|
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LAKKA_SERVICES),
|
|
|
|
&group_info, &subgroup_info, parent_group);
|
2016-03-21 20:31:34 +00:00
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.ssh_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_SSH_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SSH_ENABLE,
|
2016-03-21 22:46:36 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-21 20:31:34 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-03-21 22:46:36 +00:00
|
|
|
(*list)[list_info->index - 1].change_handler = ssh_enable_toggle_change_handler;
|
2016-03-23 12:58:01 +00:00
|
|
|
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.samba_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_SAMBA_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAMBA_ENABLE,
|
2016-03-23 12:58:01 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-23 12:58:01 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-03-23 12:58:01 +00:00
|
|
|
(*list)[list_info->index - 1].change_handler = samba_enable_toggle_change_handler;
|
|
|
|
|
2016-03-23 13:06:53 +00:00
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.bluetooth_enable,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_BLUETOOTH_ENABLE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_BLUETOOTH_ENABLE,
|
2016-03-23 13:06:53 +00:00
|
|
|
true,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-23 13:06:53 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-03-23 13:06:53 +00:00
|
|
|
(*list)[list_info->index - 1].change_handler = bluetooth_enable_toggle_change_handler;
|
|
|
|
|
2016-03-21 20:31:34 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
2015-06-30 13:45:10 +00:00
|
|
|
#endif
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_USER:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_USER_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-23 05:09:24 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_USER_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_ACCOUNTS_LIST,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ACCOUNTS_LIST,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
2017-02-21 17:26:23 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_LAKKA_ADVANCED);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.username,
|
|
|
|
sizeof(settings->paths.username),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_NETPLAY_NICKNAME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_NETPLAY_NICKNAME,
|
2016-03-20 19:45:06 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-12-26 05:39:12 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.browse_url,
|
|
|
|
sizeof(settings->paths.browse_url),
|
2016-12-26 05:39:12 +00:00
|
|
|
MENU_ENUM_LABEL_BROWSE_URL,
|
|
|
|
MENU_ENUM_LABEL_VALUE_BROWSE_URL,
|
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
|
|
|
|
2016-06-07 04:05:41 +00:00
|
|
|
#ifdef HAVE_LANGEXTRA
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_UINT(
|
|
|
|
list, list_info,
|
2017-05-15 18:41:04 +00:00
|
|
|
msg_hash_get_uint(MSG_HASH_USER_LANGUAGE),
|
2016-10-26 03:38:25 +00:00
|
|
|
MENU_ENUM_LABEL_USER_LANGUAGE,
|
|
|
|
MENU_ENUM_LABEL_VALUE_USER_LANGUAGE,
|
2016-03-20 19:45:06 +00:00
|
|
|
def_user_language,
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
menu_settings_list_current_add_range(
|
|
|
|
list,
|
|
|
|
list_info,
|
|
|
|
0,
|
|
|
|
RETRO_LANGUAGE_LAST-1,
|
|
|
|
1,
|
|
|
|
true,
|
|
|
|
true);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_MENU_REFRESH);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2016-03-20 19:45:06 +00:00
|
|
|
&setting_get_string_representation_uint_user_language;
|
2016-06-07 04:05:41 +00:00
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_USER_ACCOUNTS:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACCOUNTS_LIST_END),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2016-01-18 20:35:09 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
|
|
|
CONFIG_ACTION(
|
|
|
|
list, list_info,
|
2016-10-26 03:15:52 +00:00
|
|
|
MENU_ENUM_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ACCOUNTS_RETRO_ACHIEVEMENTS,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group);
|
|
|
|
#endif
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_USER_ACCOUNTS_CHEEVOS:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-21 03:40:49 +00:00
|
|
|
#ifdef HAVE_CHEEVOS
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 20:59:13 +00:00
|
|
|
settings->arrays.cheevos_username,
|
|
|
|
sizeof(settings->arrays.cheevos_username),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_CHEEVOS_USERNAME,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_USERNAME,
|
2016-03-20 19:45:06 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_STRING(
|
|
|
|
list, list_info,
|
2017-04-28 20:59:13 +00:00
|
|
|
settings->arrays.cheevos_password,
|
|
|
|
sizeof(settings->arrays.cheevos_password),
|
2016-10-26 03:22:07 +00:00
|
|
|
MENU_ENUM_LABEL_CHEEVOS_PASSWORD,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_PASSWORD,
|
2016-03-20 19:45:06 +00:00
|
|
|
"",
|
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-07-14 19:11:27 +00:00
|
|
|
(*list)[list_info->index - 1].get_string_representation =
|
2016-09-01 06:08:43 +00:00
|
|
|
&setting_get_string_representation_cheevos_password;
|
2016-03-20 19:45:06 +00:00
|
|
|
settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT);
|
2016-03-21 03:40:49 +00:00
|
|
|
#endif
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_DIRECTORY:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DIRECTORY_SETTINGS),
|
2016-03-20 19:45:06 +00:00
|
|
|
parent_group);
|
2016-06-17 13:17:20 +00:00
|
|
|
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_DIRECTORY_SETTINGS);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_DIRECTORY_SETTINGS);
|
2015-06-22 01:07:32 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State", &group_info, &subgroup_info, parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_system,
|
|
|
|
sizeof(settings->paths.directory_system),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_SYSTEM_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SYSTEM_DIRECTORY,
|
2017-08-05 19:38:50 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_SYSTEM],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_CONTENT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_core_assets,
|
|
|
|
sizeof(settings->paths.directory_core_assets),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_CORE_ASSETS_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CORE_ASSETS_DIRECTORY,
|
2017-07-14 19:11:27 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_CORE_ASSETS],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:15:18 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-10-18 05:05:15 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_assets,
|
|
|
|
sizeof(settings->paths.directory_assets),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_ASSETS_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ASSETS_DIRECTORY,
|
2017-05-23 22:16:56 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_ASSETS],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:15:18 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-10-18 05:05:15 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_dynamic_wallpapers,
|
|
|
|
sizeof(settings->paths.directory_dynamic_wallpapers),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_DYNAMIC_WALLPAPERS_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_DYNAMIC_WALLPAPERS_DIRECTORY,
|
2017-08-05 19:38:50 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_WALLPAPERS],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-10-18 17:21:57 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_thumbnails,
|
|
|
|
sizeof(settings->paths.directory_thumbnails),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_THUMBNAILS_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_THUMBNAILS_DIRECTORY,
|
2017-07-14 19:11:27 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_THUMBNAILS],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-10-18 05:09:49 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_menu_content,
|
|
|
|
sizeof(settings->paths.directory_menu_content),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_RGUI_BROWSER_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RGUI_BROWSER_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_MENU_CONTENT],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-10-18 05:05:15 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_menu_config,
|
|
|
|
sizeof(settings->paths.directory_menu_config),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_RGUI_CONFIG_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RGUI_CONFIG_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_MENU_CONFIG],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_libretro,
|
|
|
|
sizeof(settings->paths.directory_libretro),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_LIBRETRO_DIR_PATH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LIBRETRO_DIR_PATH,
|
2017-05-23 17:43:58 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_CORE],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_CORE_INFO_INIT);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_libretro_info,
|
|
|
|
sizeof(settings->paths.path_libretro_info),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_LIBRETRO_INFO_PATH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LIBRETRO_INFO_PATH,
|
2017-05-23 17:43:58 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_CORE_INFO],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2016-05-09 18:51:53 +00:00
|
|
|
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_CORE_INFO_INIT);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_LIBRETRODB
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_content_database,
|
|
|
|
sizeof(settings->paths.path_content_database),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_CONTENT_DATABASE_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CONTENT_DATABASE_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_DATABASE],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_cursor,
|
|
|
|
sizeof(settings->paths.directory_cursor),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_CURSOR_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CURSOR_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_CURSOR],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.path_cheat_database,
|
|
|
|
sizeof(settings->paths.path_cheat_database),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_CHEAT_DATABASE_PATH,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CHEAT_DATABASE_PATH,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_CHEATS],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_video_filter,
|
|
|
|
sizeof(settings->paths.directory_video_filter),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_FILTER_DIR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_FILTER_DIR,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_VIDEO_FILTER],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_audio_filter,
|
|
|
|
sizeof(settings->paths.directory_audio_filter),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_AUDIO_FILTER_DIR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_AUDIO_FILTER_DIR,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_AUDIO_FILTER],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_video_shader,
|
|
|
|
sizeof(settings->paths.directory_video_shader),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VIDEO_SHADER_DIR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_DIR,
|
2017-05-23 17:43:58 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_SHADER],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-07-05 19:12:52 +00:00
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(settings->arrays.record_driver, "null", 4))
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2016-10-01 06:15:07 +00:00
|
|
|
global->record.output_dir,
|
|
|
|
sizeof(global->record.output_dir),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_RECORDING_OUTPUT_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORDING_OUTPUT_DIRECTORY,
|
2017-05-23 23:13:56 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_RECORD_OUTPUT],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 23:13:56 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2016-03-20 19:45:06 +00:00
|
|
|
|
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2016-10-01 06:15:07 +00:00
|
|
|
global->record.config_dir,
|
|
|
|
sizeof(global->record.config_dir),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_RECORDING_CONFIG_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_RECORDING_CONFIG_DIRECTORY,
|
2017-05-23 23:13:56 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_RECORD_CONFIG],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 23:13:56 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
#ifdef HAVE_OVERLAY
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_overlay,
|
|
|
|
sizeof(settings->paths.directory_overlay),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_OVERLAY_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_OVERLAY_DIRECTORY,
|
2017-05-23 17:43:58 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_OVERLAY],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
#endif
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_screenshot,
|
|
|
|
sizeof(settings->paths.directory_screenshot),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_SCREENSHOT_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SCREENSHOT_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_SCREENSHOT],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_CONTENT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_autoconfig,
|
|
|
|
sizeof(settings->paths.directory_autoconfig),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_JOYPAD_AUTOCONFIG_DIR,
|
|
|
|
MENU_ENUM_LABEL_VALUE_JOYPAD_AUTOCONFIG_DIR,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_AUTOCONFIG],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_input_remapping,
|
|
|
|
sizeof(settings->paths.directory_input_remapping),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_INPUT_REMAPPING_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_INPUT_REMAPPING_DIRECTORY,
|
2017-08-05 19:38:50 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_REMAP],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_playlist,
|
|
|
|
sizeof(settings->paths.directory_playlist),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_PLAYLIST_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_PLAYLIST_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_PLAYLIST],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_DEFAULT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2016-10-03 06:15:41 +00:00
|
|
|
dir_get_ptr(RARCH_DIR_SAVEFILE),
|
2016-10-03 06:07:52 +00:00
|
|
|
dir_get_size(RARCH_DIR_SAVEFILE),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_SAVEFILE_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVEFILE_DIRECTORY,
|
2017-08-05 19:38:50 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_SRAM],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_CONTENT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-07 23:40:25 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2016-10-03 06:15:41 +00:00
|
|
|
dir_get_ptr(RARCH_DIR_SAVESTATE),
|
2016-10-03 06:07:52 +00:00
|
|
|
dir_get_size(RARCH_DIR_SAVESTATE),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_SAVESTATE_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_SAVESTATE_DIRECTORY,
|
2017-08-05 19:38:50 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_SAVESTATE],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_CONTENT,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-08-05 19:38:50 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
CONFIG_DIR(
|
|
|
|
list, list_info,
|
2017-04-28 22:39:29 +00:00
|
|
|
settings->paths.directory_cache,
|
|
|
|
sizeof(settings->paths.directory_cache),
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_CACHE_DIRECTORY,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CACHE_DIRECTORY,
|
2017-05-23 22:23:35 +00:00
|
|
|
g_defaults.dirs[DEFAULT_DIR_CACHE],
|
2016-10-26 03:28:16 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_DIRECTORY_NONE,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
|
|
|
general_read_handler);
|
2017-05-23 22:23:35 +00:00
|
|
|
(*list)[list_info->index - 1].action_start = directory_action_start_generic;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_PRIVACY:
|
|
|
|
START_GROUP(list, list_info, &group_info,
|
2016-06-19 22:31:13 +00:00
|
|
|
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PRIVACY_SETTINGS), parent_group);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-07-02 18:40:27 +00:00
|
|
|
parent_group = msg_hash_to_str(MENU_ENUM_LABEL_PRIVACY_SETTINGS);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
START_SUB_GROUP(list, list_info, "State",
|
|
|
|
&group_info, &subgroup_info, parent_group);
|
2015-06-08 00:03:50 +00:00
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(settings->arrays.camera_driver, "null", 4))
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.camera_allow,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_CAMERA_ALLOW,
|
|
|
|
MENU_ENUM_LABEL_VALUE_CAMERA_ALLOW,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2017-05-16 02:00:37 +00:00
|
|
|
if (string_is_not_equal_fast(settings->arrays.location_driver, "null", 4))
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
|
|
|
CONFIG_BOOL(
|
|
|
|
list, list_info,
|
2017-04-28 11:43:47 +00:00
|
|
|
&settings->bools.location_allow,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_LOCATION_ALLOW,
|
|
|
|
MENU_ENUM_LABEL_VALUE_LOCATION_ALLOW,
|
2016-03-20 19:45:06 +00:00
|
|
|
false,
|
2016-10-26 03:04:24 +00:00
|
|
|
MENU_ENUM_LABEL_VALUE_OFF,
|
|
|
|
MENU_ENUM_LABEL_VALUE_ON,
|
2016-03-20 19:45:06 +00:00
|
|
|
&group_info,
|
|
|
|
&subgroup_info,
|
|
|
|
parent_group,
|
|
|
|
general_write_handler,
|
2016-06-15 15:38:59 +00:00
|
|
|
general_read_handler,
|
|
|
|
SD_FLAG_NONE);
|
2016-03-20 19:45:06 +00:00
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
END_SUB_GROUP(list, list_info, parent_group);
|
|
|
|
END_GROUP(list, list_info, parent_group);
|
|
|
|
break;
|
|
|
|
case SETTINGS_LIST_NONE:
|
|
|
|
default:
|
|
|
|
break;
|
2015-06-21 07:12:16 +00:00
|
|
|
}
|
2015-06-07 23:40:25 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-06-16 23:07:52 +00:00
|
|
|
bool menu_setting_free(void *data)
|
2015-06-12 15:55:11 +00:00
|
|
|
{
|
2016-06-16 23:07:52 +00:00
|
|
|
unsigned values, n;
|
2016-03-18 21:27:40 +00:00
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-10-23 00:41:50 +00:00
|
|
|
rarch_setting_t **list = &setting;
|
2015-06-26 16:35:35 +00:00
|
|
|
|
2016-06-16 23:07:52 +00:00
|
|
|
if (!setting)
|
2016-03-18 21:27:40 +00:00
|
|
|
return false;
|
2015-06-12 19:03:43 +00:00
|
|
|
|
2016-05-23 01:45:25 +00:00
|
|
|
/* Free data which was previously tagged */
|
2016-10-31 14:01:40 +00:00
|
|
|
for (; setting_get_type(setting) != ST_NONE; (*list = *list + 1))
|
2017-02-26 09:33:03 +00:00
|
|
|
for (values = (unsigned)setting->free_flags, n = 0; values != 0; values >>= 1, n++)
|
2016-05-23 01:45:25 +00:00
|
|
|
if (values & 1)
|
|
|
|
switch (1 << n)
|
|
|
|
{
|
2017-09-08 22:02:38 +00:00
|
|
|
case SD_FREE_FLAG_VALUES:
|
|
|
|
free((void*)setting->values);
|
|
|
|
setting->values = NULL;
|
|
|
|
break;
|
|
|
|
case SD_FREE_FLAG_NAME:
|
|
|
|
free((void*)setting->name);
|
|
|
|
setting->name = NULL;
|
|
|
|
break;
|
|
|
|
case SD_FREE_FLAG_SHORT:
|
|
|
|
free((void*)setting->short_description);
|
|
|
|
setting->short_description = NULL;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
2016-05-23 01:45:25 +00:00
|
|
|
}
|
2015-06-12 19:03:43 +00:00
|
|
|
|
2016-03-18 21:27:40 +00:00
|
|
|
free(data);
|
|
|
|
|
|
|
|
return true;
|
2015-06-12 15:55:11 +00:00
|
|
|
}
|
|
|
|
|
2017-09-09 04:10:58 +00:00
|
|
|
static void menu_setting_terminate_last(rarch_setting_t *list, unsigned pos)
|
|
|
|
{
|
|
|
|
(*&list)[pos].enum_idx = MSG_UNKNOWN;
|
|
|
|
(*&list)[pos].type = ST_NONE;
|
|
|
|
(*&list)[pos].size = 0;
|
|
|
|
(*&list)[pos].name = NULL;
|
|
|
|
(*&list)[pos].name_hash = 0;
|
|
|
|
(*&list)[pos].short_description = NULL;
|
|
|
|
(*&list)[pos].group = NULL;
|
|
|
|
(*&list)[pos].subgroup = NULL;
|
|
|
|
(*&list)[pos].parent_group = NULL;
|
|
|
|
(*&list)[pos].values = NULL;
|
|
|
|
(*&list)[pos].index = 0;
|
|
|
|
(*&list)[pos].index_offset = 0;
|
|
|
|
(*&list)[pos].min = 0.0;
|
|
|
|
(*&list)[pos].max = 0.0;
|
|
|
|
(*&list)[pos].flags = 0;
|
|
|
|
(*&list)[pos].free_flags = 0;
|
|
|
|
(*&list)[pos].change_handler = NULL;
|
|
|
|
(*&list)[pos].read_handler = NULL;
|
|
|
|
(*&list)[pos].action_start = NULL;
|
|
|
|
(*&list)[pos].action_left = NULL;
|
|
|
|
(*&list)[pos].action_right = NULL;
|
|
|
|
(*&list)[pos].action_up = NULL;
|
|
|
|
(*&list)[pos].action_down = NULL;
|
|
|
|
(*&list)[pos].action_cancel = NULL;
|
|
|
|
(*&list)[pos].action_ok = NULL;
|
|
|
|
(*&list)[pos].action_select = NULL;
|
|
|
|
(*&list)[pos].get_string_representation = NULL;
|
|
|
|
(*&list)[pos].bind_type = 0;
|
|
|
|
(*&list)[pos].browser_selection_type = ST_NONE;
|
|
|
|
(*&list)[pos].step = 0.0f;
|
|
|
|
(*&list)[pos].rounding_fraction = NULL;
|
|
|
|
(*&list)[pos].enforce_minrange = false;
|
|
|
|
(*&list)[pos].enforce_maxrange = false;
|
|
|
|
(*&list)[pos].cmd_trigger.idx = CMD_EVENT_NONE;
|
|
|
|
(*&list)[pos].cmd_trigger.triggered = false;
|
|
|
|
(*&list)[pos].dont_use_enum_idx_representation = false;
|
|
|
|
}
|
|
|
|
|
2016-03-20 18:29:59 +00:00
|
|
|
static rarch_setting_t *menu_setting_new_internal(rarch_setting_info_t *list_info)
|
2015-06-02 18:26:27 +00:00
|
|
|
{
|
2016-03-20 18:56:03 +00:00
|
|
|
unsigned i;
|
2016-03-20 19:45:06 +00:00
|
|
|
rarch_setting_t* resized_list = NULL;
|
2017-07-14 19:11:27 +00:00
|
|
|
enum settings_list_type list_types[] =
|
2016-03-20 19:45:06 +00:00
|
|
|
{
|
|
|
|
SETTINGS_LIST_MAIN_MENU,
|
|
|
|
SETTINGS_LIST_DRIVERS,
|
|
|
|
SETTINGS_LIST_CORE,
|
|
|
|
SETTINGS_LIST_CONFIGURATION,
|
|
|
|
SETTINGS_LIST_LOGGING,
|
|
|
|
SETTINGS_LIST_SAVING,
|
|
|
|
SETTINGS_LIST_REWIND,
|
|
|
|
SETTINGS_LIST_VIDEO,
|
|
|
|
SETTINGS_LIST_AUDIO,
|
|
|
|
SETTINGS_LIST_INPUT,
|
|
|
|
SETTINGS_LIST_INPUT_HOTKEY,
|
|
|
|
SETTINGS_LIST_RECORDING,
|
|
|
|
SETTINGS_LIST_FRAME_THROTTLING,
|
|
|
|
SETTINGS_LIST_FONT,
|
|
|
|
SETTINGS_LIST_OVERLAY,
|
|
|
|
SETTINGS_LIST_MENU,
|
|
|
|
SETTINGS_LIST_MENU_FILE_BROWSER,
|
|
|
|
SETTINGS_LIST_MULTIMEDIA,
|
|
|
|
SETTINGS_LIST_USER_INTERFACE,
|
|
|
|
SETTINGS_LIST_PLAYLIST,
|
|
|
|
SETTINGS_LIST_CHEEVOS,
|
|
|
|
SETTINGS_LIST_CORE_UPDATER,
|
|
|
|
SETTINGS_LIST_NETPLAY,
|
2016-03-21 20:31:34 +00:00
|
|
|
SETTINGS_LIST_LAKKA_SERVICES,
|
2016-03-20 19:45:06 +00:00
|
|
|
SETTINGS_LIST_USER,
|
|
|
|
SETTINGS_LIST_USER_ACCOUNTS,
|
|
|
|
SETTINGS_LIST_USER_ACCOUNTS_CHEEVOS,
|
|
|
|
SETTINGS_LIST_DIRECTORY,
|
|
|
|
SETTINGS_LIST_PRIVACY
|
|
|
|
};
|
2016-06-19 22:31:13 +00:00
|
|
|
const char *root = msg_hash_to_str(MENU_ENUM_LABEL_MAIN_MENU);
|
2016-03-20 19:45:06 +00:00
|
|
|
rarch_setting_t *list = (rarch_setting_t*)calloc(
|
|
|
|
list_info->size, sizeof(*list));
|
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
if (!list)
|
|
|
|
goto error;
|
|
|
|
|
2016-03-20 19:45:06 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE(list_types); i++)
|
2016-03-20 18:56:03 +00:00
|
|
|
{
|
|
|
|
if (!setting_append_list(list_types[i], &list, list_info, root))
|
|
|
|
goto error;
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
if (!(settings_list_append(&list, list_info)))
|
2015-06-02 18:26:27 +00:00
|
|
|
goto error;
|
2017-09-09 04:10:58 +00:00
|
|
|
menu_setting_terminate_last(list, list_info->index);
|
|
|
|
list_info->index++;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
/* flatten this array to save ourselves some kilobytes. */
|
2016-03-20 18:54:16 +00:00
|
|
|
resized_list = (rarch_setting_t*)realloc(list,
|
|
|
|
list_info->index * sizeof(rarch_setting_t));
|
2016-03-20 18:29:59 +00:00
|
|
|
if (!resized_list)
|
2015-06-02 18:26:27 +00:00
|
|
|
goto error;
|
|
|
|
|
2016-03-20 18:29:59 +00:00
|
|
|
list = resized_list;
|
2015-06-02 18:26:27 +00:00
|
|
|
|
|
|
|
return list;
|
|
|
|
|
|
|
|
error:
|
2016-03-20 18:29:59 +00:00
|
|
|
if (list)
|
|
|
|
free(list);
|
|
|
|
return NULL;
|
|
|
|
}
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-03-20 18:29:59 +00:00
|
|
|
/**
|
|
|
|
* menu_setting_new:
|
|
|
|
* @mask : Bitmask of settings to include.
|
|
|
|
*
|
|
|
|
* Request a list of settings based on @mask.
|
|
|
|
*
|
|
|
|
* Returns: settings list composed of all requested
|
|
|
|
* settings on success, otherwise NULL.
|
|
|
|
**/
|
|
|
|
static rarch_setting_t *menu_setting_new(void)
|
|
|
|
{
|
|
|
|
rarch_setting_t* list = NULL;
|
|
|
|
rarch_setting_info_t *list_info = (rarch_setting_info_t*)
|
2017-08-13 04:14:54 +00:00
|
|
|
malloc(sizeof(*list_info));
|
2016-03-20 18:29:59 +00:00
|
|
|
|
|
|
|
if (!list_info)
|
|
|
|
return NULL;
|
|
|
|
|
2017-08-13 04:14:54 +00:00
|
|
|
list_info->index = 0;
|
2016-03-20 18:29:59 +00:00
|
|
|
list_info->size = 32;
|
|
|
|
|
2017-08-13 04:14:54 +00:00
|
|
|
list = menu_setting_new_internal(list_info);
|
2016-03-20 18:29:59 +00:00
|
|
|
|
|
|
|
menu_settings_info_list_free(list_info);
|
2017-08-13 04:14:54 +00:00
|
|
|
|
|
|
|
list_info = NULL;
|
2015-09-28 16:44:28 +00:00
|
|
|
|
2016-03-20 18:29:59 +00:00
|
|
|
return list;
|
2015-06-02 18:26:27 +00:00
|
|
|
}
|
2016-03-18 21:16:57 +00:00
|
|
|
|
|
|
|
bool menu_setting_ctl(enum menu_setting_ctl_state state, void *data)
|
|
|
|
{
|
2016-03-18 21:23:51 +00:00
|
|
|
uint64_t flags;
|
2016-03-18 21:16:57 +00:00
|
|
|
|
|
|
|
switch (state)
|
|
|
|
{
|
2016-03-18 21:23:51 +00:00
|
|
|
case MENU_SETTING_CTL_IS_OF_PATH_TYPE:
|
|
|
|
{
|
|
|
|
bool cbs_bound = false;
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
|
|
|
|
|
|
|
if (!setting)
|
|
|
|
return false;
|
|
|
|
|
2016-10-23 01:13:49 +00:00
|
|
|
flags = setting->flags;
|
2016-03-18 21:23:51 +00:00
|
|
|
|
2016-10-31 14:01:40 +00:00
|
|
|
if (setting_get_type(setting) != ST_ACTION)
|
2016-03-18 21:23:51 +00:00
|
|
|
return false;
|
|
|
|
|
|
|
|
if (!setting->change_handler)
|
|
|
|
return false;
|
|
|
|
|
2017-10-02 22:53:09 +00:00
|
|
|
cbs_bound = (setting->action_right != NULL);
|
2016-03-18 21:23:51 +00:00
|
|
|
cbs_bound = cbs_bound || setting->action_left;
|
|
|
|
cbs_bound = cbs_bound || setting->action_select;
|
|
|
|
|
|
|
|
if (!cbs_bound)
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if (!(flags & SD_FLAG_BROWSER_ACTION))
|
|
|
|
return false;
|
|
|
|
}
|
2016-03-18 21:31:14 +00:00
|
|
|
break;
|
|
|
|
case MENU_SETTING_CTL_NEW:
|
|
|
|
{
|
|
|
|
rarch_setting_t **setting = (rarch_setting_t**)data;
|
|
|
|
if (!setting)
|
|
|
|
return false;
|
|
|
|
*setting = menu_setting_new();
|
|
|
|
}
|
|
|
|
break;
|
2016-03-18 22:31:11 +00:00
|
|
|
case MENU_SETTING_CTL_ACTION_RIGHT:
|
|
|
|
{
|
|
|
|
rarch_setting_t *setting = (rarch_setting_t*)data;
|
2016-03-18 22:32:40 +00:00
|
|
|
if (!setting)
|
2016-03-18 22:31:11 +00:00
|
|
|
return false;
|
|
|
|
|
2016-03-18 22:32:40 +00:00
|
|
|
if (setting_handler(setting, MENU_ACTION_RIGHT) == -1)
|
|
|
|
return false;
|
2016-03-18 22:31:11 +00:00
|
|
|
}
|
|
|
|
break;
|
2016-03-18 21:16:57 +00:00
|
|
|
case MENU_SETTING_CTL_NONE:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|