2012-04-21 21:13:50 +00:00
/* RetroArch - A frontend for libretro.
2014-01-01 00:50:59 +00:00
* Copyright ( C ) 2010 - 2014 - Hans - Kristian Arntzen
2016-01-10 03:06:50 +00:00
* Copyright ( C ) 2011 - 2016 - Daniel De Matteis
2019-01-09 22:19:19 +00:00
* Copyright ( C ) 2016 - 2019 - Brad Parker
2015-08-30 22:55:34 +00:00
*
2012-04-21 21:13:50 +00:00
* RetroArch is free software : you can redistribute it and / or modify it under the terms
2010-12-22 14:58:43 +00: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 21:13:50 +00:00
* RetroArch is distributed in the hope that it will be useful , but WITHOUT ANY WARRANTY ;
2010-12-22 14:58:43 +00: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 21:31:57 +00:00
* You should have received a copy of the GNU General Public License along with RetroArch .
2010-12-22 14:58:43 +00:00
* If not , see < http : //www.gnu.org/licenses/>.
*/
2011-01-05 19:09:12 +00:00
# ifndef __CONFIG_DEF_H
# define __CONFIG_DEF_H
2010-12-22 14:58:43 +00:00
2014-10-21 03:05:52 +00:00
# include <boolean.h>
2017-12-31 20:25:07 +00:00
# include <audio/audio_resampler.h>
2018-09-16 23:30:49 +00:00
# include "configuration.h"
2016-10-25 18:18:31 +00:00
# include "gfx/video_defines.h"
2017-06-21 05:01:07 +00:00
# include "input/input_driver.h"
2011-01-07 16:59:53 +00:00
# ifdef HAVE_CONFIG_H
2011-01-06 22:15:49 +00:00
# include "config.h"
2011-01-07 16:59:53 +00:00
# endif
2017-09-11 02:49:25 +00:00
# ifdef HAVE_NETWORKING
# include "network/netplay/netplay.h"
# endif
2019-04-15 16:05:55 +00:00
/* Required for 3DS display mode setting */
# if defined(_3DS)
# include "gfx/common/ctr_common.h"
# endif
2021-04-06 13:02:40 +00:00
/* Required for OpenDingux IPU filter + refresh
* rate settings */
2020-10-05 13:31:26 +00:00
# if defined(DINGUX)
# include "dingux/dingux_utils.h"
# endif
2021-04-13 12:58:42 +00:00
/* Required for menu screensaver animation */
# if defined(HAVE_MATERIALUI) || defined(HAVE_XMB) || defined(HAVE_OZONE)
# include "menu/menu_screensaver.h"
# endif
2021-05-26 17:15:23 +00:00
/* Required for 'show inputs on overlay' setting */
# if defined(HAVE_OVERLAY)
# include "../input/input_overlay.h"
# endif
2022-04-02 07:07:40 +00:00
/* Required for Steam enum settings */
# if defined(HAVE_MIST)
# include "steam/steam.h"
# endif
2016-06-05 16:57:29 +00:00
# if defined(HW_RVL)
2016-06-05 16:03:39 +00:00
# define MAX_GAMMA_SETTING 30
2016-06-05 16:57:29 +00:00
# elif defined(GEKKO)
# define MAX_GAMMA_SETTING 2
2015-11-21 15:32:22 +00:00
# else
# define MAX_GAMMA_SETTING 1
# endif
2021-03-03 11:02:32 +00:00
# if defined(XENON) || defined(_XBOX360) || defined(__PSL1GHT__) || defined(__PS3__)
2013-01-11 07:38:02 +00:00
# define DEFAULT_ASPECT_RATIO 1.7778f
2017-01-07 21:25:12 +00:00
# elif defined(_XBOX1) || defined(GEKKO) || defined(ANDROID)
2013-01-11 07:38:02 +00:00
# define DEFAULT_ASPECT_RATIO 1.3333f
# else
2021-08-23 15:13:46 +00:00
# define DEFAULT_ASPECT_RATIO 1.3333f
2013-01-11 07:38:02 +00:00
# endif
2019-09-14 22:46:02 +00:00
# if defined(GEKKO)
# define DEFAULT_MOUSE_SCALE 1
# endif
2021-04-06 11:15:43 +00:00
# define DEFAULT_TOUCH_SCALE 1
2021-08-18 15:41:53 +00:00
# if defined(RARCH_MOBILE) || defined(HAVE_LIBNX) || defined(__WINRT__) || defined(EMSCRIPTEN)
2019-05-31 13:59:49 +00:00
# define DEFAULT_POINTER_ENABLE true
2015-03-30 21:56:39 +00:00
# else
2019-05-31 13:59:49 +00:00
# define DEFAULT_POINTER_ENABLE false
2015-03-30 21:56:39 +00:00
# endif
2015-07-08 14:45:04 +00: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 ) */
2021-03-12 09:33:21 +00:00
# if defined(ANDROID) || defined(__APPLE__)
2019-05-31 13:59:49 +00:00
# define DEFAULT_BUNDLE_ASSETS_EXTRACT_ENABLE true
2015-07-08 14:45:04 +00:00
# else
2019-05-31 13:59:49 +00:00
# define DEFAULT_BUNDLE_ASSETS_EXTRACT_ENABLE false
2015-07-08 14:45:04 +00:00
# endif
2017-08-17 19:05:38 +00:00
# ifdef HAVE_MATERIALUI
2019-10-23 14:34:17 +00:00
/* Show icons to the left of each menu entry */
2019-06-02 15:18:52 +00:00
# define DEFAULT_MATERIALUI_ICONS_ENABLE true
2020-08-06 16:24:28 +00:00
/* Show system-specific icons in the playlists tab */
# define DEFAULT_MATERIALUI_PLAYLIST_ICONS_ENABLE true
2017-08-17 19:05:38 +00:00
# endif
2019-10-23 14:34:17 +00:00
/* Material UI colour theme */
# define DEFAULT_MATERIALUI_THEME MATERIALUI_THEME_OZONE_DARK
/* Type of animation to use when performing menu transitions
* > ' Auto ' follows Material UI standards :
* - Slide when switching between parent menus ( tabs )
* - Fade when changing levels in a menu
* Note : Not wrapping this with a HAVE_MATERIALUI ifdef
* because there ' s too much baggage involved . . . */
# define DEFAULT_MATERIALUI_TRANSITION_ANIM MATERIALUI_TRANSITION_ANIM_AUTO
/* Adjust menu padding etc. to better fit the
* screen when using landscape layouts */
# if defined(RARCH_MOBILE)
2019-11-08 16:25:36 +00:00
# define DEFAULT_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_DISABLED
2019-10-23 14:34:17 +00:00
# else
2019-11-08 16:25:36 +00:00
# define DEFAULT_MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION MATERIALUI_LANDSCAPE_LAYOUT_OPTIMIZATION_ALWAYS
2019-10-23 14:34:17 +00:00
# endif
2020-03-02 16:13:53 +00:00
/* Show/hide navigation bar
* > When hidden , MaterialUI menu navigation
* behaves like RGUI */
# define DEFAULT_MATERIALUI_SHOW_NAV_BAR true
2019-10-25 16:28:36 +00:00
/* Reposition navigation bar to make better use
* of screen space when using landscape layouts */
# define DEFAULT_MATERIALUI_AUTO_ROTATE_NAV_BAR true
2019-10-31 17:24:24 +00:00
/* Default portrait/landscape playlist view modes
* ( when thumbnails are enabled ) */
2019-11-01 11:11:54 +00:00
# define DEFAULT_MATERIALUI_THUMBNAIL_VIEW_PORTRAIT MATERIALUI_THUMBNAIL_VIEW_PORTRAIT_LIST_SMALL
# define DEFAULT_MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE MATERIALUI_THUMBNAIL_VIEW_LANDSCAPE_LIST_MEDIUM
2019-10-31 17:24:24 +00:00
2019-11-08 16:25:36 +00:00
/* Enable second thumbnail when using 'list view'
* thumbnail views
* Note : Second thumbnail will only be drawn if
* display has sufficient horizontal real estate */
# if defined(RARCH_MOBILE)
# define DEFAULT_MATERIALUI_DUAL_THUMBNAIL_LIST_VIEW_ENABLE false
# else
# define DEFAULT_MATERIALUI_DUAL_THUMBNAIL_LIST_VIEW_ENABLE true
# endif
2019-11-11 16:11:32 +00:00
/* Draw solid colour 4:3 background when rendering
* thumbnails
* > Helps to unify menu appearance when viewing
* thumbnails of different sizes */
# define DEFAULT_MATERIALUI_THUMBNAIL_BACKGROUND_ENABLE true
2020-11-23 20:29:26 +00:00
# define DEFAULT_SCREEN_BRIGHTNESS 100
2019-06-14 09:13:02 +00:00
# define DEFAULT_CRT_SWITCH_RESOLUTION CRT_SWITCH_NONE
2018-03-26 14:03:46 +00:00
2019-06-14 09:13:02 +00:00
# define DEFAULT_CRT_SWITCH_RESOLUTION_SUPER 2560
2018-03-26 14:03:46 +00:00
2019-06-14 09:13:02 +00:00
# define DEFAULT_CRT_SWITCH_CENTER_ADJUST 0
2020-07-28 13:25:38 +00:00
# define DEFAULT_CRT_SWITCH_PORCH_ADJUST 0
2021-05-11 09:08:15 +00:00
# define DEFAULT_CRT_SWITCH_HIRES_MENU true
2019-06-14 09:13:02 +00:00
# define DEFAULT_HISTORY_LIST_ENABLE true
# define DEFAULT_PLAYLIST_ENTRY_RENAME true
2020-12-09 19:10:22 +00:00
# define DEFAULT_WIFI_ENABLE true
2019-12-04 07:57:10 +00:00
# define DEFAULT_ACCESSIBILITY_ENABLE false
# define DEFAULT_ACCESSIBILITY_NARRATOR_SPEECH_SPEED 5
2019-10-18 21:03:29 +00:00
# define DEFAULT_DRIVER_SWITCH_ENABLE true
2019-06-14 09:13:02 +00:00
# define DEFAULT_USER_LANGUAGE 0
2014-10-17 02:17:28 +00:00
2021-12-14 13:07:42 +00:00
# define DEFAULT_GAMEMODE_ENABLE true
2018-01-14 02:51:30 +00:00
# if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS)) || defined(EMSCRIPTEN)
2019-06-02 15:18:52 +00:00
# define DEFAULT_MOUSE_ENABLE true
2015-11-01 15:38:04 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_MOUSE_ENABLE false
2015-11-01 15:38:04 +00:00
# endif
2016-07-25 05:33:41 +00:00
# ifdef HAVE_CHEEVOS
2019-06-02 15:18:52 +00:00
# define DEFAULT_CHEEVOS_ENABLE false
2016-07-25 05:33:41 +00:00
# endif
2014-09-08 15:12:37 +00:00
/* VIDEO */
2010-12-22 14:58:43 +00:00
2013-01-11 21:46:14 +00:00
# if defined(_XBOX360)
# define DEFAULT_GAMMA 1
# else
# define DEFAULT_GAMMA 0
# endif
2014-09-08 15:12:37 +00:00
/* Windowed
* Real x resolution = aspect * base_size * x scale
* Real y resolution = base_size * y scale
*/
2022-09-05 02:03:04 +00:00
# define DEFAULT_SCALE 3
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Fullscreen */
/* To start in Fullscreen, or not. */
2019-11-18 07:04:29 +00:00
2021-07-08 18:50:54 +00:00
# if defined(HAVE_STEAM) || defined(DINGUX) || defined(__WINRT__) || defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
/* Start in fullscreen mode for Steam and Dingux
* WinRT and Winapi Family builds */
2019-11-18 07:04:29 +00:00
# define DEFAULT_FULLSCREEN true
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_FULLSCREEN false
2019-11-18 07:04:29 +00:00
# endif
2014-09-08 15:12:37 +00:00
/* To use windowed mode or not when going fullscreen. */
2021-07-08 18:50:54 +00:00
# if defined(__WINRT__) || defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
/* Do not use windowed mode for WinRT and Winapi Family builds on the Xbox UWP with fixed resolution shrinks the image into the left top corner of the screen with some libretro cores */
# define DEFAULT_WINDOWED_FULLSCREEN false
# else
# define DEFAULT_WINDOWED_FULLSCREEN true
# endif
2014-09-08 15:12:37 +00:00
2022-05-16 15:50:11 +00:00
/* Enable automatic switching of the screen refresh rate when using the specified screen mode(s),
* based on running core / content */
# define DEFAULT_AUTOSWITCH_REFRESH_RATE AUTOSWITCH_REFRESH_RATE_EXCLUSIVE_FULLSCREEN
2014-09-08 15:12:37 +00:00
/* Which monitor to prefer. 0 is any monitor, 1 and up selects
* specific monitors , 1 being the first monitor . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_MONITOR_INDEX 0
2014-09-08 15:12:37 +00:00
2016-11-24 00:43:50 +00:00
/* Window */
2021-08-16 16:48:09 +00:00
/* DEFAULT_WINDOW_DECORATIONS:
Whether to show the usual window decorations like border , titlebar etc . */
# ifdef WEBOS
# define DEFAULT_WINDOW_DECORATIONS false
# else
# define DEFAULT_WINDOW_DECORATIONS true
# endif
/* Amount of transparency to use for the main window.
* 1 is the most transparent while 100 is opaque . */
# define DEFAULT_WINDOW_OPACITY 100
/* DEFAULT_WINDOW_SAVE_POSITIONS:
* Whether to remember window positions
* NOTE : Only enabled for desktop Windows
* at present . */
# define DEFAULT_WINDOW_SAVE_POSITIONS false
/* Whether to use custom (fixed size)
* window dimensions in windowed mode . */
# ifdef WEBOS
# define DEFAULT_WINDOW_CUSTOM_SIZE_ENABLE true
# else
# define DEFAULT_WINDOW_CUSTOM_SIZE_ENABLE false
# endif
/* Window dimensions when using a fixed size
* window . A value of 0 disables fixed size
* windows , using nominal dimensions of
* window scale multiplied by the core
* framebuffer size . */
2021-08-11 18:04:11 +00:00
# if defined(WEBOS)
2021-08-16 16:48:09 +00:00
# define DEFAULT_WINDOW_WIDTH 1920
2021-08-11 18:04:11 +00:00
# define DEFAULT_WINDOW_HEIGHT 1080
# else
2021-08-16 16:48:09 +00:00
# define DEFAULT_WINDOW_WIDTH 1280
2019-06-02 15:18:52 +00:00
# define DEFAULT_WINDOW_HEIGHT 720
2021-08-11 18:04:11 +00:00
# endif
2016-11-24 00:43:50 +00:00
2021-08-16 16:48:09 +00:00
/* Maximum auto-set window dimensions
* when not using a fixed size window */
# define DEFAULT_WINDOW_AUTO_WIDTH_MAX 1920
# define DEFAULT_WINDOW_AUTO_HEIGHT_MAX 1080
2014-09-08 15:12:37 +00:00
/* Fullscreen resolution. A value of 0 uses the desktop
* resolution . */
2020-10-01 14:54:11 +00:00
# if defined(DINGUX)
# define DEFAULT_FULLSCREEN_X 320
# define DEFAULT_FULLSCREEN_Y 240
2021-07-08 18:50:54 +00:00
# elif defined(__WINRT__) || defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
# define DEFAULT_FULLSCREEN_X 1920
# define DEFAULT_FULLSCREEN_Y 1080
2020-10-01 14:54:11 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_FULLSCREEN_X 0
# define DEFAULT_FULLSCREEN_Y 0
2020-10-01 14:54:11 +00:00
# endif
2010-12-22 14:58:43 +00:00
2021-08-11 17:13:40 +00:00
# if defined(HAVE_WINDOW_OFFSET)
/* Screen offsets to center content in CTRs */
# define DEFAULT_WINDOW_OFFSET_X 0
# define DEFAULT_WINDOW_OFFSET_Y 0
# endif
2018-11-25 20:41:26 +00:00
/* Number of threads to use for video recording */
2019-06-02 15:18:52 +00:00
# define DEFAULT_VIDEO_RECORD_THREADS 2
2018-11-25 20:41:26 +00:00
2014-04-14 04:07:17 +00:00
# if defined(RARCH_CONSOLE) || defined(__APPLE__)
2019-06-02 19:02:59 +00:00
# define DEFAULT_LOAD_DUMMY_ON_CORE_SHUTDOWN false
2014-04-14 04:07:17 +00:00
# else
2019-06-02 19:02:59 +00:00
# define DEFAULT_LOAD_DUMMY_ON_CORE_SHUTDOWN true
2014-04-14 04:07:17 +00:00
# endif
2019-06-02 19:02:59 +00:00
# define DEFAULT_CHECK_FIRMWARE_BEFORE_LOADING false
2019-06-02 15:18:52 +00:00
2021-08-13 15:16:10 +00:00
/* Specifies whether cores are allowed to
* present core options in category submenus */
# define DEFAULT_CORE_OPTION_CATEGORY_ENABLE true
2021-05-06 10:58:45 +00:00
/* Specifies whether to cache core info
* into a single ( compressed ) file for improved
* load times on platforms with slow IO */
# define DEFAULT_CORE_INFO_CACHE_ENABLE true
2020-07-03 16:00:43 +00:00
/* Specifies whether to 'reload' (fork and quit)
* RetroArch when launching content with the
* currently loaded core
* > Only relevant on platforms without dynamic core
* loading support
* > Setting this to ' false ' will decrease loading
* times when required core is already running ,
* but may cause stability issues ( if core misbehaves ) */
# ifndef HAVE_DYNAMIC
# define DEFAULT_ALWAYS_RELOAD_CORE_ON_RUN_CONTENT true
# endif
2014-09-08 15:12:37 +00:00
/* Forcibly disable composition.
* Only valid on Windows Vista / 7 / 8 for now . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_DISABLE_COMPOSITION false
2011-08-07 13:00:34 +00:00
2014-09-08 15:12:37 +00:00
/* Video VSYNC (recommended) */
2019-06-22 01:30:46 +00:00
# define DEFAULT_VSYNC true
2010-12-22 14:58:43 +00:00
2022-06-06 21:06:23 +00:00
/* Vulkan specific */
2019-06-02 15:18:52 +00:00
# define DEFAULT_MAX_SWAPCHAIN_IMAGES 3
2016-06-21 19:36:58 +00:00
2022-06-06 21:06:23 +00:00
/* D3D1x specific */
2022-06-19 19:25:37 +00:00
# if defined(__WINRT__) || defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
# define DEFAULT_WAITABLE_SWAPCHAINS false
# else
# define DEFAULT_WAITABLE_SWAPCHAINS true
# endif
2022-06-06 21:06:23 +00:00
# define DEFAULT_MAX_FRAME_LATENCY 1
2022-06-19 19:25:37 +00:00
# define MAXIMUM_MAX_FRAME_LATENCY 4
2022-06-06 21:06:23 +00:00
/* GL specific */
2019-06-02 15:18:52 +00:00
# define DEFAULT_ADAPTIVE_VSYNC false
2018-09-23 08:59:09 +00:00
2014-09-08 15:12:37 +00:00
/* Attempts to hard-synchronize CPU and GPU.
* Can reduce latency at cost of performance . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_HARD_SYNC false
2014-09-08 15:12:37 +00:00
/* Configures how many frames the GPU can run ahead of CPU.
* 0 : Syncs to GPU immediately .
* 1 : Syncs to previous frame .
* 2 : Etc . . .
*/
2019-06-02 15:18:52 +00:00
# define DEFAULT_HARD_SYNC_FRAMES 0
2013-05-03 12:04:29 +00:00
2014-09-08 15:12:37 +00:00
/* Sets how many milliseconds to delay after VSync before running the core.
* Can reduce latency at cost of higher risk of stuttering .
*/
2019-06-02 15:18:52 +00:00
# define DEFAULT_FRAME_DELAY 0
2021-06-09 04:32:01 +00:00
# define MAXIMUM_FRAME_DELAY 19
2021-11-05 22:42:23 +00:00
# define DEFAULT_FRAME_DELAY_AUTO false
2014-08-28 18:54:42 +00:00
2020-09-18 15:57:32 +00:00
/* Inserts black frame(s) inbetween frames.
* Useful for Higher Hz monitors ( set to multiples of 60 Hz ) who want to play 60 Hz
* material with eliminated ghosting . video_refresh_rate should still be configured
* as if it is a 60 Hz monitor ( divide refresh rate by multiple of 60 Hz ) .
2014-09-08 15:12:37 +00:00
*/
2020-09-18 15:57:32 +00:00
# define DEFAULT_BLACK_FRAME_INSERTION 0
2013-08-30 07:35:13 +00:00
2014-09-08 15:12:37 +00:00
/* Uses a custom swap interval for VSync.
* Set this to effectively halve monitor refresh rate .
*/
2019-06-02 15:18:52 +00:00
# define DEFAULT_SWAP_INTERVAL 1
2013-09-01 11:20:10 +00:00
2015-08-30 22:55:34 +00:00
/* Threaded video. Will possibly increase performance significantly
2014-09-08 15:12:37 +00:00
* at the cost of worse synchronization and latency .
*/
2019-07-10 10:21:18 +00:00
# if defined(HAVE_LIBNX) || defined(ANDROID)
2019-05-31 13:59:49 +00:00
# define DEFAULT_VIDEO_THREADED true
2018-10-06 15:34:35 +00:00
# else
2019-05-31 13:59:49 +00:00
# define DEFAULT_VIDEO_THREADED false
2018-10-06 15:34:35 +00:00
# endif
2013-02-16 01:21:43 +00:00
2015-07-12 16:23:03 +00:00
# if defined(HAVE_THREADS)
2018-09-18 06:08:06 +00:00
# if defined(GEKKO) || defined(PSP) || defined(PS2)
2019-05-31 13:59:49 +00:00
/* For single-core consoles right now it's best to have this be disabled. */
2019-06-02 16:09:33 +00:00
# define DEFAULT_THREADED_DATA_RUNLOOP_ENABLE false
2015-07-12 16:23:03 +00:00
# else
2019-06-02 16:09:33 +00:00
# define DEFAULT_THREADED_DATA_RUNLOOP_ENABLE true
2015-07-12 16:23:03 +00:00
# endif
2015-04-15 18:11:43 +00:00
# else
2019-06-02 16:09:33 +00:00
# define DEFAULT_THREADED_DATA_RUNLOOP_ENABLE false
2015-04-15 18:11:43 +00:00
# endif
2015-04-12 01:27:20 +00:00
2014-09-08 15:12:37 +00:00
/* Set to true if HW render cores should get their private context. */
2019-06-02 16:09:33 +00:00
# define DEFAULT_VIDEO_SHARED_CONTEXT false
2014-04-19 14:37:39 +00:00
2014-09-08 15:12:37 +00:00
/* Sets GC/Wii screen width. */
2019-06-02 19:02:59 +00:00
# define DEFAULT_VIDEO_VI_WIDTH 640
2014-08-10 20:39:08 +00:00
2016-09-07 11:53:46 +00:00
# ifdef GEKKO
2014-10-04 05:13:08 +00:00
/* Removes 480i flicker, smooths picture a little. */
2019-06-02 19:02:59 +00:00
# define DEFAULT_VIDEO_VFILTER true
2019-06-04 14:50:47 +00:00
/* Allow overscan to be corrected on displays that
* do not have proper ' pixel perfect ' scaling */
# define DEFAULT_VIDEO_OVERSCAN_CORRECTION_TOP 0
# define DEFAULT_VIDEO_OVERSCAN_CORRECTION_BOTTOM 0
2016-09-07 11:53:46 +00:00
# endif
2014-10-04 05:13:08 +00:00
2014-09-08 15:12:37 +00:00
/* Smooths picture. */
2020-10-05 13:31:26 +00:00
# if defined(_3DS) || defined(GEKKO) || defined(HW_RVL) || defined(PSP) || defined(VITA) || defined(SN_TARGET_PSP2) || defined(PS2) || defined(_XBOX) || defined(DINGUX)
2019-06-02 15:18:52 +00:00
# define DEFAULT_VIDEO_SMOOTH true
2019-11-11 18:56:55 +00:00
# else
2019-11-11 18:48:13 +00:00
# define DEFAULT_VIDEO_SMOOTH false
2019-11-11 18:56:55 +00:00
# endif
2010-12-22 14:58:43 +00:00
2020-03-05 04:36:22 +00:00
/* Graphics context specific scaling */
# define DEFAULT_VIDEO_CTX_SCALING false
2014-09-08 15:12:37 +00:00
/* On resize and fullscreen, rendering area will stay 4:3 */
2019-06-02 15:18:52 +00:00
# define DEFAULT_FORCE_ASPECT true
2010-12-22 14:58:43 +00:00
2020-08-27 23:41:30 +00:00
/* Only applies to Android 9.0 (API 28) and up */
/* Choose if the screen will be able to write around the notch or not */
# define DEFAULT_NOTCH_WRITE_OVER_ENABLE false
2014-09-08 15:12:37 +00:00
/* Enable use of shaders. */
2013-04-07 11:08:09 +00:00
# ifdef RARCH_CONSOLE
2019-06-02 16:09:33 +00:00
# define DEFAULT_SHADER_ENABLE true
2013-04-07 11:08:09 +00:00
# else
2019-06-02 16:09:33 +00:00
# define DEFAULT_SHADER_ENABLE false
2013-04-07 11:08:09 +00:00
# endif
2013-04-06 23:38:11 +00:00
2021-09-03 04:15:25 +00:00
/* Should we enable hdr when its supported*/
# define DEFAULT_VIDEO_HDR_ENABLE false
/* The maximum nunmber of nits the actual display can show - needs to be calibrated */
2022-01-08 12:41:34 +00:00
# define DEFAULT_VIDEO_HDR_MAX_NITS 1000.0f
2021-09-03 04:15:25 +00:00
/* The number of nits that paper white is at */
2022-01-08 12:41:34 +00:00
# define DEFAULT_VIDEO_HDR_PAPER_WHITE_NITS 200.0f
2021-09-03 04:15:25 +00:00
2021-09-13 14:54:50 +00:00
/* The contrast setting for hdr used to calculate the display gamma by dividing this value by gamma 2.2 */
# define DEFAULT_VIDEO_HDR_CONTRAST 5.0f
2021-09-03 04:15:25 +00:00
/* Should we expand the colour gamut when using hdr */
# define DEFAULT_VIDEO_HDR_EXPAND_GAMUT true
2020-11-01 14:18:40 +00:00
/* When presets are saved they will be saved using the #reference
* directive by default */
# define DEFAULT_VIDEO_SHADER_PRESET_SAVE_REFERENCE_ENABLE true
2019-08-25 16:56:16 +00:00
# define DEFAULT_SHADER_DELAY 0
2014-09-08 15:12:37 +00: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 .
2021-06-23 21:56:52 +00:00
* Overscale rounds up instead of down , default is downscale .
2014-09-08 15:12:37 +00:00
*/
2019-06-02 16:09:33 +00:00
# define DEFAULT_SCALE_INTEGER false
2021-06-23 21:56:52 +00:00
# define DEFAULT_SCALE_INTEGER_OVERSCALE false
2013-01-29 18:28:33 +00:00
2014-09-08 15:12:37 +00:00
/* Controls aspect ratio handling. */
/* 1:1 PAR */
2019-06-02 15:18:52 +00:00
# define DEFAULT_ASPECT_RATIO_AUTO false
2012-04-15 15:36:09 +00:00
2021-03-03 11:02:32 +00:00
# if defined(_XBOX360) || defined(__PS3__)
2019-06-02 15:18:52 +00:00
# define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_16_9
2019-09-25 18:32:24 +00:00
# elif defined(PSP) || defined(_3DS) || defined(HAVE_LIBNX) || defined(VITA)
2019-06-02 15:18:52 +00:00
# define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_CORE
2013-04-20 08:56:04 +00:00
# elif defined(RARCH_CONSOLE)
2019-06-02 15:18:52 +00:00
# define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_4_3
2013-04-20 08:56:04 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_ASPECT_RATIO_IDX ASPECT_RATIO_CORE
2013-03-23 16:21:42 +00:00
# endif
2020-10-01 14:54:11 +00:00
# if defined(DINGUX)
/* Enables aspect ratio correction (1:1 PAR) when
* using the IPU hardware scaler in Dingux devices */
# define DEFAULT_DINGUX_IPU_KEEP_ASPECT true
2020-10-05 13:31:26 +00:00
/* Sets image filtering method when using the
* IPU hardware scaler in Dingux devices */
2021-07-27 10:39:24 +00:00
# if defined(RETROFW)
# define DEFAULT_DINGUX_IPU_FILTER_TYPE DINGUX_IPU_FILTER_NEAREST
# else
2020-10-05 13:31:26 +00:00
# define DEFAULT_DINGUX_IPU_FILTER_TYPE DINGUX_IPU_FILTER_BICUBIC
2021-07-27 10:39:24 +00:00
# endif
2021-04-06 13:02:40 +00:00
# if defined(DINGUX_BETA)
/* Sets refresh rate of integral LCD panel
* in Dingux devices */
# define DEFAULT_DINGUX_REFRESH_RATE DINGUX_REFRESH_RATE_60HZ
# endif
2021-10-08 11:53:49 +00:00
# if defined(RS90) || defined(MIYOO)
2021-07-21 13:11:42 +00:00
/* Sets image filtering method on the RS90
* when integer scaling is disabled */
# define DEFAULT_DINGUX_RS90_SOFTFILTER_TYPE DINGUX_RS90_SOFTFILTER_POINT
# endif
2020-10-01 14:54:11 +00:00
# endif
2014-09-08 15:12:37 +00:00
/* Save configuration file on exit. */
2019-06-02 19:02:59 +00:00
# define DEFAULT_CONFIG_SAVE_ON_EXIT true
2013-05-22 13:35:28 +00:00
2022-04-27 17:12:53 +00:00
/* Save active input remap file on exit/close content */
# define DEFAULT_REMAP_SAVE_ON_EXIT true
2019-06-02 19:02:59 +00:00
# define DEFAULT_SHOW_HIDDEN_FILES false
2016-08-28 01:48:55 +00:00
2021-02-07 10:45:16 +00:00
/* Initialise file browser with the last used start directory */
# define DEFAULT_USE_LAST_START_DIRECTORY false
2021-12-26 03:56:44 +00:00
# define DEFAULT_OVERLAY_BEHIND_MENU false
2019-06-02 19:02:59 +00:00
# define DEFAULT_OVERLAY_HIDE_IN_MENU true
2020-08-25 10:10:37 +00:00
/* Automatically disable overlays when a
* controller is connected in port 1 */
# define DEFAULT_OVERLAY_HIDE_WHEN_GAMEPAD_CONNECTED false
2019-06-02 21:48:01 +00:00
# define DEFAULT_OVERLAY_SHOW_MOUSE_CURSOR true
2015-07-09 02:05:59 +00:00
2019-06-02 19:02:59 +00:00
# define DEFAULT_DISPLAY_KEYBOARD_OVERLAY false
2016-11-03 09:56:53 +00:00
2018-07-27 17:26:15 +00:00
# ifdef HAKCHI
2019-06-02 19:02:59 +00:00
# define DEFAULT_INPUT_OVERLAY_OPACITY 0.5f
2018-07-27 17:26:15 +00:00
# else
2019-06-02 19:02:59 +00:00
# define DEFAULT_INPUT_OVERLAY_OPACITY 0.7f
2018-07-27 17:26:15 +00:00
# endif
2020-09-08 12:36:45 +00:00
# define DEFAULT_INPUT_OVERLAY_SCALE_LANDSCAPE 1.0f
# define DEFAULT_INPUT_OVERLAY_ASPECT_ADJUST_LANDSCAPE 0.0f
# define DEFAULT_INPUT_OVERLAY_X_SEPARATION_LANDSCAPE 0.0f
# define DEFAULT_INPUT_OVERLAY_Y_SEPARATION_LANDSCAPE 0.0f
# define DEFAULT_INPUT_OVERLAY_X_OFFSET_LANDSCAPE 0.0f
# define DEFAULT_INPUT_OVERLAY_Y_OFFSET_LANDSCAPE 0.0f
# define DEFAULT_INPUT_OVERLAY_SCALE_PORTRAIT 1.0f
# define DEFAULT_INPUT_OVERLAY_ASPECT_ADJUST_PORTRAIT 0.0f
# define DEFAULT_INPUT_OVERLAY_X_SEPARATION_PORTRAIT 0.0f
2020-09-17 16:23:07 +00:00
# define DEFAULT_INPUT_OVERLAY_Y_SEPARATION_PORTRAIT 0.0f
2020-09-08 12:36:45 +00:00
# define DEFAULT_INPUT_OVERLAY_X_OFFSET_PORTRAIT 0.0f
# define DEFAULT_INPUT_OVERLAY_Y_OFFSET_PORTRAIT 0.0f
2019-10-04 11:15:05 +00:00
# if defined(RARCH_MOBILE)
# define DEFAULT_OVERLAY_AUTO_ROTATE true
# else
# define DEFAULT_OVERLAY_AUTO_ROTATE false
# endif
2020-09-17 16:23:07 +00:00
# if defined(RARCH_MOBILE)
# define DEFAULT_INPUT_OVERLAY_AUTO_SCALE true
# else
# define DEFAULT_INPUT_OVERLAY_AUTO_SCALE false
# endif
2020-02-17 02:06:07 +00:00
# include "runtime_file.h"
2013-11-08 03:36:16 +00:00
# ifdef HAVE_MENU
2017-05-19 13:25:14 +00:00
# include "menu/menu_driver.h"
2016-07-14 16:19:59 +00:00
2018-10-27 15:10:53 +00:00
# ifdef HAVE_LIBNX
2019-06-14 09:13:02 +00:00
# define DEFAULT_MENU_USE_PREFERRED_SYSTEM_COLOR_THEME true
2018-10-27 15:10:53 +00:00
# else
2019-06-14 09:13:02 +00:00
# define DEFAULT_MENU_USE_PREFERRED_SYSTEM_COLOR_THEME false
2018-10-27 15:10:53 +00:00
# endif
2019-02-27 14:21:26 +00:00
# ifdef HAVE_OZONE
2020-03-24 12:06:30 +00:00
/* Ozone colour theme: 1 == Basic Black */
# define DEFAULT_OZONE_COLOR_THEME 1
2019-06-14 09:13:02 +00:00
# define DEFAULT_OZONE_COLLAPSE_SIDEBAR false
2019-08-09 16:01:47 +00:00
# define DEFAULT_OZONE_TRUNCATE_PLAYLIST_NAME true
2020-05-25 10:32:17 +00:00
# define DEFAULT_OZONE_SORT_AFTER_TRUNCATE_PLAYLIST_NAME true
2019-09-23 14:33:20 +00:00
# define DEFAULT_OZONE_SCROLL_CONTENT_METADATA false
2022-03-11 14:51:41 +00:00
# define DEFAULT_OZONE_THUMBNAIL_SCALE_FACTOR 1.0f
2019-02-27 14:21:26 +00:00
# endif
2019-08-23 01:06:38 +00:00
# define DEFAULT_SETTINGS_SHOW_DRIVERS true
# define DEFAULT_SETTINGS_SHOW_VIDEO true
# define DEFAULT_SETTINGS_SHOW_AUDIO true
2019-08-20 22:27:40 +00:00
# define DEFAULT_SETTINGS_SHOW_INPUT true
2019-08-23 01:06:38 +00:00
# define DEFAULT_SETTINGS_SHOW_LATENCY true
# define DEFAULT_SETTINGS_SHOW_CORE true
# define DEFAULT_SETTINGS_SHOW_CONFIGURATION true
# define DEFAULT_SETTINGS_SHOW_SAVING true
# define DEFAULT_SETTINGS_SHOW_LOGGING true
2020-10-15 22:54:11 +00:00
# define DEFAULT_SETTINGS_SHOW_FILE_BROWSER true
2019-08-23 01:06:38 +00:00
# define DEFAULT_SETTINGS_SHOW_FRAME_THROTTLE true
# define DEFAULT_SETTINGS_SHOW_RECORDING true
# define DEFAULT_SETTINGS_SHOW_ONSCREEN_DISPLAY true
# define DEFAULT_SETTINGS_SHOW_USER_INTERFACE true
# define DEFAULT_SETTINGS_SHOW_AI_SERVICE true
2020-10-15 22:54:11 +00:00
# define DEFAULT_SETTINGS_SHOW_ACCESSIBILITY true
2019-08-23 01:06:38 +00:00
# define DEFAULT_SETTINGS_SHOW_POWER_MANAGEMENT true
# define DEFAULT_SETTINGS_SHOW_ACHIEVEMENTS true
# define DEFAULT_SETTINGS_SHOW_NETWORK true
# define DEFAULT_SETTINGS_SHOW_PLAYLISTS true
# define DEFAULT_SETTINGS_SHOW_USER true
# define DEFAULT_SETTINGS_SHOW_DIRECTORY true
2022-04-02 07:07:40 +00:00
# define DEFAULT_SETTINGS_SHOW_STEAM true
2019-08-20 16:08:44 +00:00
# define DEFAULT_QUICK_MENU_SHOW_RESUME_CONTENT true
# define DEFAULT_QUICK_MENU_SHOW_RESTART_CONTENT true
# define DEFAULT_QUICK_MENU_SHOW_CLOSE_CONTENT true
2020-02-04 03:21:31 +00:00
# define DEFAULT_QUICK_MENU_SHOW_TAKE_SCREENSHOT true
2022-04-05 22:58:48 +00:00
# define DEFAULT_QUICK_MENU_SHOW_SAVESTATE_SUBMENU false
2020-02-04 03:21:31 +00:00
# define DEFAULT_QUICK_MENU_SHOW_SAVE_LOAD_STATE true
# define DEFAULT_QUICK_MENU_SHOW_UNDO_SAVE_LOAD_STATE true
static const bool quick_menu_show_add_to_favorites = true ;
static const bool quick_menu_show_start_recording = true ;
static const bool quick_menu_show_start_streaming = true ;
static const bool quick_menu_show_set_core_association = true ;
static const bool quick_menu_show_reset_core_association = true ;
static const bool quick_menu_show_options = true ;
2021-08-26 10:41:28 +00:00
# define DEFAULT_QUICK_MENU_SHOW_CORE_OPTIONS_FLUSH false
2020-02-04 03:21:31 +00:00
static const bool quick_menu_show_controls = true ;
static const bool quick_menu_show_cheats = true ;
static const bool quick_menu_show_shaders = true ;
static const bool quick_menu_show_information = true ;
static const bool quick_menu_show_recording = true ;
static const bool quick_menu_show_streaming = true ;
static const bool quick_menu_show_save_core_overrides = true ;
static const bool quick_menu_show_save_game_overrides = true ;
static const bool quick_menu_show_save_content_dir_overrides = true ;
2018-05-13 21:20:51 +00:00
2020-01-11 03:27:38 +00:00
# ifdef HAVE_NETWORKING
2020-02-04 03:21:31 +00:00
static const bool quick_menu_show_download_thumbnails = true ;
2020-01-11 03:27:38 +00:00
# endif
2019-05-16 13:32:25 +00:00
2020-02-04 03:21:31 +00:00
# define DEFAULT_KIOSK_MODE_ENABLE false
2017-10-11 09:30:53 +00:00
2019-10-05 17:11:59 +00:00
# define DEFAULT_MENU_HORIZONTAL_ANIMATION true
2020-02-04 03:21:31 +00:00
static const bool menu_show_online_updater = true ;
static const bool menu_show_load_core = true ;
static const bool menu_show_load_content = true ;
2019-07-21 10:16:16 +00:00
# ifdef HAVE_CDROM
2020-02-04 03:21:31 +00:00
static const bool menu_show_load_disc = true ;
static const bool menu_show_dump_disc = true ;
2021-11-17 20:33:23 +00:00
# ifdef HAVE_LAKKA
static const bool menu_show_eject_disc = true ;
# endif /* HAVE_LAKKA */
2020-02-04 03:21:31 +00:00
# endif
static const bool menu_show_information = true ;
static const bool menu_show_configurations = true ;
static const bool menu_show_help = true ;
static const bool menu_show_quit_retroarch = true ;
static const bool menu_show_restart_retroarch = true ;
static const bool menu_show_reboot = true ;
static const bool menu_show_shutdown = true ;
2020-12-30 18:11:48 +00:00
# if defined(HAVE_LAKKA) || defined(VITA)
2020-02-04 03:21:31 +00:00
static const bool menu_show_core_updater = false ;
2017-06-20 00:47:55 +00:00
# else
2020-02-04 03:21:31 +00:00
static const bool menu_show_core_updater = true ;
2017-06-20 00:47:55 +00:00
# endif
2022-03-09 14:05:07 +00:00
# ifdef HAVE_MIST
static const bool menu_show_core_manager_steam = true ;
# endif
2020-02-04 03:21:31 +00:00
static const bool menu_show_legacy_thumbnail_updater = false ;
2022-10-18 11:39:21 +00:00
# define DEFAULT_MENU_SHOW_SUBLABELS true
# define DEFAULT_MENU_DYNAMIC_WALLPAPER_ENABLE true
# define DEFAULT_MENU_SCROLL_FAST false
2017-06-20 00:22:07 +00:00
2021-03-26 01:06:56 +00:00
# define DEFAULT_MENU_SCROLL_DELAY 256
2020-10-17 17:52:27 +00:00
# define DEFAULT_MENU_TICKER_TYPE (TICKER_TYPE_LOOP)
static const float menu_ticker_speed = 2.0f ;
2019-08-21 16:52:08 +00:00
# define DEFAULT_MENU_TICKER_SMOOTH true
2019-02-14 15:10:07 +00:00
2019-07-05 12:25:13 +00:00
# if defined(HAVE_THREADS)
2022-10-18 11:39:21 +00:00
# define DEFAULT_MENU_SAVESTATE_RESUME true
2019-07-05 12:25:13 +00:00
# else
2022-10-18 11:39:21 +00:00
# define DEFAULT_MENU_SAVESTATE_RESUME false
2019-07-05 12:25:13 +00:00
# endif
2020-01-14 12:28:10 +00:00
# define DEFAULT_MENU_INSERT_DISK_RESUME true
2020-10-20 13:19:54 +00:00
# define DEFAULT_QUIT_ON_CLOSE_CONTENT QUIT_ON_CLOSE_CONTENT_DISABLED
2021-04-01 16:25:45 +00:00
/* While the menu is active, supported drivers
* will display a screensaver after SCREENSAVER_TIMEOUT
* seconds of inactivity . A timeout of zero disables
* the screensaver */
# define DEFAULT_MENU_SCREENSAVER_TIMEOUT 0
2021-04-13 12:58:42 +00:00
# if defined(HAVE_MATERIALUI) || defined(HAVE_XMB) || defined(HAVE_OZONE)
/* When menu screensaver is enabled, specifies
* animation effect and animation speed */
# define DEFAULT_MENU_SCREENSAVER_ANIMATION MENU_SCREENSAVER_BLANK
# define DEFAULT_MENU_SCREENSAVER_ANIMATION_SPEED 1.0f
# endif
2020-02-04 03:21:31 +00:00
static const bool content_show_settings = true ;
static const bool content_show_favorites = true ;
2018-01-01 18:38:16 +00:00
# ifdef HAVE_IMAGEVIEWER
2020-02-04 03:21:31 +00:00
static const bool content_show_images = true ;
2018-01-01 18:38:16 +00:00
# endif
2020-02-04 03:21:31 +00:00
static const bool content_show_music = true ;
2018-06-20 02:50:58 +00:00
# if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
2020-02-04 03:21:31 +00:00
static const bool content_show_video = true ;
2018-01-01 18:38:16 +00:00
# endif
2020-05-08 18:50:15 +00:00
# if defined(HAVE_NETWORKING)
# if defined(_3DS)
static const bool content_show_netplay = false ;
# else
2020-02-04 03:21:31 +00:00
static const bool content_show_netplay = true ;
2018-01-01 18:38:16 +00:00
# endif
2020-05-08 18:50:15 +00:00
# endif
2020-02-04 03:21:31 +00:00
static const bool content_show_history = true ;
2020-08-05 13:21:06 +00:00
/* Specifies 'add content' visibility when using
* menus WITH a dedicated ' Import Content ' tab */
# define DEFAULT_MENU_CONTENT_SHOW_ADD true
/* Specifies 'add content' visibility when using
* menus WITHOUT a dedicated ' Import Content ' tab */
# define DEFAULT_MENU_CONTENT_SHOW_ADD_ENTRY MENU_ADD_CONTENT_ENTRY_DISPLAY_PLAYLISTS_TAB
2020-02-04 03:21:31 +00:00
static const bool content_show_playlists = true ;
2020-07-29 11:59:55 +00:00
# if defined(HAVE_LIBRETRODB)
# define DEFAULT_MENU_CONTENT_SHOW_EXPLORE true
# endif
2022-02-22 18:23:48 +00:00
# define DEFAULT_MENU_CONTENT_SHOW_CONTENTLESS_CORES MENU_CONTENTLESS_CORES_DISPLAY_SINGLE_PURPOSE
2018-01-01 18:38:16 +00:00
2016-07-24 09:32:45 +00:00
# ifdef HAVE_XMB
2022-09-26 10:57:20 +00:00
# define DEFAULT_XMB_ANIMATION 0
# define DEFAULT_XMB_VERTICAL_FADE_FACTOR 100
# define DEFAULT_XMB_SHOW_TITLE_HEADER true
# define DEFAULT_XMB_TITLE_MARGIN 5
# define DEFAULT_XMB_TITLE_MARGIN_HORIZONTAL_OFFSET 0
# define MAXIMUM_XMB_TITLE_MARGIN 12
2020-10-17 17:52:27 +00:00
2020-02-04 03:21:31 +00:00
static const unsigned xmb_alpha_factor = 75 ;
static const unsigned menu_font_color_red = 255 ;
static const unsigned menu_font_color_green = 255 ;
static const unsigned menu_font_color_blue = 255 ;
2020-03-12 01:15:05 +00:00
# ifdef HAVE_ODROIDGO2
static const unsigned xmb_menu_layout = 2 ;
# else
2020-02-04 03:21:31 +00:00
static const unsigned xmb_menu_layout = 0 ;
2020-03-12 01:15:05 +00:00
# endif
2020-02-04 03:21:31 +00:00
static const unsigned xmb_icon_theme = XMB_ICON_THEME_MONOCHROME ;
static const unsigned xmb_theme = XMB_THEME_ELECTRIC_BLUE ;
2019-06-14 09:13:02 +00:00
2018-03-01 16:34:08 +00:00
# if defined(HAVE_LAKKA) || defined(__arm__) || defined(__PPC64__) || defined(__ppc64__) || defined(__powerpc64__) || defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__)
2019-06-14 09:13:02 +00:00
# define DEFAULT_XMB_SHADOWS_ENABLE false
2016-05-01 15:47:10 +00:00
# else
2019-06-14 09:13:02 +00:00
# define DEFAULT_XMB_SHADOWS_ENABLE true
2016-05-01 15:47:10 +00:00
# endif
2016-07-24 09:32:45 +00:00
# endif
2016-05-01 02:46:16 +00:00
2020-02-04 03:21:31 +00:00
static const float menu_framebuffer_opacity = 0.900 ;
2017-08-15 20:17:02 +00:00
2020-02-04 03:21:31 +00:00
static const float menu_wallpaper_opacity = 0.300 ;
2016-07-10 15:13:19 +00:00
2020-02-04 03:21:31 +00:00
static const float menu_footer_opacity = 1.000 ;
2016-07-11 15:27:36 +00:00
2020-02-04 03:21:31 +00:00
static const float menu_header_opacity = 1.000 ;
2016-07-11 15:41:06 +00:00
2022-01-24 15:22:07 +00:00
# if defined(HAVE_OPENGLES2) || (defined(__MACH__) && defined(MAC_OS_X_VERSION_MAX_ALLOWED) && (MAC_OS_X_VERSION_MAX_ALLOWED < 101200))
2019-06-14 09:13:02 +00:00
# define DEFAULT_MENU_SHADER_PIPELINE 1
2016-04-24 20:16:54 +00:00
# else
2019-06-14 09:13:02 +00:00
# define DEFAULT_MENU_SHADER_PIPELINE 2
2016-04-24 20:16:54 +00:00
# endif
2016-02-08 05:34:13 +00:00
2022-08-26 08:06:03 +00:00
# define DEFAULT_SHOW_ADVANCED_SETTINGS true
2019-06-14 09:13:02 +00:00
# define DEFAULT_RGUI_COLOR_THEME RGUI_THEME_CLASSIC_GREEN
2021-04-15 11:31:33 +00:00
# define DEFAULT_RGUI_TRANSPARENCY true
2019-02-25 12:24:59 +00:00
2022-10-18 11:39:21 +00:00
# define DEFAULT_RGUI_INLINE_THUMBNAILS false
# define DEFAULT_RGUI_SWAP_THUMBNAILS false
2020-02-04 03:21:31 +00:00
static const unsigned rgui_thumbnail_downscaler = RGUI_THUMB_SCALE_POINT ;
static const unsigned rgui_thumbnail_delay = 0 ;
static const unsigned rgui_internal_upscale_level = RGUI_UPSCALE_NONE ;
static const bool rgui_full_width_layout = true ;
static const unsigned rgui_aspect = RGUI_ASPECT_RATIO_4_3 ;
static const unsigned rgui_aspect_lock = RGUI_ASPECT_RATIO_LOCK_NONE ;
2022-10-18 10:13:47 +00:00
# define DEFAULT_RGUI_SHADOWS false
# define DEFAULT_RGUI_PARTICLE_EFFECT RGUI_PARTICLE_EFFECT_NONE
2019-08-23 11:22:30 +00:00
# define DEFAULT_RGUI_PARTICLE_EFFECT_SPEED 1.0f
2021-04-01 16:25:45 +00:00
# define DEFAULT_RGUI_PARTICLE_EFFECT_SCREENSAVER true
2022-10-18 10:13:47 +00:00
# define DEFAULT_RGUI_EXTENDED_ASCII false
2020-07-27 13:43:54 +00:00
# define DEFAULT_RGUI_SWITCH_ICONS true
2019-06-14 11:01:22 +00:00
# endif
2019-02-13 11:02:15 +00:00
2019-06-14 11:01:22 +00:00
# ifdef HAVE_MENU
# define DEFAULT_BLOCK_CONFIG_READ true
2013-10-30 12:58:35 +00:00
# else
2019-06-03 04:37:09 +00:00
# define DEFAULT_BLOCK_CONFIG_READ false
2013-10-30 11:45:46 +00:00
# endif
2019-10-24 00:45:05 +00:00
/* TODO/FIXME - this setting is thread-unsafe right now and can corrupt the stack - default to off */
# define DEFAULT_AUTOMATICALLY_ADD_CONTENT_TO_PLAYLIST false
2019-06-03 04:37:09 +00:00
2020-02-04 03:21:31 +00:00
static const bool default_game_specific_options = true ;
static const bool default_auto_overrides_enable = true ;
static const bool default_auto_remaps_enable = true ;
2020-05-14 16:27:13 +00:00
static const bool default_global_core_options = false ;
2020-02-04 03:21:31 +00:00
static const bool default_auto_shaders_enable = true ;
2015-04-18 01:07:15 +00:00
2020-02-04 03:21:31 +00:00
static const bool default_sort_savefiles_enable = false ;
static const bool default_sort_savestates_enable = false ;
2020-08-13 02:24:54 +00:00
static const bool default_sort_savefiles_by_content_enable = false ;
static const bool default_sort_savestates_by_content_enable = false ;
static const bool default_sort_screenshots_by_content_enable = false ;
2015-05-07 23:06:14 +00:00
2020-02-04 03:21:31 +00:00
static const bool default_savestates_in_content_dir = false ;
static const bool default_savefiles_in_content_dir = false ;
static const bool default_systemfiles_in_content_dir = false ;
static const bool default_screenshots_in_content_dir = false ;
2017-08-05 17:31:58 +00:00
2021-10-08 11:53:49 +00:00
# if defined(RS90) || defined(RETROFW) || defined(MIYOO)
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_START_SELECT
2021-07-13 16:36:48 +00:00
# elif defined(_XBOX1) || defined(__PS3__) || defined(_XBOX360) || defined(DINGUX)
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_L3_R3
2019-02-03 11:19:09 +00:00
# elif defined(PS2) || defined(PSP)
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_HOLD_START
2016-08-02 14:48:54 +00:00
# elif defined(VITA)
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_L1_R1_START_SELECT
2019-01-02 11:13:17 +00:00
# elif defined(SWITCH) || defined(ORBIS)
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_START_SELECT
2019-02-01 01:40:23 +00:00
# elif TARGET_OS_TV
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_DOWN_Y_L_R
2015-07-09 04:27:17 +00:00
# else
2021-09-24 16:30:46 +00:00
# define DEFAULT_MENU_TOGGLE_GAMEPAD_COMBO INPUT_COMBO_NONE
2015-07-09 04:27:17 +00:00
# endif
2021-09-24 16:30:46 +00:00
# define DEFAULT_QUIT_GAMEPAD_COMBO INPUT_COMBO_NONE
2016-10-14 19:57:18 +00:00
# if defined(VITA)
2020-02-04 03:21:31 +00:00
static const unsigned input_backtouch_enable = false ;
static const unsigned input_backtouch_toggle = false ;
2016-10-14 19:57:18 +00:00
# endif
2020-07-16 00:07:14 +00:00
# define DEFAULT_OVERLAY_ENABLE_AUTOPREFERRED true
2021-05-26 17:15:23 +00:00
# if defined(HAVE_OVERLAY)
2021-05-25 16:44:32 +00:00
# if defined(RARCH_MOBILE)
# define DEFAULT_OVERLAY_SHOW_INPUTS OVERLAY_SHOW_INPUT_TOUCHED
# else
# define DEFAULT_OVERLAY_SHOW_INPUTS OVERLAY_SHOW_INPUT_PHYSICAL
# endif
2021-05-26 17:15:23 +00:00
# endif
2021-05-25 16:44:32 +00:00
# define DEFAULT_OVERLAY_SHOW_INPUTS_PORT 0
2017-08-16 20:30:15 +00:00
2022-03-14 17:12:25 +00:00
# if defined(ANDROID) || defined(_WIN32) || defined(HAVE_STEAM)
2019-07-19 11:30:11 +00:00
# define DEFAULT_MENU_SWAP_OK_CANCEL_BUTTONS true
2016-11-20 12:40:31 +00:00
# else
2019-07-19 11:30:11 +00:00
# define DEFAULT_MENU_SWAP_OK_CANCEL_BUTTONS false
2016-11-20 12:40:31 +00:00
# endif
2016-09-03 23:01:29 +00:00
2021-11-03 15:32:15 +00:00
# if defined(WIIU)
# define DEFAULT_ALL_USERS_CONTROL_MENU true
# else
# define DEFAULT_ALL_USERS_CONTROL_MENU false
# endif
2019-07-19 11:30:11 +00:00
# define DEFAULT_QUIT_PRESS_TWICE true
2019-02-25 18:12:50 +00:00
2019-07-19 11:30:11 +00:00
# define DEFAULT_LOG_TO_FILE false
# define DEFAULT_LOG_TO_FILE_TIMESTAMP false
2019-03-05 22:34:05 +00:00
2014-09-08 15:12:37 +00:00
/* Crop overscanned frames. */
2019-06-02 16:09:33 +00:00
# define DEFAULT_CROP_OVERSCAN true
2011-05-05 12:13:12 +00:00
2014-09-08 15:12:37 +00:00
/* Font size for on-screen messages. */
2019-12-29 02:21:57 +00:00
# if defined(DINGUX)
# define DEFAULT_FONT_SIZE 12
2021-01-15 21:29:53 +00:00
# elif defined(PS2)
# define DEFAULT_FONT_SIZE 16
2019-12-29 02:21:57 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_FONT_SIZE 32
2019-12-29 02:21:57 +00:00
# endif
2011-01-23 01:48:06 +00:00
2015-08-30 22:55:34 +00:00
/* Offset for where messages will be placed on-screen.
2014-09-08 15:12:37 +00:00
* Values are in range [ 0.0 , 1.0 ] . */
2022-10-18 11:39:21 +00:00
# define DEFAULT_MESSAGE_POS_OFFSET_X 0.05f
# define DEFAULT_MESSAGE_POS_OFFSET_Y 0.05f
2011-01-23 01:59:44 +00:00
2014-09-08 15:12:37 +00:00
/* Color of the message.
* RGB hex value . */
2022-10-18 11:39:21 +00:00
# define DEFAULT_MESSAGE_COLOR 0xffff00
2014-09-08 15:12:37 +00:00
2022-10-18 11:39:21 +00:00
# define DEFAULT_MESSAGE_BGCOLOR_ENABLE false
# define DEFAULT_MESSAGE_BGCOLOR_RED 0
# define DEFAULT_MESSAGE_BGCOLOR_GREEN 0
# define DEFAULT_MESSAGE_BGCOLOR_BLUE 0
# define DEFAULT_MESSAGE_BGCOLOR_OPACITY 1.0f
2017-10-10 18:53:32 +00:00
2014-09-08 15:12:37 +00:00
/* Record post-filtered (CPU filter) video,
* rather than raw game output . */
2019-06-14 09:13:02 +00:00
# define DEFAULT_POST_FILTER_RECORD false
2011-08-11 03:25:31 +00:00
2014-09-08 15:12:37 +00:00
/* Screenshots post-shaded GPU output if available. */
2019-06-14 09:13:02 +00:00
# define DEFAULT_GPU_SCREENSHOT true
2012-08-26 19:18:00 +00:00
2018-01-25 20:50:57 +00:00
/* Watch shader files for changes and auto-apply as necessary. */
2019-06-14 09:13:02 +00:00
# define DEFAULT_VIDEO_SHADER_WATCH_FILES false
2018-01-25 20:50:57 +00:00
2020-08-21 16:00:44 +00:00
/* Initialise file browser with last used directory
* when selecting shader presets / passes via the menu */
# define DEFAULT_VIDEO_SHADER_REMEMBER_LAST_DIR false
2016-03-10 22:36:46 +00:00
/* Screenshots named automatically. */
2019-06-14 09:13:02 +00:00
# define DEFAULT_AUTO_SCREENSHOT_FILENAME true
2016-03-10 22:36:46 +00:00
2014-09-08 15:12:37 +00:00
/* Record post-shaded GPU output instead of raw game footage if available. */
2019-06-14 09:13:02 +00:00
# define DEFAULT_GPU_RECORD false
2012-08-25 20:38:49 +00:00
2014-09-08 15:12:37 +00:00
/* OSD-messages. */
2019-06-14 09:13:02 +00:00
# define DEFAULT_FONT_ENABLE true
2011-11-09 23:15:41 +00:00
2014-09-08 15:12:37 +00:00
/* The accurate refresh rate of your monitor (Hz).
* This is used to calculate audio input rate with the formula :
2015-08-30 22:55:34 +00:00
* audio_input_rate = game_input_rate * display_refresh_rate /
2014-09-08 15:12:37 +00: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 60 Hz to avoid large pitch changes .
2015-08-30 22:55:34 +00:00
* If your monitor does not run at 60 Hz , or something close to it ,
2014-09-08 15:12:37 +00:00
* disable VSync , and leave this at its default . */
2015-09-28 19:09:07 +00:00
# ifdef _3DS
2019-07-19 11:14:29 +00:00
# define DEFAULT_REFRESH_RATE ((32730.0 * 8192.0) / 4481134.0)
2019-07-19 11:06:07 +00:00
# elif defined(RARCH_CONSOLE)
2019-07-19 11:14:29 +00:00
# define DEFAULT_REFRESH_RATE (60 / 1.001)
2019-07-19 11:06:07 +00:00
# else
2019-07-19 11:14:29 +00:00
# define DEFAULT_REFRESH_RATE (60)
2011-12-02 14:59:07 +00:00
# endif
2019-07-19 11:14:29 +00:00
# define DEFAULT_CRT_REFRESH_RATE (DEFAULT_REFRESH_RATE)
2011-11-18 14:14:56 +00:00
2015-08-30 22:55:34 +00:00
/* Allow games to set rotation. If false, rotation requests are
2014-09-08 15:12:37 +00:00
* honored , but ignored .
* Used for setups where one manually rotates the monitor . */
2019-06-14 09:13:02 +00:00
# define DEFAULT_ALLOW_ROTATE true
2012-04-01 14:12:04 +00:00
2022-08-17 06:23:07 +00:00
# ifdef _3DS
2022-03-09 07:20:15 +00:00
/* Enable New3DS clock and L2 cache */
static const bool new3ds_speedup_enable = true ;
2018-11-14 16:38:52 +00:00
/* Enable bottom LCD screen */
2022-03-09 07:20:15 +00:00
static const bool video_3ds_lcd_bottom = true ;
2019-04-15 16:05:55 +00:00
/* Sets video display mode (3D, 2D, etc.) */
static const unsigned video_3ds_display_mode = CTR_VIDEO_MODE_3D ;
2022-08-17 06:23:07 +00:00
# define DEFAULT_BOTTOM_FONT_ENABLE true
# define DEFAULT_BOTTOM_FONT_COLOR 255
# define DEFAULT_BOTTOM_FONT_SCALE 1.48
2018-11-14 16:38:52 +00:00
# endif
2022-03-08 13:56:51 +00:00
# ifdef WIIU
/* On Wii U, whether to optimize for the native TV resolution
* or exactly 2 x the Wii U GamePad resolution . */
# define DEFAULT_WIIU_PREFER_DRC false
# endif
2014-09-08 15:12:37 +00:00
/* AUDIO */
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Will enable audio or not. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_AUDIO_ENABLE true
2010-12-22 14:58:43 +00:00
2019-01-27 16:22:16 +00:00
/* Enable menu audio sounds. */
2019-05-03 11:58:33 +00:00
static const bool audio_enable_menu = false ;
static const bool audio_enable_menu_ok = false ;
2019-01-27 16:22:16 +00:00
static const bool audio_enable_menu_cancel = false ;
static const bool audio_enable_menu_notice = false ;
2019-05-03 11:58:33 +00:00
static const bool audio_enable_menu_bgm = false ;
2020-02-17 20:28:42 +00:00
# ifdef HAVE_GFX_WIDGETS
2019-06-14 09:13:02 +00:00
# define DEFAULT_MENU_ENABLE_WIDGETS true
2019-05-03 11:58:33 +00:00
# else
2019-06-14 09:13:02 +00:00
# define DEFAULT_MENU_ENABLE_WIDGETS false
2019-05-03 11:58:33 +00:00
# endif
2019-01-27 16:22:16 +00:00
2020-07-09 12:03:55 +00:00
/* Display an animation when loading content
* > Currently implemented only as a widget */
# define DEFAULT_MENU_SHOW_LOAD_CONTENT_ANIMATION DEFAULT_MENU_ENABLE_WIDGETS
2020-07-16 15:30:38 +00:00
/* Display a notification when successfully
* connecting / disconnecting an autoconfigured
* controller
* > Disabled by default on the Switch */
# if defined(HAVE_LIBNX) && defined(HAVE_GFX_WIDGETS)
# define DEFAULT_NOTIFICATION_SHOW_AUTOCONFIG false
# else
# define DEFAULT_NOTIFICATION_SHOW_AUTOCONFIG true
# endif
2020-07-17 01:32:22 +00:00
/* Display a notification when cheats are being
* applied */
# define DEFAULT_NOTIFICATION_SHOW_CHEATS_APPLIED true
2021-04-17 07:13:35 +00:00
/* Display a notification when applying an
* IPS / BPS / UPS patch file */
# define DEFAULT_NOTIFICATION_SHOW_PATCH_APPLIED true
2020-07-16 15:30:38 +00:00
/* Display a notification when loading an
* input remap file */
# define DEFAULT_NOTIFICATION_SHOW_REMAP_LOAD true
/* Display a notification when loading a
* configuration override file */
# define DEFAULT_NOTIFICATION_SHOW_CONFIG_OVERRIDE_LOAD true
2020-07-17 11:50:28 +00:00
/* Display a notification when automatically restoring
* at launch the last used disk of multi - disk content */
# define DEFAULT_NOTIFICATION_SHOW_SET_INITIAL_DISK true
2020-07-16 15:30:38 +00:00
/* Display a notification when fast forwarding
* content */
# define DEFAULT_NOTIFICATION_SHOW_FAST_FORWARD true
2021-01-09 16:14:38 +00:00
# if defined(HAVE_SCREENSHOTS)
2020-07-19 21:42:16 +00:00
/*Display a notification when taking a screenshot*/
# define DEFAULT_NOTIFICATION_SHOW_SCREENSHOT true
/*Desired duration of the screenshot notification*/
2020-07-19 23:58:49 +00:00
# define DEFAULT_NOTIFICATION_SHOW_SCREENSHOT_DURATION 0
2020-07-19 21:42:16 +00:00
2020-07-20 17:44:55 +00:00
/* Display a white flashing effect with the desired
* duration when taking a screenshot */
# define DEFAULT_NOTIFICATION_SHOW_SCREENSHOT_FLASH 0
2021-01-09 16:14:38 +00:00
# endif
2020-07-19 21:42:16 +00:00
2021-04-06 13:02:40 +00:00
/* Display a notification when setting the refresh rate*/
# if defined(_3DS) || (defined(DINGUX) && defined(DINGUX_BETA))
/* 3DS and OpenDingux Beta devices set refresh rate
* on gfx driver init - set default notification
* state to ' false ' in order to avoid OSD log spam */
# define DEFAULT_NOTIFICATION_SHOW_REFRESH_RATE false
# else
2021-01-08 16:32:33 +00:00
# define DEFAULT_NOTIFICATION_SHOW_REFRESH_RATE true
2021-04-06 13:02:40 +00:00
# endif
2021-01-08 16:32:33 +00:00
2021-11-05 17:52:56 +00:00
# ifdef HAVE_NETWORKING
# define DEFAULT_NOTIFICATION_SHOW_NETPLAY_EXTRA false
# endif
2021-12-16 13:38:43 +00:00
# ifdef HAVE_MENU
# define DEFAULT_NOTIFICATION_SHOW_WHEN_MENU_IS_ALIVE false
# endif
2014-09-08 15:12:37 +00:00
/* Output samplerate. */
2022-04-02 07:07:25 +00:00
# if defined(GEKKO) || defined(MIYOO)
2019-06-02 15:18:52 +00:00
# define DEFAULT_OUTPUT_RATE 32000
2022-04-02 07:07:25 +00:00
# elif defined(_3DS) || defined(RETROFW)
2019-06-02 15:18:52 +00:00
# define DEFAULT_OUTPUT_RATE 32730
2015-09-06 22:05:59 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_OUTPUT_RATE 48000
2015-09-06 22:05:59 +00:00
# endif
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Audio device (e.g. hw:0,0 or /dev/audio). If NULL, will use defaults. */
2019-06-14 09:13:02 +00:00
# define DEFAULT_AUDIO_DEVICE NULL
2010-12-22 14:58:43 +00:00
2015-08-30 22:55:34 +00:00
/* Desired audio latency in milliseconds. Might not be honored
2014-09-08 15:12:37 +00:00
* if driver can ' t provide given latency . */
2021-10-08 11:53:49 +00:00
# if defined(ANDROID) || defined(EMSCRIPTEN) || defined(RETROFW) || defined(MIYOO)
2016-01-22 04:00:22 +00:00
/* For most Android devices, 64ms is way too low. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_OUT_LATENCY 128
2016-01-22 04:00:22 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_OUT_LATENCY 64
2016-01-22 04:00:22 +00:00
# endif
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Will sync audio. (recommended) */
2019-06-02 15:18:52 +00:00
# define DEFAULT_AUDIO_SYNC true
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Audio rate control. */
2015-07-16 07:35:04 +00:00
# if !defined(RARCH_CONSOLE)
2019-06-02 15:18:52 +00:00
# define DEFAULT_RATE_CONTROL true
2012-08-06 19:24:17 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_RATE_CONTROL false
2012-08-06 19:24:17 +00:00
# endif
2012-02-14 00:16:37 +00:00
2015-08-30 22:55:34 +00:00
/* Rate control delta. Defines how much rate_control
2014-09-08 15:12:37 +00:00
* is allowed to adjust input rate . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_RATE_CONTROL_DELTA 0.005
2012-02-14 00:16:37 +00:00
2014-11-16 14:24:58 +00:00
/* Maximum timing skew. Defines how much adjust_system_rates
* is allowed to adjust input rate . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_MAX_TIMING_SKEW 0.05
2014-11-16 14:24:58 +00:00
2014-09-08 15:12:37 +00:00
/* Default audio volume in dB. (0.0 dB == unity gain). */
2019-06-02 15:18:52 +00:00
# define DEFAULT_AUDIO_VOLUME 0.0
2012-11-03 13:15:03 +00:00
2017-06-08 20:58:43 +00:00
/* Default audio volume of the audio mixer in dB. (0.0 dB == unity gain). */
2019-06-02 15:18:52 +00:00
# define DEFAULT_AUDIO_MIXER_VOLUME 0.0
2017-06-08 20:58:43 +00:00
2017-04-29 02:40:24 +00:00
# ifdef HAVE_WASAPI
/* WASAPI defaults */
2020-02-04 03:21:31 +00:00
# define DEFAULT_WASAPI_EXCLUSIVE_MODE true
# define DEFAULT_WASAPI_FLOAT_FORMAT false
/* auto */
# define DEFAULT_WASAPI_SH_BUFFER_LENGTH -16
2017-04-29 02:40:24 +00:00
# endif
2020-05-01 11:19:31 +00:00
/* Automatically mute audio when fast forward
* is enabled */
# define DEFAULT_AUDIO_FASTFORWARD_MUTE false
2014-09-08 15:12:37 +00:00
/* MISC */
2012-02-14 00:16:37 +00:00
2014-09-08 15:12:37 +00:00
/* Enables displaying the current frames per second. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_FPS_SHOW false
2014-07-12 00:33:23 +00:00
2019-08-20 01:05:52 +00:00
/* FPS display will be updated at the set interval (in frames) */
# define DEFAULT_FPS_UPDATE_INTERVAL 256
2020-07-19 16:52:57 +00:00
/* Memory status display will be updated at the set interval (in frames) */
# define DEFAULT_MEMORY_UPDATE_INTERVAL 256
2018-11-28 02:00:26 +00:00
/* Enables displaying the current frame count. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_FRAMECOUNT_SHOW false
2017-10-14 00:35:55 +00:00
2018-11-22 23:27:55 +00:00
/* Includes displaying the current memory usage/total with FPS/Frames. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_MEMORY_SHOW false
2018-11-22 23:27:55 +00:00
2019-02-13 22:41:13 +00:00
/* Enables displaying various timing statistics. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_STATISTICS_SHOW false
2019-02-13 22:41:13 +00:00
Netplay Stuff (#13375)
* Netplay Stuff
## PROTOCOL FALLBACK
In order to support older clients a protocol fallback system was introduced.
The host will no longer send its header automatically after a TCP connection is established, instead, it awaits for the client to send his before determining which protocol this connection is going to operate on.
Netplay has now two protocols, a low protocol and a high protocol; the low protocol is the minimum protocol it supports, while the high protocol is the highest protocol it can operate on.
To fully support older clients, a hack was necessary: sending the high protocol in the unused client's header salt field, while keeping the protocol field to the low protocol. Without this hack we would only be able to support older clients if a newer client was the host.
Any future system can make use of this system by checking connection->netplay_protocol, which is available for both the client and host.
## NETPLAY CHAT
Starting with protocol 6, netplay chat is available through the new NETPLAY_CMD_PLAYER_CHAT command.
Limitations of the command code, which causes a disconnection on unknown commands, makes this system not possible on protocol 5.
Protocol 5 connections can neither send nor receive chat, but other netplay operations are unaffected.
Clients send chat as a string to the server, and it's the server's sole responsability to relay chat messages.
As of now, sending chat uses RetroArch's input menu, while the display of on-screen chat uses a widget overlay and RetroArch's notifications as a fallback.
If a new overlay and/or input system is desired, no backwards compatibility changes need to be made.
Only clients in playing mode (as opposed to spectating mode) can send and receive chat.
## SETTINGS SHARING
Some settings are better used when both host and clients share the same configuration.
As of protocol 6, the following settings will be shared from host to clients (without altering a client's configuration file): input latency frames and allow pausing.
## NETPLAY TUNNEL/MITM
With the current MITM system being defunct (at least as of 1.9.X), a new system was in order to solve most if not all of the problems with the current system.
This new system uses a tunneling approach, which is similar to most VPN and tunneling services around.
Tunnel commands:
RATS[unique id] (RetroArch Tunnel Session) - 16 bytes -> When this command is sent with a zeroed unique id, the tunnel server interprets this as a netplay host wanting to create a new session, in this case, the same command is returned to the host, but now with its unique session id. When a client needs to connect to a host, this command is sent with the unique session id of the host, causing the tunnel server to send a RATL command to the host.
RATL[unique id] (RetroArch Tunnel Link) - 16 bytes -> The tunnel server sends this command to the host when a client wants to connect to the host. Once the host receives this command, it establishes a new connection to the tunnel server, sending this command together with the client's unique id through this new connection, causing the tunnel server to link this connection to the connection of the client.
RATP (RetroArch Tunnel Ping) - 4 bytes -> The tunnel server sends this command to verify that the host, whom the session belongs to, is still around. The host replies with the same command. A session is closed if the tunnel server can not verify that the host is alive.
Operations:
Host -> Instead of listening and accepting connections, it connects to the tunnel server, requests a new session and then monitor this connection for new linking requests. Once a request is received, it establishes a new connection to the tunnel server for linking with a client. The tunnel server's address and port are obtained by querying the lobby server. The host will publish its session id together with the rest of its info to the lobby server.
Client -> It connects to the tunnel server and then sends the session id of the host it wants to connect to. A host's session id is obtained from the json data sent by the lobby server.
Improvements (from current MITM system):
No longer a risk of TCP port exhaustion; we only use one port now at the tunnel server.
Very little cpu usage. About 95% net I/O bound now.
Future backwards compatible with any and all changes to netplay as it no longer runs any netplay logic at MITM servers.
No longer operates the host in client mode, which was a source of many of the current problems.
Cleaner and more maintainable system and code.
Notable functions:
netplay_mitm_query -> Grabs the tunnel's address and port from the lobby server.
init_tcp_socket -> Handles the creation and operation mode of the TCP socket based on whether it's host, host+MITM or client.
handle_mitm_connection -> Creates and completes linking connections and replies to ping commands (only 1 of each per call to not affect performance).
## MISC
Ping Limiter: If a client's estimated latency to the server is higher than this value, connection will be dropped just before finishing the netplay handshake.
Ping Counter: A ping counter (similar to the FPS one) can be shown in the bottom right corner of the screen, if you are connected to a host.
LAN Discovery: Refactored and moved to its own "Refresh Netplay LAN List" button.
## FIXES
Many minor fixes to the current netplay implementation are also included.
* Remove NETPLAY_TEST_BUILD
2021-12-19 15:58:01 +00:00
/* Enables displaying the current netplay room ping. */
# define DEFAULT_NETPLAY_PING_SHOW false
2015-08-30 22:55:34 +00:00
/* Enables use of rewind. This will incur some memory footprint
2014-09-08 15:12:37 +00:00
* depending on the save state buffer . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_REWIND_ENABLE false
2011-01-31 17:06:57 +00:00
2018-08-02 14:59:37 +00:00
/* When set, any time a cheat is toggled it is immediately applied. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_APPLY_CHEATS_AFTER_TOGGLE false
2018-08-02 14:59:37 +00:00
2018-08-07 21:34:46 +00:00
/* When set, all enabled cheats are auto-applied when a game is loaded. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_APPLY_CHEATS_AFTER_LOAD false
2018-08-07 21:34:46 +00:00
2021-07-27 10:39:24 +00:00
2021-10-08 11:53:49 +00:00
# if defined(RETROFW) || defined(MIYOO)
2021-07-27 10:39:24 +00:00
/*RETROFW jz4760 has signficant slowdown with default settings */
# define DEFAULT_REWIND_BUFFER_SIZE (1 << 20)
# define DEFAULT_REWIND_BUFFER_SIZE_STEP 1
# define DEFAULT_REWIND_GRANULARITY 6
# else
2015-08-30 22:55:34 +00:00
/* The buffer size for the rewind buffer. This needs to be about
2014-09-08 15:12:37 +00:00
* 15 - 20 MB per minute . Very game dependant . */
2019-06-02 15:18:52 +00:00
# define DEFAULT_REWIND_BUFFER_SIZE (20 << 20) /* 20MiB */
2011-01-31 17:06:57 +00:00
2018-07-13 20:12:09 +00:00
/* The amount of MB to increase/decrease the rewind_buffer_size when it is changed via the UI. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_REWIND_BUFFER_SIZE_STEP 10 /* 10MB */
2018-07-13 20:12:09 +00:00
2014-09-08 15:12:37 +00:00
/* How many frames to rewind at a time. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_REWIND_GRANULARITY 1
2021-07-27 10:39:24 +00:00
# endif
2014-09-08 15:12:37 +00:00
/* Pause gameplay when gameplay loses focus. */
2022-01-24 15:31:35 +00:00
# if defined(EMSCRIPTEN)
2019-06-02 15:18:52 +00:00
# define DEFAULT_PAUSE_NONACTIVE false
2016-09-09 04:06:12 +00:00
# else
2019-06-02 15:18:52 +00:00
# define DEFAULT_PAUSE_NONACTIVE true
2016-09-09 04:06:12 +00:00
# endif
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Saves non-volatile SRAM at a regular interval.
* It is measured in seconds . A value of 0 disables autosave . */
2021-04-29 14:15:12 +00:00
# if defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(__x86_64__) || defined(_M_X64) || defined(_WIN32) || defined(OSX) || defined(ANDROID) || defined(IOS) || defined(DINGUX)
2018-12-03 02:23:36 +00:00
/* Flush to file every 10 seconds on modern platforms by default */
2019-06-02 15:18:52 +00:00
# define DEFAULT_AUTOSAVE_INTERVAL 10
2018-12-03 02:23:36 +00:00
# else
/* Default to disabled on I/O-constrained platforms */
2019-06-02 15:18:52 +00:00
# define DEFAULT_AUTOSAVE_INTERVAL 0
2018-12-03 02:23:36 +00:00
# endif
2011-02-10 20:16:59 +00:00
2022-05-08 02:24:58 +00:00
/* Netplay lobby filters */
2022-07-01 22:24:33 +00:00
# define DEFAULT_NETPLAY_SHOW_ONLY_CONNECTABLE true
# define DEFAULT_NETPLAY_SHOW_ONLY_INSTALLED_CORES false
# define DEFAULT_NETPLAY_SHOW_PASSWORDED true
2021-12-30 07:33:54 +00:00
2017-02-06 18:45:58 +00:00
/* Publicly announce netplay */
2019-06-02 15:18:52 +00:00
# define DEFAULT_NETPLAY_PUBLIC_ANNOUNCE true
2017-02-06 18:45:58 +00:00
2017-02-17 00:17:06 +00:00
/* Start netplay in spectator mode */
static const bool netplay_start_as_spectator = false ;
Netplay Stuff (#13375)
* Netplay Stuff
## PROTOCOL FALLBACK
In order to support older clients a protocol fallback system was introduced.
The host will no longer send its header automatically after a TCP connection is established, instead, it awaits for the client to send his before determining which protocol this connection is going to operate on.
Netplay has now two protocols, a low protocol and a high protocol; the low protocol is the minimum protocol it supports, while the high protocol is the highest protocol it can operate on.
To fully support older clients, a hack was necessary: sending the high protocol in the unused client's header salt field, while keeping the protocol field to the low protocol. Without this hack we would only be able to support older clients if a newer client was the host.
Any future system can make use of this system by checking connection->netplay_protocol, which is available for both the client and host.
## NETPLAY CHAT
Starting with protocol 6, netplay chat is available through the new NETPLAY_CMD_PLAYER_CHAT command.
Limitations of the command code, which causes a disconnection on unknown commands, makes this system not possible on protocol 5.
Protocol 5 connections can neither send nor receive chat, but other netplay operations are unaffected.
Clients send chat as a string to the server, and it's the server's sole responsability to relay chat messages.
As of now, sending chat uses RetroArch's input menu, while the display of on-screen chat uses a widget overlay and RetroArch's notifications as a fallback.
If a new overlay and/or input system is desired, no backwards compatibility changes need to be made.
Only clients in playing mode (as opposed to spectating mode) can send and receive chat.
## SETTINGS SHARING
Some settings are better used when both host and clients share the same configuration.
As of protocol 6, the following settings will be shared from host to clients (without altering a client's configuration file): input latency frames and allow pausing.
## NETPLAY TUNNEL/MITM
With the current MITM system being defunct (at least as of 1.9.X), a new system was in order to solve most if not all of the problems with the current system.
This new system uses a tunneling approach, which is similar to most VPN and tunneling services around.
Tunnel commands:
RATS[unique id] (RetroArch Tunnel Session) - 16 bytes -> When this command is sent with a zeroed unique id, the tunnel server interprets this as a netplay host wanting to create a new session, in this case, the same command is returned to the host, but now with its unique session id. When a client needs to connect to a host, this command is sent with the unique session id of the host, causing the tunnel server to send a RATL command to the host.
RATL[unique id] (RetroArch Tunnel Link) - 16 bytes -> The tunnel server sends this command to the host when a client wants to connect to the host. Once the host receives this command, it establishes a new connection to the tunnel server, sending this command together with the client's unique id through this new connection, causing the tunnel server to link this connection to the connection of the client.
RATP (RetroArch Tunnel Ping) - 4 bytes -> The tunnel server sends this command to verify that the host, whom the session belongs to, is still around. The host replies with the same command. A session is closed if the tunnel server can not verify that the host is alive.
Operations:
Host -> Instead of listening and accepting connections, it connects to the tunnel server, requests a new session and then monitor this connection for new linking requests. Once a request is received, it establishes a new connection to the tunnel server for linking with a client. The tunnel server's address and port are obtained by querying the lobby server. The host will publish its session id together with the rest of its info to the lobby server.
Client -> It connects to the tunnel server and then sends the session id of the host it wants to connect to. A host's session id is obtained from the json data sent by the lobby server.
Improvements (from current MITM system):
No longer a risk of TCP port exhaustion; we only use one port now at the tunnel server.
Very little cpu usage. About 95% net I/O bound now.
Future backwards compatible with any and all changes to netplay as it no longer runs any netplay logic at MITM servers.
No longer operates the host in client mode, which was a source of many of the current problems.
Cleaner and more maintainable system and code.
Notable functions:
netplay_mitm_query -> Grabs the tunnel's address and port from the lobby server.
init_tcp_socket -> Handles the creation and operation mode of the TCP socket based on whether it's host, host+MITM or client.
handle_mitm_connection -> Creates and completes linking connections and replies to ping commands (only 1 of each per call to not affect performance).
## MISC
Ping Limiter: If a client's estimated latency to the server is higher than this value, connection will be dropped just before finishing the netplay handshake.
Ping Counter: A ping counter (similar to the FPS one) can be shown in the bottom right corner of the screen, if you are connected to a host.
LAN Discovery: Refactored and moved to its own "Refresh Netplay LAN List" button.
## FIXES
Many minor fixes to the current netplay implementation are also included.
* Remove NETPLAY_TEST_BUILD
2021-12-19 15:58:01 +00:00
/* Netplay chat fading toggle */
static const bool netplay_fade_chat = true ;
2022-08-08 18:09:06 +00:00
/* Netplay chat colors */
static const unsigned netplay_chat_color_name = 0x008000 ;
static const unsigned netplay_chat_color_msg = 0xFFFFFF ;
Netplay Stuff (#13375)
* Netplay Stuff
## PROTOCOL FALLBACK
In order to support older clients a protocol fallback system was introduced.
The host will no longer send its header automatically after a TCP connection is established, instead, it awaits for the client to send his before determining which protocol this connection is going to operate on.
Netplay has now two protocols, a low protocol and a high protocol; the low protocol is the minimum protocol it supports, while the high protocol is the highest protocol it can operate on.
To fully support older clients, a hack was necessary: sending the high protocol in the unused client's header salt field, while keeping the protocol field to the low protocol. Without this hack we would only be able to support older clients if a newer client was the host.
Any future system can make use of this system by checking connection->netplay_protocol, which is available for both the client and host.
## NETPLAY CHAT
Starting with protocol 6, netplay chat is available through the new NETPLAY_CMD_PLAYER_CHAT command.
Limitations of the command code, which causes a disconnection on unknown commands, makes this system not possible on protocol 5.
Protocol 5 connections can neither send nor receive chat, but other netplay operations are unaffected.
Clients send chat as a string to the server, and it's the server's sole responsability to relay chat messages.
As of now, sending chat uses RetroArch's input menu, while the display of on-screen chat uses a widget overlay and RetroArch's notifications as a fallback.
If a new overlay and/or input system is desired, no backwards compatibility changes need to be made.
Only clients in playing mode (as opposed to spectating mode) can send and receive chat.
## SETTINGS SHARING
Some settings are better used when both host and clients share the same configuration.
As of protocol 6, the following settings will be shared from host to clients (without altering a client's configuration file): input latency frames and allow pausing.
## NETPLAY TUNNEL/MITM
With the current MITM system being defunct (at least as of 1.9.X), a new system was in order to solve most if not all of the problems with the current system.
This new system uses a tunneling approach, which is similar to most VPN and tunneling services around.
Tunnel commands:
RATS[unique id] (RetroArch Tunnel Session) - 16 bytes -> When this command is sent with a zeroed unique id, the tunnel server interprets this as a netplay host wanting to create a new session, in this case, the same command is returned to the host, but now with its unique session id. When a client needs to connect to a host, this command is sent with the unique session id of the host, causing the tunnel server to send a RATL command to the host.
RATL[unique id] (RetroArch Tunnel Link) - 16 bytes -> The tunnel server sends this command to the host when a client wants to connect to the host. Once the host receives this command, it establishes a new connection to the tunnel server, sending this command together with the client's unique id through this new connection, causing the tunnel server to link this connection to the connection of the client.
RATP (RetroArch Tunnel Ping) - 4 bytes -> The tunnel server sends this command to verify that the host, whom the session belongs to, is still around. The host replies with the same command. A session is closed if the tunnel server can not verify that the host is alive.
Operations:
Host -> Instead of listening and accepting connections, it connects to the tunnel server, requests a new session and then monitor this connection for new linking requests. Once a request is received, it establishes a new connection to the tunnel server for linking with a client. The tunnel server's address and port are obtained by querying the lobby server. The host will publish its session id together with the rest of its info to the lobby server.
Client -> It connects to the tunnel server and then sends the session id of the host it wants to connect to. A host's session id is obtained from the json data sent by the lobby server.
Improvements (from current MITM system):
No longer a risk of TCP port exhaustion; we only use one port now at the tunnel server.
Very little cpu usage. About 95% net I/O bound now.
Future backwards compatible with any and all changes to netplay as it no longer runs any netplay logic at MITM servers.
No longer operates the host in client mode, which was a source of many of the current problems.
Cleaner and more maintainable system and code.
Notable functions:
netplay_mitm_query -> Grabs the tunnel's address and port from the lobby server.
init_tcp_socket -> Handles the creation and operation mode of the TCP socket based on whether it's host, host+MITM or client.
handle_mitm_connection -> Creates and completes linking connections and replies to ping commands (only 1 of each per call to not affect performance).
## MISC
Ping Limiter: If a client's estimated latency to the server is higher than this value, connection will be dropped just before finishing the netplay handshake.
Ping Counter: A ping counter (similar to the FPS one) can be shown in the bottom right corner of the screen, if you are connected to a host.
LAN Discovery: Refactored and moved to its own "Refresh Netplay LAN List" button.
## FIXES
Many minor fixes to the current netplay implementation are also included.
* Remove NETPLAY_TEST_BUILD
2021-12-19 15:58:01 +00:00
/* Allow players to pause */
2021-12-04 01:34:21 +00:00
static const bool netplay_allow_pausing = false ;
2017-02-24 02:33:44 +00: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 ;
2015-08-30 22:55:34 +00:00
/* When being client over netplay, use keybinds for
2014-12-05 13:21:04 +00:00
* user 1 rather than user 2. */
2011-06-22 19:56:04 +00:00
static const bool netplay_client_swap_input = true ;
2011-02-20 11:12:53 +00:00
2016-12-14 03:03:10 +00:00
static const bool netplay_nat_traversal = false ;
2016-12-07 02:08:46 +00:00
static const unsigned netplay_delay_frames = 16 ;
2017-11-19 16:23:00 +00:00
static const int netplay_check_frames = 600 ;
2016-12-07 02:08:46 +00:00
2017-03-04 20:23:59 +00:00
static const bool netplay_use_mitm_server = false ;
2020-02-10 10:49:50 +00:00
# define DEFAULT_NETPLAY_MITM_SERVER "nyc"
2018-02-02 20:37:02 +00:00
2018-01-23 04:35:48 +00:00
# ifdef HAVE_NETWORKING
2021-11-05 17:52:56 +00:00
static const unsigned netplay_max_connections = 3 ;
Netplay Stuff (#13375)
* Netplay Stuff
## PROTOCOL FALLBACK
In order to support older clients a protocol fallback system was introduced.
The host will no longer send its header automatically after a TCP connection is established, instead, it awaits for the client to send his before determining which protocol this connection is going to operate on.
Netplay has now two protocols, a low protocol and a high protocol; the low protocol is the minimum protocol it supports, while the high protocol is the highest protocol it can operate on.
To fully support older clients, a hack was necessary: sending the high protocol in the unused client's header salt field, while keeping the protocol field to the low protocol. Without this hack we would only be able to support older clients if a newer client was the host.
Any future system can make use of this system by checking connection->netplay_protocol, which is available for both the client and host.
## NETPLAY CHAT
Starting with protocol 6, netplay chat is available through the new NETPLAY_CMD_PLAYER_CHAT command.
Limitations of the command code, which causes a disconnection on unknown commands, makes this system not possible on protocol 5.
Protocol 5 connections can neither send nor receive chat, but other netplay operations are unaffected.
Clients send chat as a string to the server, and it's the server's sole responsability to relay chat messages.
As of now, sending chat uses RetroArch's input menu, while the display of on-screen chat uses a widget overlay and RetroArch's notifications as a fallback.
If a new overlay and/or input system is desired, no backwards compatibility changes need to be made.
Only clients in playing mode (as opposed to spectating mode) can send and receive chat.
## SETTINGS SHARING
Some settings are better used when both host and clients share the same configuration.
As of protocol 6, the following settings will be shared from host to clients (without altering a client's configuration file): input latency frames and allow pausing.
## NETPLAY TUNNEL/MITM
With the current MITM system being defunct (at least as of 1.9.X), a new system was in order to solve most if not all of the problems with the current system.
This new system uses a tunneling approach, which is similar to most VPN and tunneling services around.
Tunnel commands:
RATS[unique id] (RetroArch Tunnel Session) - 16 bytes -> When this command is sent with a zeroed unique id, the tunnel server interprets this as a netplay host wanting to create a new session, in this case, the same command is returned to the host, but now with its unique session id. When a client needs to connect to a host, this command is sent with the unique session id of the host, causing the tunnel server to send a RATL command to the host.
RATL[unique id] (RetroArch Tunnel Link) - 16 bytes -> The tunnel server sends this command to the host when a client wants to connect to the host. Once the host receives this command, it establishes a new connection to the tunnel server, sending this command together with the client's unique id through this new connection, causing the tunnel server to link this connection to the connection of the client.
RATP (RetroArch Tunnel Ping) - 4 bytes -> The tunnel server sends this command to verify that the host, whom the session belongs to, is still around. The host replies with the same command. A session is closed if the tunnel server can not verify that the host is alive.
Operations:
Host -> Instead of listening and accepting connections, it connects to the tunnel server, requests a new session and then monitor this connection for new linking requests. Once a request is received, it establishes a new connection to the tunnel server for linking with a client. The tunnel server's address and port are obtained by querying the lobby server. The host will publish its session id together with the rest of its info to the lobby server.
Client -> It connects to the tunnel server and then sends the session id of the host it wants to connect to. A host's session id is obtained from the json data sent by the lobby server.
Improvements (from current MITM system):
No longer a risk of TCP port exhaustion; we only use one port now at the tunnel server.
Very little cpu usage. About 95% net I/O bound now.
Future backwards compatible with any and all changes to netplay as it no longer runs any netplay logic at MITM servers.
No longer operates the host in client mode, which was a source of many of the current problems.
Cleaner and more maintainable system and code.
Notable functions:
netplay_mitm_query -> Grabs the tunnel's address and port from the lobby server.
init_tcp_socket -> Handles the creation and operation mode of the TCP socket based on whether it's host, host+MITM or client.
handle_mitm_connection -> Creates and completes linking connections and replies to ping commands (only 1 of each per call to not affect performance).
## MISC
Ping Limiter: If a client's estimated latency to the server is higher than this value, connection will be dropped just before finishing the netplay handshake.
Ping Counter: A ping counter (similar to the FPS one) can be shown in the bottom right corner of the screen, if you are connected to a host.
LAN Discovery: Refactored and moved to its own "Refresh Netplay LAN List" button.
## FIXES
Many minor fixes to the current netplay implementation are also included.
* Remove NETPLAY_TEST_BUILD
2021-12-19 15:58:01 +00:00
static const unsigned netplay_max_ping = 0 ;
2017-09-11 02:49:25 +00:00
2022-05-25 10:45:02 +00:00
static const unsigned netplay_share_digital = RARCH_NETPLAY_SHARE_DIGITAL_NO_SHARING ;
static const unsigned netplay_share_analog = RARCH_NETPLAY_SHARE_ANALOG_NO_SHARING ;
2018-01-23 04:35:48 +00:00
# endif
2017-09-11 02:49:25 +00:00
2014-09-08 15:12:37 +00:00
/* On save state load, block SRAM from being overwritten.
* This could potentially lead to buggy games . */
2019-06-02 19:02:59 +00:00
# define DEFAULT_BLOCK_SRAM_OVERWRITE false
2011-09-16 13:32:21 +00:00
2015-08-30 22:55:34 +00:00
/* When saving savestates, state index is automatically
2014-09-08 15:12:37 +00:00
* incremented before saving .
2015-08-30 22:55:34 +00:00
* When the content is loaded , state index will be set
2014-09-08 15:12:37 +00:00
* to the highest existing value . */
2022-10-18 10:13:47 +00:00
# define DEFAULT_SAVESTATE_AUTO_INDEX false
2011-09-27 13:31:25 +00:00
2020-11-20 17:32:10 +00:00
/* Specifies the maximum number of savestates to keep
* when savestate auto index is enabled
* > When limit is exceeded , savestate with the lowest
* index will be deleted automatically when creating
* a new savestate
* > Setting value to zero disables the limit ( no
* savestates will be deleted in this case ) */
# define DEFAULT_SAVESTATE_MAX_KEEP 0
2014-09-08 15:12:37 +00:00
/* Automatically saves a savestate at the end of RetroArch's lifetime.
* The path is $ SRAM_PATH . auto .
2015-08-30 22:55:34 +00:00
* RetroArch will automatically load any savestate with this path on
2014-09-08 15:12:37 +00:00
* startup if savestate_auto_load is set . */
2022-10-18 10:13:47 +00:00
# define DEFAULT_SAVESTATE_AUTO_SAVE false
# define DEFAULT_SAVESTATE_AUTO_LOAD false
2012-06-02 19:33:37 +00:00
2022-10-18 10:13:47 +00:00
# define DEFAULT_SAVESTATE_THUMBNAIL_ENABLE false
2016-11-29 13:57:30 +00:00
2020-04-20 11:47:13 +00:00
/* When creating save (srm) files, compress
* written data */
# define DEFAULT_SAVE_FILE_COMPRESSION false
2020-04-15 14:48:41 +00:00
/* When creating save state files, compress
* written data */
2022-08-21 18:48:28 +00:00
# if defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
2020-06-10 20:44:45 +00:00
# define DEFAULT_SAVESTATE_FILE_COMPRESSION false
# else
2020-04-28 10:37:16 +00:00
# define DEFAULT_SAVESTATE_FILE_COMPRESSION true
2020-06-10 20:44:45 +00:00
# endif
2020-04-15 14:48:41 +00:00
2014-09-08 15:12:37 +00:00
/* Slowmotion ratio. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_SLOWMOTION_RATIO 3.0
2012-03-04 11:01:07 +00:00
2014-10-03 16:05:46 +00:00
/* Maximum fast forward ratio. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_FASTFORWARD_RATIO 0.0
2022-01-27 10:37:09 +00:00
# define MAXIMUM_FASTFORWARD_RATIO 50.0
2013-08-07 20:24:12 +00:00
2022-01-26 17:30:33 +00:00
/* Skip frames when fast forwarding. */
# define DEFAULT_FASTFORWARD_FRAMESKIP true
2018-08-04 22:34:10 +00:00
/* Enable runloop for variable refresh rate screens. Force x1 speed while handling fast forward too. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_VRR_RUNLOOP_ENABLE false
2018-08-04 22:34:10 +00:00
2018-03-28 19:22:07 +00:00
/* Run core logic one or more frames ahead then load the state back to reduce perceived input lag. */
2019-06-02 15:18:52 +00:00
# define DEFAULT_RUN_AHEAD_FRAMES 1
2018-03-28 19:22:07 +00:00
/* When using the Run Ahead feature, use a secondary instance of the core. */
2020-02-04 03:21:31 +00:00
# define DEFAULT_RUN_AHEAD_SECONDARY_INSTANCE true
2018-03-28 19:22:07 +00:00
2018-05-10 00:08:16 +00:00
/* Hide warning messages when using the Run Ahead feature. */
2020-02-04 03:21:31 +00:00
# define DEFAULT_RUN_AHEAD_HIDE_WARNINGS false
2018-05-10 00:08:16 +00:00
2014-09-08 15:12:37 +00:00
/* Enable stdin/network command interface. */
2022-10-18 10:13:47 +00:00
# define DEFAULT_NETWORK_CMD_ENABLE false
# define DEFAULT_NETWORK_CMD_PORT 55355
# define DEFAULT_NETWORK_REMOTE_BASE_PORT 55400
# define DEFAULT_STDIN_CMD_ENABLE false
2019-05-24 11:02:02 +00:00
2020-05-27 16:00:47 +00:00
# define DEFAULT_NETWORK_BUILDBOT_AUTO_EXTRACT_ARCHIVE true
# define DEFAULT_NETWORK_BUILDBOT_SHOW_EXPERIMENTAL_CORES false
2020-06-16 10:11:09 +00:00
/* Automatically create a backup whenever a core is
2020-06-17 11:54:53 +00:00
* updated via the online updater
* > Enable by default on all modern platforms with
* online updater support */
# if defined(HAVE_ONLINE_UPDATER) && (defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(__x86_64__) || defined(_M_X64) || defined(_WIN32) || defined(OSX) || defined(ANDROID) || defined(IOS))
# define DEFAULT_CORE_UPDATER_AUTO_BACKUP true
# else
2020-06-16 10:11:09 +00:00
# define DEFAULT_CORE_UPDATER_AUTO_BACKUP false
2020-06-17 11:54:53 +00:00
# endif
2020-06-16 10:11:09 +00:00
/* Number of automatic core backups to retain
* ( oldest backup will be deleted when creating
* a new one ) */
# define DEFAULT_CORE_UPDATER_AUTO_BACKUP_HISTORY_SIZE 1
2021-03-23 02:41:29 +00:00
# if defined(ANDROID) || defined(__APPLE__)
2020-05-27 16:00:47 +00:00
# define DEFAULT_NETWORK_ON_DEMAND_THUMBNAILS true
2019-11-01 19:29:22 +00:00
# else
2020-05-27 16:00:47 +00:00
# define DEFAULT_NETWORK_ON_DEMAND_THUMBNAILS false
2019-11-01 19:29:22 +00:00
# endif
2019-05-24 11:02:02 +00:00
2014-09-08 15:12:37 +00:00
/* Number of entries that will be kept in content history playlist file. */
2022-10-18 10:13:47 +00:00
# define DEFAULT_CONTENT_HISTORY_SIZE 200
2013-06-09 19:59:48 +00:00
2019-07-30 16:11:43 +00:00
/* Number of entries that will be kept in content favorites playlist file.
* - 1 = = ' unlimited ' ( 99999 ) */
2022-10-18 10:13:47 +00:00
# define DEFAULT_CONTENT_FAVORITES_SIZE 200
2019-07-30 16:11:43 +00:00
2019-02-18 15:09:19 +00:00
/* Sort all playlists (apart from histories) alphabetically */
2020-04-10 16:05:23 +00:00
# define DEFAULT_PLAYLIST_SORT_ALPHABETICAL true
2019-02-18 15:09:19 +00:00
2019-01-09 22:13:13 +00:00
/* File format to use when writing playlists to disk */
2020-04-10 16:05:23 +00:00
# define DEFAULT_PLAYLIST_USE_OLD_FORMAT false
2019-01-09 22:13:13 +00:00
2020-04-21 15:44:26 +00:00
/* When creating/updating playlists, compress written data */
# define DEFAULT_PLAYLIST_COMPRESSION false
2019-03-27 01:37:34 +00:00
# ifdef HAVE_MENU
2019-03-08 12:52:23 +00:00
/* Specify when to display 'core name' inline on playlist entries */
2020-04-10 16:05:23 +00:00
# define DEFAULT_PLAYLIST_SHOW_INLINE_CORE_NAME PLAYLIST_INLINE_CORE_DISPLAY_HIST_FAV
2019-02-17 14:34:50 +00:00
2019-03-07 12:28:21 +00:00
/* Specifies which runtime record to use on playlist sublabels */
2020-04-10 16:05:23 +00:00
# define DEFAULT_PLAYLIST_SUBLABEL_RUNTIME_TYPE PLAYLIST_RUNTIME_PER_CORE
2019-06-04 10:27:37 +00:00
2019-09-10 15:13:25 +00:00
/* Specifies time/date display format for runtime 'last played' data */
# define DEFAULT_PLAYLIST_SUBLABEL_LAST_PLAYED_STYLE PLAYLIST_LAST_PLAYED_STYLE_YMD_HMS
2020-04-10 16:05:23 +00:00
# define DEFAULT_PLAYLIST_ENTRY_REMOVE_ENABLE PLAYLIST_ENTRY_REMOVE_ENABLE_ALL
2019-03-27 01:37:34 +00:00
# endif
2020-02-04 03:21:31 +00:00
# define DEFAULT_SCAN_WITHOUT_CORE_MATCH false
2019-05-05 19:54:49 +00:00
2019-08-23 15:35:59 +00:00
# ifdef __WINRT__
/* Be paranoid about WinRT file I/O performance, and leave this disabled by
* default */
# define DEFAULT_PLAYLIST_SHOW_SUBLABELS false
# else
2019-08-23 15:33:59 +00:00
# define DEFAULT_PLAYLIST_SHOW_SUBLABELS true
2019-08-23 15:35:59 +00:00
# endif
2019-03-07 12:28:21 +00:00
2021-12-30 19:14:57 +00:00
# define DEFAULT_PLAYLIST_SHOW_HISTORY_ICONS PLAYLIST_SHOW_HISTORY_ICONS_DEFAULT
2021-05-13 08:52:47 +00:00
/* Show the indices of playlist entries in
* a menu - driver - specific fashion */
# define DEFAULT_PLAYLIST_SHOW_ENTRY_IDX true
2020-02-04 03:21:31 +00:00
# define DEFAULT_PLAYLIST_FUZZY_ARCHIVE_MATCH false
2019-05-02 08:56:04 +00:00
2020-07-23 18:08:43 +00:00
# define DEFAULT_PLAYLIST_PORTABLE_PATHS false
2014-09-08 15:12:37 +00:00
/* Show Menu start-up screen on boot. */
2020-02-04 03:21:31 +00:00
# define DEFAULT_MENU_SHOW_START_SCREEN true
2013-10-05 09:11:43 +00:00
2020-03-13 02:56:51 +00:00
/* Default scale factor for non-frambuffer-based display
* drivers and display widgets */
2020-11-01 15:31:42 +00:00
# if defined(VITA)
# define DEFAULT_MENU_SCALE_FACTOR 1.5f
# else
2019-10-09 10:33:02 +00:00
# define DEFAULT_MENU_SCALE_FACTOR 1.0f
2020-11-01 15:31:42 +00:00
# endif
2020-03-13 02:56:51 +00:00
/* Specifies whether display widgets should be scaled
2020-02-14 17:10:39 +00:00
* automatically using the default menu scale factor */
# define DEFAULT_MENU_WIDGET_SCALE_AUTO true
2020-03-13 02:56:51 +00:00
/* Default scale factor for display widgets when widget
2020-03-04 17:07:49 +00:00
* auto scaling is disabled ( fullscreen mode ) */
2020-02-14 17:10:39 +00:00
# define DEFAULT_MENU_WIDGET_SCALE_FACTOR 1.0f
2020-03-13 02:56:51 +00:00
/* Default scale factor for display widgets when widget
2020-03-04 17:07:49 +00:00
* auto scaling is disabled ( windowed mode ) */
# define DEFAULT_MENU_WIDGET_SCALE_FACTOR_WINDOWED 1.0f
2015-04-24 14:37:09 +00:00
2019-08-19 23:18:26 +00:00
/* Log level for the frontend */
# define DEFAULT_FRONTEND_LOG_LEVEL 1
2014-09-08 15:12:37 +00:00
/* Log level for libretro cores (GET_LOG_INTERFACE). */
2019-07-19 11:20:13 +00:00
# define DEFAULT_LIBRETRO_LOG_LEVEL 1
2014-03-01 11:02:48 +00:00
2014-08-24 17:00:36 +00:00
# ifndef RARCH_DEFAULT_PORT
2022-07-26 10:15:42 +00:00
# ifndef VITA
2014-08-24 17:00:36 +00:00
# define RARCH_DEFAULT_PORT 55435
2022-07-26 10:15:42 +00:00
# else
# define RARCH_DEFAULT_PORT 19492
# endif
2014-08-24 17:00:36 +00:00
# endif
2010-12-22 14:58:43 +00:00
2018-09-15 22:44:46 +00:00
# ifndef RARCH_STREAM_DEFAULT_PORT
# define RARCH_STREAM_DEFAULT_PORT 56400
# endif
2014-09-08 15:12:37 +00:00
/* KEYBINDS, JOYPAD */
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Axis threshold (between 0.0 and 1.0)
* How far an axis must be tilted to result in a button press . */
2020-02-04 03:21:31 +00:00
# define DEFAULT_AXIS_THRESHOLD 0.5f
# define DEFAULT_ANALOG_DEADZONE 0.0f
# define DEFAULT_ANALOG_SENSITIVITY 1.0f
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Describes speed of which turbo-enabled buttons toggle. */
2022-10-18 10:13:47 +00:00
# define DEFAULT_TURBO_PERIOD 6
# define DEFAULT_TURBO_DUTY_CYCLE 3
# define DEFAULT_TURBO_MODE 0
# define DEFAULT_TURBO_DEFAULT_BTN RETRO_DEVICE_ID_JOYPAD_B
2010-12-22 14:58:43 +00:00
2014-09-08 15:12:37 +00:00
/* Enable input auto-detection. Will attempt to autoconfigure
* gamepads , plug - and - play style . */
2022-10-18 10:13:47 +00:00
# define DEFAULT_INPUT_AUTODETECT_ENABLE true
2013-01-05 19:06:59 +00:00
2020-09-14 16:44:58 +00:00
/* Enables accelerometer/gyroscope/illuminance
* sensor input , if supported */
# if defined(ANDROID)
/* Hardware sensors cause substantial battery
* drain on Android . . . */
# define DEFAULT_INPUT_SENSORS_ENABLE false
# else
# define DEFAULT_INPUT_SENSORS_ENABLE true
# endif
2021-01-13 15:00:36 +00:00
/* Automatically enable game focus when running or
* resuming content */
# define DEFAULT_INPUT_AUTO_GAME_FOCUS AUTO_GAME_FOCUS_OFF
2015-08-30 22:55:34 +00:00
/* Show the input descriptors set by the core instead
2014-12-04 12:26:27 +00:00
* of the default ones . */
2022-10-18 10:13:47 +00:00
# define DEFAULT_INPUT_DESCRIPTOR_LABEL_SHOW true
# define DEFAULT_INPUT_DESCRIPTOR_HIDE_UNBOUND false
2014-12-05 13:13:29 +00:00
2020-10-08 12:22:35 +00:00
# if defined(DINGUX)
2022-10-18 11:39:21 +00:00
# define DEFAULT_INPUT_MAX_USERS 1
2020-10-08 12:22:35 +00:00
# else
2022-10-18 11:39:21 +00:00
# define DEFAULT_INPUT_MAX_USERS 5
2020-10-08 12:22:35 +00:00
# endif
2015-06-25 16:43:01 +00:00
2022-10-18 10:13:47 +00:00
# define DEFAULT_INPUT_BIND_TIMEOUT 5
# define DEFAULT_INPUT_BIND_HOLD 2
# define DEFAULT_INPUT_POLL_TYPE_BEHAVIOR 2
2020-06-09 09:16:38 +00:00
# define DEFAULT_INPUT_HOTKEY_BLOCK_DELAY 5
2020-06-06 19:39:51 +00:00
2020-02-16 15:38:17 +00:00
static const unsigned gfx_thumbnails_default = 3 ;
2016-05-01 14:49:13 +00:00
2018-03-25 15:27:17 +00:00
static const unsigned menu_left_thumbnails_default = 0 ;
2020-02-16 15:38:17 +00:00
static const unsigned gfx_thumbnail_upscale_threshold = 0 ;
2019-06-05 16:04:23 +00:00
2019-09-09 14:15:28 +00:00
# ifdef HAVE_MENU
2021-10-08 11:53:49 +00:00
# if defined(RS90) || defined(MIYOO)
2021-07-14 14:27:07 +00:00
/* The RS-90 has a hardware clock that is neither
* configurable nor persistent , rendering it useless .
* We therefore hide it in the menu by default . */
# define DEFAULT_MENU_TIMEDATE_ENABLE false
# else
# define DEFAULT_MENU_TIMEDATE_ENABLE true
# endif
2020-05-25 14:46:53 +00:00
# define DEFAULT_MENU_TIMEDATE_STYLE MENU_TIMEDATE_STYLE_DDMM_HM
# define DEFAULT_MENU_TIMEDATE_DATE_SEPARATOR MENU_TIMEDATE_DATE_SEPARATOR_HYPHEN
2019-09-09 14:15:28 +00:00
# endif
2018-09-30 17:01:43 +00:00
2022-10-18 10:13:47 +00:00
# define DEFAULT_XMB_VERTICAL_THUMBNAILS false
2018-04-04 22:52:46 +00:00
2022-10-18 10:13:47 +00:00
# define DEFAULT_XMB_THUMBNAIL_SCALE_FACTOR 100
2019-06-07 15:38:17 +00:00
2015-11-16 04:52:55 +00:00
# ifdef IOS
2022-10-18 10:13:47 +00:00
# define DEFAULT_UI_COMPANION_START_ON_BOOT false
2015-11-16 04:52:55 +00:00
# else
2022-10-18 10:13:47 +00:00
# define DEFAULT_UI_COMPANION_START_ON_BOOT true
2015-11-16 04:52:55 +00:00
# endif
2022-10-18 10:13:47 +00:00
# define DEFAULT_UI_COMPANION_ENABLE false
2018-04-30 18:33:05 +00:00
/* Currently only used to show the WIMP UI on startup */
2022-10-18 10:13:47 +00:00
# define DEFAULT_UI_COMPANION_TOGGLE false
2018-04-30 18:33:05 +00:00
2018-04-30 23:11:38 +00:00
/* Only init the WIMP UI for this session if this is enabled */
2020-02-04 03:21:31 +00:00
# define DEFAULT_DESKTOP_MENU_ENABLE true
2018-04-30 23:11:38 +00:00
2019-02-12 05:32:01 +00:00
/* Keep track of how long each core+content has been running for over time */
2019-08-23 15:35:59 +00:00
# ifdef __WINRT__
/* Be paranoid about WinRT file I/O performance, and leave this disabled by
* default */
# define DEFAULT_CONTENT_RUNTIME_LOG false
# else
2019-08-23 15:10:56 +00:00
# define DEFAULT_CONTENT_RUNTIME_LOG true
2019-08-23 15:35:59 +00:00
# endif
2019-02-12 05:32:01 +00:00
2020-02-04 03:21:31 +00:00
/* Keep track of how long each content has been running
* for over time ( ignores core ) */
# define DEFAULT_CONTENT_RUNTIME_LOG_AGGREGATE false
2019-03-07 12:28:21 +00:00
2019-07-19 18:00:31 +00:00
# define DEFAULT_UI_MENUBAR_ENABLE true
2021-03-03 11:02:32 +00:00
# if defined(__QNX__) || defined(_XBOX1) || defined(_XBOX360) || (defined(__MACH__) && defined(IOS)) || defined(ANDROID) || defined(WIIU) || defined(HAVE_NEON) || defined(GEKKO) || defined(__ARM_NEON__) || defined(__PS3__)
2020-02-04 03:21:31 +00:00
static const enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWER ;
2019-12-29 02:21:57 +00:00
# elif defined(PSP) || defined(_3DS) || defined(VITA) || defined(PS2) || defined(DINGUX)
2020-02-04 03:21:31 +00:00
static const enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_LOWEST ;
2017-12-31 20:25:07 +00:00
# else
2020-02-04 03:21:31 +00:00
static const enum resampler_quality audio_resampler_quality_level = RESAMPLER_QUALITY_NORMAL ;
2017-12-31 20:25:07 +00:00
# endif
2018-06-04 05:48:08 +00:00
/* MIDI */
2020-02-10 10:54:05 +00:00
# define DEFAULT_MIDI_INPUT "Off"
# define DEFAULT_MIDI_OUTPUT "Off"
2022-10-18 10:13:47 +00:00
# define DEFAULT_MIDI_VOLUME 100
2018-06-04 05:48:08 +00:00
2022-04-02 07:07:40 +00:00
# ifdef HAVE_MIST
/* Steam */
# define DEFAULT_STEAM_RICH_PRESENCE_FORMAT STEAM_RICH_PRESENCE_FORMAT_CONTENT_SYSTEM
# endif
2018-06-19 06:50:33 +00:00
/* Only applies to Android 7.0 (API 24) and up */
2022-10-18 10:13:47 +00:00
# define DEFAULT_SUSTAINED_PERFORMANCE_MODE false
# if defined(ANDROID)
# define DEFAULT_VIBRATE_ON_KEYPRESS true
# else
# define DEFAULT_VIBRATE_ON_KEYPRESS false
# endif
2019-03-11 01:36:52 +00:00
2022-10-18 10:13:47 +00:00
# define DEFAULT_ENABLE_DEVICE_VIBRATION false
2018-06-19 06:50:33 +00:00
2020-11-17 15:59:39 +00:00
/* Defines the strength of rumble effects
* on OpenDingux devices */
# if defined(DINGUX) && defined(HAVE_LIBSHAKE)
2021-09-04 14:29:54 +00:00
# define DEFAULT_RUMBLE_GAIN 50
# else
# define DEFAULT_RUMBLE_GAIN 100
2020-11-17 15:59:39 +00:00
# endif
2019-06-13 16:47:08 +00:00
# ifdef HAVE_VULKAN
2019-06-14 09:13:02 +00:00
# define DEFAULT_VULKAN_GPU_INDEX 0
2019-06-13 16:47:08 +00:00
# endif
2019-06-18 20:33:37 +00:00
# ifdef HAVE_D3D10
# define DEFAULT_D3D10_GPU_INDEX 0
# endif
# ifdef HAVE_D3D11
# define DEFAULT_D3D11_GPU_INDEX 0
# endif
# ifdef HAVE_D3D12
# define DEFAULT_D3D12_GPU_INDEX 0
# endif
2018-07-27 17:26:15 +00:00
# if defined(HAKCHI)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //hakchicloud.com/Libretro_Cores/"
2018-07-27 17:26:15 +00:00
# elif defined(ANDROID)
2018-05-01 18:01:03 +00:00
# if defined(ANDROID_ARM_V7)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/android/latest/armeabi-v7a/"
2018-05-01 18:01:03 +00:00
# elif defined(ANDROID_ARM)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/android/latest/armeabi/"
2017-06-05 01:38:53 +00:00
# elif defined(ANDROID_AARCH64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/android/latest/arm64-v8a/"
2015-01-21 05:28:40 +00:00
# elif defined(ANDROID_X86)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/android/latest/x86/"
2018-05-01 18:01:03 +00:00
# elif defined(ANDROID_X64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/android/latest/x86_64/"
2015-01-21 05:51:45 +00:00
# else
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL ""
2015-01-21 05:28:40 +00:00
# endif
2017-01-07 21:25:12 +00:00
# elif defined(__QNX__)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/blackberry/latest/"
2015-01-21 05:28:40 +00:00
# elif defined(IOS)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/apple/ios/latest/"
2015-02-17 05:35:51 +00:00
# elif defined(OSX)
# if defined(__x86_64__)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/apple/osx/x86_64/latest/"
2015-02-17 05:35:51 +00:00
# elif defined(__i386__) || defined(__i486__) || defined(__i686__)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //bot.libretro.com/nightly/apple/osx/x86/latest/"
2021-01-26 21:58:45 +00:00
# elif defined(__aarch64__)
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/apple/osx/arm64/latest/"
2015-02-22 22:45:46 +00:00
# else
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/apple/osx/ppc/latest/"
2015-02-17 05:35:51 +00:00
# endif
2015-01-21 05:28:40 +00:00
# elif defined(_WIN32) && !defined(_XBOX)
2019-01-01 14:30:21 +00:00
# if _MSC_VER >= 1910
# ifndef __WINRT__
# if defined(__x86_64__) || defined(_M_X64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2017-desktop/x64/latest/"
2019-01-01 14:30:21 +00:00
# elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2017-desktop/x86/latest/"
2019-06-10 18:40:46 +00:00
# elif defined(__arm__) || defined(_M_ARM)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2017-desktop/arm/latest/"
2019-06-10 18:40:46 +00:00
# elif defined(__aarch64__) || defined(_M_ARM64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2017-desktop/arm64/latest/"
2019-01-01 14:30:21 +00:00
# endif
# else
# if defined(__x86_64__) || defined(_M_X64)
2022-07-14 13:21:49 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows/x86_64/latest/"
2019-01-01 14:30:21 +00:00
# elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
2022-07-14 13:21:49 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows/x86/latest/"
2019-06-10 18:40:46 +00:00
# elif defined(__arm__) || defined(_M_ARM)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm/latest/"
2019-06-10 18:40:46 +00:00
# elif defined(__aarch64__) || defined(_M_ARM64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm64/latest/"
2019-01-01 14:30:21 +00:00
# endif
# endif
# elif _MSC_VER == 1600
2018-01-20 19:05:32 +00:00
# if defined(__x86_64__) || defined(_M_X64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2010/x86_64/latest/"
2017-07-02 18:44:59 +00:00
# elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2010/x86/latest/"
2017-07-02 18:44:59 +00:00
# endif
2017-08-03 14:46:58 +00:00
# elif _MSC_VER == 1400
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2005/x86/latest/"
2017-12-11 01:16:41 +00:00
# elif _MSC_VER == 1310
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows-msvc2003/x86/latest/"
2017-07-02 18:44:59 +00:00
# else
2018-01-20 19:05:32 +00:00
# if defined(__x86_64__) || defined(_M_X64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows/x86_64/latest/"
2006-05-18 11:17:58 +00:00
# elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/windows/x86/latest/"
2015-01-21 05:28:40 +00:00
# endif
2017-07-02 18:44:59 +00:00
# endif
2015-03-06 01:47:00 +00:00
# elif defined(__linux__)
# if defined(__x86_64__)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/linux/x86_64/latest/"
2015-10-20 17:52:40 +00:00
# elif defined(__i386__) || defined(__i486__) || defined(__i686__)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/linux/x86/latest/"
2017-10-15 04:16:23 +00:00
# elif defined(__arm__) && __ARM_ARCH == 7 && defined(__ARM_PCS_VFP)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/linux/armhf/latest/"
2015-03-06 01:47:00 +00:00
# else
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL ""
2015-03-06 01:47:00 +00:00
# endif
2017-05-23 09:24:23 +00:00
# elif defined(WIIU)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/nintendo/wiiu/latest/"
2018-09-28 20:47:27 +00:00
# elif defined(HAVE_LIBNX)
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL "http: //buildbot.libretro.com/nightly/nintendo/switch/libnx/latest/"
2020-12-30 18:11:48 +00:00
# elif defined(_3DS)
2021-01-04 02:31:24 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL envIsHomebrew() ? "http: //buildbot.libretro.com/nightly/nintendo/3ds/latest/3dsx/" : "http://buildbot.libretro.com/nightly/nintendo/3ds/latest/cia/"
2015-01-21 05:28:40 +00:00
# else
2020-02-10 14:33:32 +00:00
# define DEFAULT_BUILDBOT_SERVER_URL ""
2015-01-21 05:28:40 +00:00
# endif
2020-02-04 03:21:31 +00:00
# define DEFAULT_BUILDBOT_ASSETS_SERVER_URL "http: //buildbot.libretro.com/assets/"
2015-02-01 16:13:15 +00:00
2020-02-04 03:21:31 +00:00
# define DEFAULT_DISCORD_APP_ID "475456035851599874"
2018-10-13 23:17:17 +00:00
2019-08-22 17:39:00 +00:00
# define DEFAULT_AI_SERVICE_SOURCE_LANG 0
# define DEFAULT_AI_SERVICE_TARGET_LANG 0
2022-04-01 00:21:26 +00:00
# define DEFAULT_AI_SERVICE_ENABLE false
2019-08-22 05:07:07 +00:00
2019-10-19 18:53:17 +00:00
# define DEFAULT_AI_SERVICE_PAUSE false
2019-08-22 05:07:07 +00:00
# define DEFAULT_AI_SERVICE_MODE 1
# define DEFAULT_AI_SERVICE_URL "http: //localhost:4404/"
2019-05-11 05:15:39 +00:00
2020-07-16 00:07:14 +00:00
# if defined(HAVE_FFMPEG) || defined(HAVE_MPV)
# define DEFAULT_BUILTIN_MEDIAPLAYER_ENABLE true
# else
# define DEFAULT_BUILTIN_MEDIAPLAYER_ENABLE false
# endif
# if defined(HAVE_IMAGEVIEWER)
# define DEFAULT_BUILTIN_IMAGEVIEWER_ENABLE true
# else
# define DEFAULT_BUILTIN_IMAGEVIEWER_ENABLE false
# endif
# define DEFAULT_FILTER_BY_CURRENT_CORE false
2013-04-14 12:23:54 +00:00
# endif