2012-04-21 23:13:50 +02:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 01:50:59 +01:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2016-01-10 04:06:50 +01:00
|
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
2016-10-27 11:47:10 -04:00
|
|
|
* Copyright (C) 2016 - Brad Parker
|
2015-08-31 00:55:34 +02:00
|
|
|
*
|
2012-04-21 23:13:50 +02:00
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
2010-12-22 15:58:43 +01:00
|
|
|
* 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.
|
|
|
|
*
|
2012-04-21 23:13:50 +02:00
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
2010-12-22 15:58:43 +01:00
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
2012-04-21 23:31:57 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
2010-12-22 15:58:43 +01:00
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2011-01-05 20:09:12 +01:00
|
|
|
#ifndef __CONFIG_DEF_H
|
|
|
|
#define __CONFIG_DEF_H
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-10-21 05:05:52 +02:00
|
|
|
#include <boolean.h>
|
2016-10-25 20:18:31 +02:00
|
|
|
#include "gfx/video_defines.h"
|
2011-01-07 17:59:53 +01:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
2011-01-06 23:15:49 +01:00
|
|
|
#include "config.h"
|
2011-01-07 17:59:53 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-05 18:57:29 +02:00
|
|
|
#if defined(HW_RVL)
|
2016-06-05 18:03:39 +02:00
|
|
|
#define MAX_GAMMA_SETTING 30
|
2016-06-05 18:57:29 +02:00
|
|
|
#elif defined(GEKKO)
|
|
|
|
#define MAX_GAMMA_SETTING 2
|
2015-11-21 16:32:22 +01:00
|
|
|
#else
|
|
|
|
#define MAX_GAMMA_SETTING 1
|
|
|
|
#endif
|
|
|
|
|
2013-01-11 08:38:02 +01:00
|
|
|
#if defined(XENON) || defined(_XBOX360) || defined(__CELLOS_LV2__)
|
|
|
|
#define DEFAULT_ASPECT_RATIO 1.7778f
|
2017-01-07 21:25:12 +00:00
|
|
|
#elif defined(_XBOX1) || defined(GEKKO) || defined(ANDROID)
|
2013-01-11 08:38:02 +01:00
|
|
|
#define DEFAULT_ASPECT_RATIO 1.3333f
|
|
|
|
#else
|
|
|
|
#define DEFAULT_ASPECT_RATIO -1.0f
|
|
|
|
#endif
|
|
|
|
|
2015-03-30 23:56:39 +02:00
|
|
|
#ifdef RARCH_MOBILE
|
|
|
|
static const bool pointer_enable = true;
|
|
|
|
#else
|
|
|
|
static const bool pointer_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2015-07-08 16:45:04 +02:00
|
|
|
/* Certain platforms might have assets stored in the bundle that
|
|
|
|
* we need to extract to a user-writable directory on first boot.
|
|
|
|
*
|
|
|
|
* Examples include: Android, iOS/OSX) */
|
2016-01-10 02:23:48 +01:00
|
|
|
#if defined(ANDROID) || defined(IOS)
|
2015-07-08 16:45:04 +02:00
|
|
|
static bool bundle_assets_extract_enable = true;
|
|
|
|
#else
|
|
|
|
static bool bundle_assets_extract_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2014-10-17 04:17:28 +02:00
|
|
|
static const bool def_history_list_enable = true;
|
2016-12-27 13:20:41 +01:00
|
|
|
static const bool def_playlist_entry_remove = true;
|
2014-10-17 04:17:28 +02:00
|
|
|
|
|
|
|
static const unsigned int def_user_language = 0;
|
|
|
|
|
2016-10-12 10:09:22 +02:00
|
|
|
#if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS))
|
2015-11-01 16:38:04 +01:00
|
|
|
static const bool def_mouse_enable = true;
|
|
|
|
#else
|
|
|
|
static const bool def_mouse_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2016-07-25 07:33:41 +02:00
|
|
|
#ifdef HAVE_CHEEVOS
|
|
|
|
static const bool cheevos_enable = false;
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* VIDEO */
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2013-01-11 22:46:14 +01:00
|
|
|
#if defined(_XBOX360)
|
|
|
|
#define DEFAULT_GAMMA 1
|
|
|
|
#else
|
|
|
|
#define DEFAULT_GAMMA 0
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Windowed
|
|
|
|
* Real x resolution = aspect * base_size * x scale
|
|
|
|
* Real y resolution = base_size * y scale
|
|
|
|
*/
|
2014-08-11 23:57:57 +02:00
|
|
|
static const float scale = 3.0;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Fullscreen */
|
|
|
|
|
|
|
|
/* To start in Fullscreen, or not. */
|
|
|
|
static const bool fullscreen = false;
|
|
|
|
|
|
|
|
/* To use windowed mode or not when going fullscreen. */
|
2015-08-31 00:55:34 +02:00
|
|
|
static const bool windowed_fullscreen = true;
|
2014-09-08 17:12:37 +02:00
|
|
|
|
|
|
|
/* Which monitor to prefer. 0 is any monitor, 1 and up selects
|
|
|
|
* specific monitors, 1 being the first monitor. */
|
|
|
|
static const unsigned monitor_index = 0;
|
|
|
|
|
2016-11-23 19:43:50 -05:00
|
|
|
/* Window */
|
|
|
|
/* Window size. A value of 0 uses window scale
|
|
|
|
* multiplied by the core framebuffer size. */
|
|
|
|
static const unsigned window_x = 0;
|
|
|
|
static const unsigned window_y = 0;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Fullscreen resolution. A value of 0 uses the desktop
|
|
|
|
* resolution. */
|
|
|
|
static const unsigned fullscreen_x = 0;
|
2011-02-28 16:59:31 +01:00
|
|
|
static const unsigned fullscreen_y = 0;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-04-14 06:07:17 +02:00
|
|
|
#if defined(RARCH_CONSOLE) || defined(__APPLE__)
|
|
|
|
static const bool load_dummy_on_core_shutdown = false;
|
|
|
|
#else
|
|
|
|
static const bool load_dummy_on_core_shutdown = true;
|
|
|
|
#endif
|
2016-11-30 00:39:32 -05:00
|
|
|
static const bool check_firmware_before_loading = false;
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Forcibly disable composition.
|
|
|
|
* Only valid on Windows Vista/7/8 for now. */
|
2011-08-07 15:00:34 +02:00
|
|
|
static const bool disable_composition = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Video VSYNC (recommended) */
|
2010-12-22 15:58:43 +01:00
|
|
|
static const bool vsync = true;
|
|
|
|
|
2016-06-21 21:36:58 +02:00
|
|
|
static const unsigned max_swapchain_images = 3;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Attempts to hard-synchronize CPU and GPU.
|
|
|
|
* Can reduce latency at cost of performance. */
|
2013-05-03 14:04:29 +02:00
|
|
|
static const bool hard_sync = false;
|
2014-09-08 17:12:37 +02:00
|
|
|
|
|
|
|
/* Configures how many frames the GPU can run ahead of CPU.
|
|
|
|
* 0: Syncs to GPU immediately.
|
|
|
|
* 1: Syncs to previous frame.
|
|
|
|
* 2: Etc ...
|
|
|
|
*/
|
2013-05-26 13:43:24 +02:00
|
|
|
static const unsigned hard_sync_frames = 0;
|
2013-05-03 14:04:29 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Sets how many milliseconds to delay after VSync before running the core.
|
|
|
|
* Can reduce latency at cost of higher risk of stuttering.
|
|
|
|
*/
|
2014-08-28 19:54:42 +01:00
|
|
|
static const unsigned frame_delay = 0;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Inserts a black frame inbetween frames.
|
2015-08-31 00:55:34 +02:00
|
|
|
* Useful for 120 Hz monitors who want to play 60 Hz material with eliminated
|
|
|
|
* ghosting. video_refresh_rate should still be configured as if it
|
2014-09-08 17:12:37 +02:00
|
|
|
* is a 60 Hz monitor (divide refresh rate by 2).
|
|
|
|
*/
|
2013-08-30 09:35:13 +02:00
|
|
|
static bool black_frame_insertion = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Uses a custom swap interval for VSync.
|
|
|
|
* Set this to effectively halve monitor refresh rate.
|
|
|
|
*/
|
2013-09-01 13:20:10 +02:00
|
|
|
static unsigned swap_interval = 1;
|
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Threaded video. Will possibly increase performance significantly
|
2014-09-08 17:12:37 +02:00
|
|
|
* at the cost of worse synchronization and latency.
|
|
|
|
*/
|
2013-02-16 02:21:43 +01:00
|
|
|
static const bool video_threaded = false;
|
|
|
|
|
2015-07-12 18:23:03 +02:00
|
|
|
#if defined(HAVE_THREADS)
|
|
|
|
#if defined(GEKKO) || defined(PSP) || defined(_3DS) || defined(_XBOX1)
|
|
|
|
/* For single-core consoles right now it's better to have this be disabled. */
|
|
|
|
static const bool threaded_data_runloop_enable = false;
|
|
|
|
#else
|
2015-06-14 20:10:23 +02:00
|
|
|
static const bool threaded_data_runloop_enable = true;
|
2015-07-12 18:23:03 +02:00
|
|
|
#endif
|
2015-04-15 20:11:43 +02:00
|
|
|
#else
|
2015-04-12 03:27:20 +02:00
|
|
|
static const bool threaded_data_runloop_enable = false;
|
2015-04-15 20:11:43 +02:00
|
|
|
#endif
|
2015-04-12 03:27:20 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Set to true if HW render cores should get their private context. */
|
2014-04-19 16:37:39 +02:00
|
|
|
static const bool video_shared_context = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Sets GC/Wii screen width. */
|
2014-08-10 16:39:08 -04:00
|
|
|
static const unsigned video_viwidth = 640;
|
|
|
|
|
2016-09-07 13:53:46 +02:00
|
|
|
#ifdef GEKKO
|
2014-10-04 01:13:08 -04:00
|
|
|
/* Removes 480i flicker, smooths picture a little. */
|
|
|
|
static const bool video_vfilter = true;
|
2016-09-07 13:53:46 +02:00
|
|
|
#endif
|
2014-10-04 01:13:08 -04:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Smooths picture. */
|
2010-12-24 01:00:34 +01:00
|
|
|
static const bool video_smooth = true;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* On resize and fullscreen, rendering area will stay 4:3 */
|
2015-08-31 00:55:34 +02:00
|
|
|
static const bool force_aspect = true;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Enable use of shaders. */
|
2013-04-07 13:08:09 +02:00
|
|
|
#ifdef RARCH_CONSOLE
|
|
|
|
static const bool shader_enable = true;
|
|
|
|
#else
|
2013-04-07 01:38:11 +02:00
|
|
|
static const bool shader_enable = false;
|
2013-04-07 13:08:09 +02:00
|
|
|
#endif
|
2013-04-07 01:38:11 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Only scale in integer steps.
|
|
|
|
* The base size depends on system-reported geometry and aspect ratio.
|
|
|
|
* If video_force_aspect is not set, X/Y will be integer scaled independently.
|
|
|
|
*/
|
2013-01-29 19:28:33 +01:00
|
|
|
static const bool scale_integer = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Controls aspect ratio handling. */
|
|
|
|
|
|
|
|
/* Automatic */
|
|
|
|
static const float aspect_ratio = DEFAULT_ASPECT_RATIO;
|
|
|
|
|
|
|
|
/* 1:1 PAR */
|
|
|
|
static const bool aspect_ratio_auto = false;
|
2012-04-15 17:36:09 +02:00
|
|
|
|
2013-03-23 17:21:42 +01:00
|
|
|
#if defined(__CELLOS_LV2) || defined(_XBOX360)
|
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_16_9;
|
2014-10-24 23:43:50 +01:00
|
|
|
#elif defined(PSP)
|
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_CORE;
|
2013-04-20 10:56:04 +02:00
|
|
|
#elif defined(RARCH_CONSOLE)
|
2013-03-23 17:21:42 +01:00
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_4_3;
|
2013-04-20 10:56:04 +02:00
|
|
|
#else
|
2016-01-03 21:20:56 -02:00
|
|
|
static unsigned aspect_ratio_idx = ASPECT_RATIO_CORE;
|
2013-03-23 17:21:42 +01:00
|
|
|
#endif
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Save configuration file on exit. */
|
2013-05-22 15:35:28 +02:00
|
|
|
static bool config_save_on_exit = true;
|
|
|
|
|
2016-08-27 21:48:55 -04:00
|
|
|
static bool show_hidden_files = true;
|
|
|
|
|
2015-07-09 04:05:59 +02:00
|
|
|
static const bool overlay_hide_in_menu = true;
|
|
|
|
|
2016-11-03 10:56:53 +01:00
|
|
|
static const bool display_keyboard_overlay = false;
|
|
|
|
|
2013-11-08 04:36:16 +01:00
|
|
|
#ifdef HAVE_MENU
|
2017-05-19 15:25:14 +02:00
|
|
|
#include "menu/menu_driver.h"
|
2016-07-14 18:19:59 +02:00
|
|
|
|
2013-10-30 13:58:35 +01:00
|
|
|
static bool default_block_config_read = true;
|
2015-02-26 03:12:35 +01:00
|
|
|
|
2016-07-24 11:32:45 +02:00
|
|
|
#ifdef HAVE_XMB
|
2016-02-08 00:34:13 -05:00
|
|
|
static unsigned xmb_scale_factor = 100;
|
|
|
|
static unsigned xmb_alpha_factor = 75;
|
2016-07-14 21:24:33 +02:00
|
|
|
static unsigned xmb_icon_theme = XMB_ICON_THEME_MONOCHROME;
|
2016-07-14 18:19:59 +02:00
|
|
|
static unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE;
|
2016-05-01 17:47:10 +02:00
|
|
|
#ifdef HAVE_LAKKA
|
2016-05-01 04:46:16 +02:00
|
|
|
static bool xmb_shadows_enable = false;
|
2016-05-01 17:47:10 +02:00
|
|
|
#else
|
|
|
|
static bool xmb_shadows_enable = true;
|
|
|
|
#endif
|
2016-08-18 16:42:39 +02:00
|
|
|
static bool xmb_show_settings = true;
|
|
|
|
#ifdef HAVE_IMAGEVIEWER
|
|
|
|
static bool xmb_show_images = true;
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_FFMPEG
|
|
|
|
static bool xmb_show_music = true;
|
|
|
|
static bool xmb_show_video = true;
|
|
|
|
#endif
|
2017-02-27 23:32:24 +01:00
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
static bool xmb_show_netplay = true;
|
|
|
|
#endif
|
2016-08-18 16:42:39 +02:00
|
|
|
static bool xmb_show_history = true;
|
2016-12-24 18:45:15 +01:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
|
|
|
static bool xmb_show_add = true;
|
|
|
|
#endif
|
2016-07-24 11:32:45 +02:00
|
|
|
#endif
|
2016-05-01 04:46:16 +02:00
|
|
|
|
2016-07-10 17:13:19 +02:00
|
|
|
static float menu_wallpaper_opacity = 0.300;
|
|
|
|
|
2016-07-11 17:27:36 +02:00
|
|
|
static float menu_footer_opacity = 1.000;
|
|
|
|
|
2016-07-11 17:41:06 +02:00
|
|
|
static float menu_header_opacity = 1.000;
|
|
|
|
|
2016-09-09 15:56:56 +02:00
|
|
|
#if defined(HAVE_OPENGLES2) || (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
|
2016-05-01 04:40:20 +02:00
|
|
|
static unsigned menu_shader_pipeline = 1;
|
2016-04-24 22:16:54 +02:00
|
|
|
#else
|
2016-05-01 04:40:20 +02:00
|
|
|
static unsigned menu_shader_pipeline = 2;
|
2016-04-24 22:16:54 +02:00
|
|
|
#endif
|
2016-02-08 00:34:13 -05:00
|
|
|
|
2017-02-01 23:01:41 +01:00
|
|
|
static bool show_advanced_settings = false;
|
2015-03-14 19:21:55 -03:00
|
|
|
static const uint32_t menu_entry_normal_color = 0xffffffff;
|
|
|
|
static const uint32_t menu_entry_hover_color = 0xff64ff64;
|
|
|
|
static const uint32_t menu_title_color = 0xff64ff64;
|
2016-09-03 19:01:29 -04:00
|
|
|
|
2013-10-30 13:58:35 +01:00
|
|
|
#else
|
|
|
|
static bool default_block_config_read = false;
|
2013-10-30 12:45:46 +01:00
|
|
|
#endif
|
|
|
|
|
2017-02-19 18:54:35 +00:00
|
|
|
static bool default_game_specific_options = true;
|
2016-01-02 14:07:38 -05:00
|
|
|
static bool default_auto_overrides_enable = true;
|
|
|
|
static bool default_auto_remaps_enable = true;
|
2016-07-30 11:16:03 -05:00
|
|
|
static bool default_auto_shaders_enable = true;
|
2015-04-17 20:07:15 -05:00
|
|
|
|
2015-05-07 18:06:14 -05:00
|
|
|
static bool default_sort_savefiles_enable = false;
|
|
|
|
static bool default_sort_savestates_enable = false;
|
|
|
|
|
2015-07-09 06:35:18 +02:00
|
|
|
#if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360)
|
2016-08-02 16:45:50 +02:00
|
|
|
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L3_R3;
|
2016-08-02 16:48:54 +02:00
|
|
|
#elif defined(VITA)
|
|
|
|
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_L1_R1_START_SELECT;
|
2015-07-09 06:27:17 +02:00
|
|
|
#else
|
2016-08-02 16:45:50 +02:00
|
|
|
static unsigned menu_toggle_gamepad_combo = INPUT_TOGGLE_NONE;
|
2015-07-09 06:27:17 +02:00
|
|
|
#endif
|
|
|
|
|
2016-10-14 21:57:18 +02:00
|
|
|
#if defined(VITA)
|
2016-10-15 13:28:35 +02:00
|
|
|
static unsigned input_backtouch_enable = false;
|
|
|
|
static unsigned input_backtouch_toggle = false;
|
2016-10-14 21:57:18 +02:00
|
|
|
#endif
|
|
|
|
|
2016-09-03 19:01:29 -04:00
|
|
|
static bool all_users_control_menu = false;
|
2016-11-20 13:40:31 +01:00
|
|
|
|
2016-11-20 13:43:56 +01:00
|
|
|
#if defined(ANDROID) || defined(_WIN32)
|
2016-11-20 13:40:31 +01:00
|
|
|
static bool menu_swap_ok_cancel_buttons = true;
|
|
|
|
#else
|
2016-11-19 13:09:07 -05:00
|
|
|
static bool menu_swap_ok_cancel_buttons = false;
|
2016-11-20 13:40:31 +01:00
|
|
|
#endif
|
2016-09-03 19:01:29 -04:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Crop overscanned frames. */
|
2011-11-09 22:18:48 +01:00
|
|
|
static const bool crop_overscan = true;
|
2011-05-05 14:13:12 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Font size for on-screen messages. */
|
2015-07-14 15:46:01 +02:00
|
|
|
#if defined(HAVE_LIBDBGFONT)
|
2013-01-11 21:04:51 +01:00
|
|
|
static const float font_size = 1.0f;
|
|
|
|
#else
|
2014-06-07 21:27:52 +02:00
|
|
|
static const float font_size = 32;
|
2013-01-11 21:04:51 +01:00
|
|
|
#endif
|
2011-01-23 02:48:06 +01:00
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Offset for where messages will be placed on-screen.
|
2014-09-08 17:12:37 +02:00
|
|
|
* Values are in range [0.0, 1.0]. */
|
2011-01-23 13:50:22 +01:00
|
|
|
static const float message_pos_offset_x = 0.05;
|
2015-07-14 15:46:01 +02:00
|
|
|
#if defined(_XBOX1)
|
2014-07-27 03:43:25 +02:00
|
|
|
static const float message_pos_offset_y = 0.90;
|
|
|
|
#else
|
2011-01-23 13:50:22 +01:00
|
|
|
static const float message_pos_offset_y = 0.05;
|
2014-07-27 03:43:25 +02:00
|
|
|
#endif
|
2011-01-23 02:59:44 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Color of the message.
|
|
|
|
* RGB hex value. */
|
|
|
|
static const uint32_t message_color = 0xffff00;
|
|
|
|
|
|
|
|
/* Record post-filtered (CPU filter) video,
|
|
|
|
* rather than raw game output. */
|
2011-08-11 05:25:31 +02:00
|
|
|
static const bool post_filter_record = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Screenshots post-shaded GPU output if available. */
|
2012-08-26 21:18:00 +02:00
|
|
|
static const bool gpu_screenshot = true;
|
|
|
|
|
2016-03-10 17:36:46 -05:00
|
|
|
/* Screenshots named automatically. */
|
|
|
|
static const bool auto_screenshot_filename = true;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Record post-shaded GPU output instead of raw game footage if available. */
|
2012-08-25 22:38:49 +02:00
|
|
|
static const bool gpu_record = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* OSD-messages. */
|
2011-11-10 00:15:41 +01:00
|
|
|
static const bool font_enable = true;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* The accurate refresh rate of your monitor (Hz).
|
|
|
|
* This is used to calculate audio input rate with the formula:
|
2015-08-31 00:55:34 +02:00
|
|
|
* audio_input_rate = game_input_rate * display_refresh_rate /
|
2014-09-08 17:12:37 +02:00
|
|
|
* game_refresh_rate.
|
|
|
|
*
|
|
|
|
* If the implementation does not report any values,
|
|
|
|
* NTSC defaults will be assumed for compatibility.
|
|
|
|
* This value should stay close to 60Hz to avoid large pitch changes.
|
2015-08-31 00:55:34 +02:00
|
|
|
* If your monitor does not run at 60Hz, or something close to it,
|
2014-09-08 17:12:37 +02:00
|
|
|
* disable VSync, and leave this at its default. */
|
2015-09-28 20:09:07 +01:00
|
|
|
#ifdef _3DS
|
|
|
|
static const float refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
|
2011-12-02 15:59:07 +01:00
|
|
|
#else
|
2016-09-15 22:05:40 +02:00
|
|
|
static const float refresh_rate = 60/1.001;
|
2011-12-02 15:59:07 +01:00
|
|
|
#endif
|
2011-11-18 15:14:56 +01:00
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Allow games to set rotation. If false, rotation requests are
|
2014-09-08 17:12:37 +02:00
|
|
|
* honored, but ignored.
|
|
|
|
* Used for setups where one manually rotates the monitor. */
|
2012-04-01 16:12:04 +02:00
|
|
|
static const bool allow_rotate = true;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* AUDIO */
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Will enable audio or not. */
|
2011-12-13 23:17:37 +01:00
|
|
|
static const bool audio_enable = true;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Output samplerate. */
|
2015-09-07 00:05:59 +02:00
|
|
|
#ifdef GEKKO
|
|
|
|
static const unsigned out_rate = 32000;
|
2015-09-28 20:09:07 +01:00
|
|
|
#elif defined(_3DS)
|
|
|
|
static const unsigned out_rate = 32730;
|
2015-09-07 00:05:59 +02:00
|
|
|
#else
|
2013-07-17 17:38:16 +02:00
|
|
|
static const unsigned out_rate = 48000;
|
2015-09-07 00:05:59 +02:00
|
|
|
#endif
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Audio device (e.g. hw:0,0 or /dev/audio). If NULL, will use defaults. */
|
2011-11-02 19:31:36 +01:00
|
|
|
static const char *audio_device = NULL;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Desired audio latency in milliseconds. Might not be honored
|
2014-09-08 17:12:37 +02:00
|
|
|
* if driver can't provide given latency. */
|
2016-09-06 07:41:35 +02:00
|
|
|
#if defined(ANDROID) || defined(EMSCRIPTEN)
|
2016-01-22 05:00:22 +01:00
|
|
|
/* For most Android devices, 64ms is way too low. */
|
|
|
|
static const int out_latency = 128;
|
|
|
|
#else
|
2010-12-22 15:58:43 +01:00
|
|
|
static const int out_latency = 64;
|
2016-01-22 05:00:22 +01:00
|
|
|
#endif
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Will sync audio. (recommended) */
|
2010-12-22 15:58:43 +01:00
|
|
|
static const bool audio_sync = true;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Audio rate control. */
|
2015-07-16 09:35:04 +02:00
|
|
|
#if !defined(RARCH_CONSOLE)
|
2012-08-06 15:24:17 -04:00
|
|
|
static const bool rate_control = true;
|
|
|
|
#else
|
2012-02-14 01:16:37 +01:00
|
|
|
static const bool rate_control = false;
|
2012-08-06 15:24:17 -04:00
|
|
|
#endif
|
2012-02-14 01:16:37 +01:00
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Rate control delta. Defines how much rate_control
|
2014-09-08 17:12:37 +02:00
|
|
|
* is allowed to adjust input rate. */
|
2012-02-14 01:16:37 +01:00
|
|
|
static const float rate_control_delta = 0.005;
|
|
|
|
|
2014-11-16 14:24:58 +00:00
|
|
|
/* Maximum timing skew. Defines how much adjust_system_rates
|
|
|
|
* is allowed to adjust input rate. */
|
|
|
|
static const float max_timing_skew = 0.05;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Default audio volume in dB. (0.0 dB == unity gain). */
|
2012-11-03 14:15:03 +01:00
|
|
|
static const float audio_volume = 0.0;
|
|
|
|
|
2017-04-28 21:40:24 -05:00
|
|
|
#ifdef HAVE_WASAPI
|
|
|
|
/* WASAPI defaults */
|
|
|
|
static const bool wasapi_exclusive_mode = true;
|
|
|
|
static const bool wasapi_float_format = false;
|
|
|
|
static const unsigned wasapi_sh_buffer_length = 0;
|
|
|
|
#endif
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* MISC */
|
2012-02-14 01:16:37 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Enables displaying the current frames per second. */
|
2014-07-11 20:33:23 -04:00
|
|
|
static const bool fps_show = false;
|
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Enables use of rewind. This will incur some memory footprint
|
2014-09-08 17:12:37 +02:00
|
|
|
* depending on the save state buffer. */
|
2011-01-31 18:06:57 +01:00
|
|
|
static const bool rewind_enable = false;
|
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* The buffer size for the rewind buffer. This needs to be about
|
2014-09-08 17:12:37 +02:00
|
|
|
* 15-20MB per minute. Very game dependant. */
|
|
|
|
static const unsigned rewind_buffer_size = 20 << 20; /* 20MiB */
|
2011-01-31 18:06:57 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* How many frames to rewind at a time. */
|
2011-02-01 17:30:18 +01:00
|
|
|
static const unsigned rewind_granularity = 1;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Pause gameplay when gameplay loses focus. */
|
2016-09-09 06:06:12 +02:00
|
|
|
#ifdef EMSCRIPTEN
|
|
|
|
static const bool pause_nonactive = false;
|
|
|
|
#else
|
2015-10-19 03:44:57 +02:00
|
|
|
static const bool pause_nonactive = true;
|
2016-09-09 06:06:12 +02:00
|
|
|
#endif
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Saves non-volatile SRAM at a regular interval.
|
|
|
|
* It is measured in seconds. A value of 0 disables autosave. */
|
2011-02-10 21:16:59 +01:00
|
|
|
static const unsigned autosave_interval = 0;
|
|
|
|
|
2017-02-06 13:45:58 -05:00
|
|
|
/* Publicly announce netplay */
|
|
|
|
static const bool netplay_public_announce = true;
|
|
|
|
|
2017-02-16 19:17:06 -05:00
|
|
|
/* Start netplay in spectator mode */
|
|
|
|
static const bool netplay_start_as_spectator = false;
|
|
|
|
|
2017-02-23 21:33:44 -05:00
|
|
|
/* Allow connections in slave mode */
|
|
|
|
static const bool netplay_allow_slaves = true;
|
|
|
|
|
|
|
|
/* Require connections only in slave mode */
|
|
|
|
static const bool netplay_require_slaves = false;
|
|
|
|
|
2016-12-15 23:09:55 -05:00
|
|
|
/* Netplay without savestates/rewind */
|
|
|
|
static const bool netplay_stateless_mode = false;
|
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* When being client over netplay, use keybinds for
|
2014-12-05 14:21:04 +01:00
|
|
|
* user 1 rather than user 2. */
|
2011-06-22 21:56:04 +02:00
|
|
|
static const bool netplay_client_swap_input = true;
|
2011-02-20 12:12:53 +01:00
|
|
|
|
2016-12-13 22:03:10 -05:00
|
|
|
static const bool netplay_nat_traversal = false;
|
|
|
|
|
2016-12-07 03:08:46 +01:00
|
|
|
static const unsigned netplay_delay_frames = 16;
|
|
|
|
|
2016-12-19 14:54:13 -05:00
|
|
|
static const int netplay_check_frames = 30;
|
2016-12-07 03:08:46 +01:00
|
|
|
|
2017-03-04 15:23:59 -05:00
|
|
|
static const bool netplay_use_mitm_server = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* On save state load, block SRAM from being overwritten.
|
|
|
|
* This could potentially lead to buggy games. */
|
2011-09-16 15:32:21 +02:00
|
|
|
static const bool block_sram_overwrite = false;
|
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* When saving savestates, state index is automatically
|
2014-09-08 17:12:37 +02:00
|
|
|
* incremented before saving.
|
2015-08-31 00:55:34 +02:00
|
|
|
* When the content is loaded, state index will be set
|
2014-09-08 17:12:37 +02:00
|
|
|
* to the highest existing value. */
|
2011-09-27 15:31:25 +02:00
|
|
|
static const bool savestate_auto_index = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Automatically saves a savestate at the end of RetroArch's lifetime.
|
|
|
|
* The path is $SRAM_PATH.auto.
|
2015-08-31 00:55:34 +02:00
|
|
|
* RetroArch will automatically load any savestate with this path on
|
2014-09-08 17:12:37 +02:00
|
|
|
* startup if savestate_auto_load is set. */
|
2012-06-02 21:33:37 +02:00
|
|
|
static const bool savestate_auto_save = false;
|
2014-09-18 08:39:06 +02:00
|
|
|
static const bool savestate_auto_load = false;
|
2012-06-02 21:33:37 +02:00
|
|
|
|
2016-11-29 14:57:30 +01:00
|
|
|
static const bool savestate_thumbnail_enable = false;
|
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Slowmotion ratio. */
|
2012-03-04 12:01:07 +01:00
|
|
|
static const float slowmotion_ratio = 3.0;
|
|
|
|
|
2014-10-03 18:05:46 +02:00
|
|
|
/* Maximum fast forward ratio. */
|
2015-08-27 14:39:42 +02:00
|
|
|
static const float fastforward_ratio = 0.0;
|
2013-08-07 22:24:12 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Enable stdin/network command interface. */
|
2012-05-27 14:12:29 +02:00
|
|
|
static const bool network_cmd_enable = false;
|
|
|
|
static const uint16_t network_cmd_port = 55355;
|
2012-07-24 02:47:28 +02:00
|
|
|
static const bool stdin_cmd_enable = false;
|
2012-05-27 14:12:29 +02:00
|
|
|
|
2015-11-27 00:11:52 -05:00
|
|
|
static const uint16_t network_remote_base_port = 55400;
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Number of entries that will be kept in content history playlist file. */
|
2014-08-12 04:57:31 +02:00
|
|
|
static const unsigned default_content_history_size = 100;
|
2013-06-09 21:59:48 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Show Menu start-up screen on boot. */
|
2016-01-11 13:26:41 +01:00
|
|
|
static const bool default_menu_show_start_screen = true;
|
2013-10-05 11:11:43 +02:00
|
|
|
|
2015-07-04 19:16:17 +02:00
|
|
|
#ifdef RARCH_MOBILE
|
2015-04-24 16:37:09 +02:00
|
|
|
static const bool menu_dpi_override_enable = false;
|
2015-07-04 19:16:17 +02:00
|
|
|
#else
|
|
|
|
static const bool menu_dpi_override_enable = true;
|
|
|
|
#endif
|
2015-04-24 16:37:09 +02:00
|
|
|
|
2015-07-04 19:16:17 +02:00
|
|
|
#ifdef RARCH_MOBILE
|
2015-04-24 16:37:09 +02:00
|
|
|
static const unsigned menu_dpi_override_value = 72;
|
2016-07-31 20:32:40 +02:00
|
|
|
#elif defined(__CELLOS_LV2__)
|
2016-10-16 14:42:40 +02:00
|
|
|
static const unsigned menu_dpi_override_value = 360;
|
2016-07-31 20:32:40 +02:00
|
|
|
#else
|
|
|
|
static const unsigned menu_dpi_override_value = 200;
|
2015-07-04 19:16:17 +02:00
|
|
|
#endif
|
2015-04-24 16:37:09 +02:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Log level for libretro cores (GET_LOG_INTERFACE). */
|
2017-03-25 10:36:24 +01:00
|
|
|
static const unsigned libretro_log_level = 1;
|
2014-03-01 12:02:48 +01:00
|
|
|
|
2014-08-24 19:00:36 +02:00
|
|
|
#ifndef RARCH_DEFAULT_PORT
|
|
|
|
#define RARCH_DEFAULT_PORT 55435
|
|
|
|
#endif
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* KEYBINDS, JOYPAD */
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Axis threshold (between 0.0 and 1.0)
|
|
|
|
* How far an axis must be tilted to result in a button press. */
|
2011-09-06 19:53:22 +02:00
|
|
|
static const float axis_threshold = 0.5;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Describes speed of which turbo-enabled buttons toggle. */
|
2012-10-01 22:15:48 +02:00
|
|
|
static const unsigned turbo_period = 6;
|
|
|
|
static const unsigned turbo_duty_cycle = 3;
|
2010-12-22 15:58:43 +01:00
|
|
|
|
2014-09-08 17:12:37 +02:00
|
|
|
/* Enable input auto-detection. Will attempt to autoconfigure
|
|
|
|
* gamepads, plug-and-play style. */
|
2013-01-05 20:06:59 +01:00
|
|
|
static const bool input_autodetect_enable = true;
|
|
|
|
|
2015-08-31 00:55:34 +02:00
|
|
|
/* Show the input descriptors set by the core instead
|
2014-12-04 13:26:27 +01:00
|
|
|
* of the default ones. */
|
|
|
|
static const bool input_descriptor_label_show = true;
|
|
|
|
|
2014-12-05 14:13:29 +01:00
|
|
|
static const bool input_descriptor_hide_unbound = false;
|
|
|
|
|
2015-07-09 00:10:44 +02:00
|
|
|
static const unsigned input_max_users = 5;
|
2015-06-25 18:43:01 +02:00
|
|
|
|
2016-01-28 06:51:18 +01:00
|
|
|
static const unsigned input_poll_type_behavior = 2;
|
2016-01-27 01:51:09 +01:00
|
|
|
|
2016-06-26 08:22:40 +02:00
|
|
|
static const unsigned input_bind_timeout = 5;
|
|
|
|
|
2016-05-01 16:56:15 +02:00
|
|
|
static const unsigned menu_thumbnails_default = 3;
|
2016-05-01 16:49:13 +02:00
|
|
|
|
2015-11-16 05:52:55 +01:00
|
|
|
#ifdef IOS
|
|
|
|
static const bool ui_companion_start_on_boot = false;
|
|
|
|
#else
|
|
|
|
static const bool ui_companion_start_on_boot = true;
|
|
|
|
#endif
|
|
|
|
|
2016-01-18 21:35:09 +01:00
|
|
|
static const bool ui_companion_enable = false;
|
|
|
|
|
2015-01-21 06:28:40 +01:00
|
|
|
#if defined(ANDROID)
|
|
|
|
#if defined(ANDROID_ARM)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
|
|
|
|
#elif defined(ANDROID_X86)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/android/latest/x86/";
|
2015-01-21 06:51:45 +01:00
|
|
|
#else
|
|
|
|
static char buildbot_server_url[] = "";
|
2015-01-21 06:28:40 +01:00
|
|
|
#endif
|
2017-01-07 21:25:12 +00:00
|
|
|
#elif defined(__QNX__)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/blackberry/latest/";
|
2015-01-21 06:28:40 +01:00
|
|
|
#elif defined(IOS)
|
2015-10-20 12:52:40 -05:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/ios/latest/";
|
2015-02-17 06:35:51 +01:00
|
|
|
#elif defined(OSX)
|
|
|
|
#if defined(__x86_64__)
|
2015-10-19 18:24:46 -05:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/";
|
2015-02-17 06:35:51 +01:00
|
|
|
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
|
2015-10-19 18:24:46 -05:00
|
|
|
static char buildbot_server_url[] = "http://bot.libretro.com/nightly/apple/osx/x86/latest/";
|
2015-02-22 23:45:46 +01:00
|
|
|
#else
|
2015-10-20 12:52:40 -05:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/";
|
2015-02-17 06:35:51 +01:00
|
|
|
#endif
|
2015-01-21 06:28:40 +01:00
|
|
|
#elif defined(_WIN32) && !defined(_XBOX)
|
|
|
|
#if defined(__x86_64__)
|
2015-01-21 06:29:36 +01:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86_64/latest/";
|
2006-05-18 13:17:58 +02:00
|
|
|
#elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
|
2015-01-21 06:29:36 +01:00
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/win-x86/latest/";
|
2015-01-21 06:28:40 +01:00
|
|
|
#endif
|
2015-03-06 02:47:00 +01:00
|
|
|
#elif defined(__linux__)
|
|
|
|
#if defined(__x86_64__)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86_64/latest/";
|
2015-10-20 12:52:40 -05:00
|
|
|
#elif defined(__i386__) || defined(__i486__) || defined(__i686__)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/linux/x86/latest/";
|
2015-03-06 02:47:00 +01:00
|
|
|
#else
|
|
|
|
static char buildbot_server_url[] = "";
|
|
|
|
#endif
|
2017-05-23 10:24:23 +01:00
|
|
|
#elif defined(WIIU)
|
|
|
|
static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/";
|
2015-01-21 06:28:40 +01:00
|
|
|
#else
|
|
|
|
static char buildbot_server_url[] = "";
|
|
|
|
#endif
|
|
|
|
|
2015-02-01 17:13:15 +01:00
|
|
|
static char buildbot_assets_server_url[] = "http://buildbot.libretro.com/assets/";
|
|
|
|
|
2013-04-14 14:23:54 +02:00
|
|
|
#endif
|