18 #ifndef __CONFIG_DEF_H 19 #define __CONFIG_DEF_H 31 #ifdef HAVE_NETWORKING 36 #define MAX_GAMMA_SETTING 30 38 #define MAX_GAMMA_SETTING 2 40 #define MAX_GAMMA_SETTING 1 43 #if defined(XENON) || defined(_XBOX360) || defined(__CELLOS_LV2__) 44 #define DEFAULT_ASPECT_RATIO 1.7778f 45 #elif defined(_XBOX1) || defined(GEKKO) || defined(ANDROID) 46 #define DEFAULT_ASPECT_RATIO 1.3333f 48 #define DEFAULT_ASPECT_RATIO -1.0f 51 #if defined(RARCH_MOBILE) || defined(HAVE_LIBNX) 61 #if defined(ANDROID) || defined(IOS) 67 #ifdef HAVE_MATERIALUI 68 static bool materialui_icons_enable =
true;
81 #if (defined(_WIN32) && !defined(_XBOX)) || (defined(__linux) && !defined(ANDROID) && !defined(HAVE_LAKKA)) || (defined(__MACH__) && !defined(IOS)) || defined(EMSCRIPTEN) 88 static const bool cheevos_enable =
false;
94 #define DEFAULT_GAMMA 1 96 #define DEFAULT_GAMMA 0 140 #if defined(RARCH_CONSOLE) || defined(__APPLE__) 188 #if defined(HAVE_LIBNX) 194 #if defined(HAVE_THREADS) 195 #if defined(GEKKO) || defined(PSP) || defined(PS2) 213 static const bool video_vfilter =
true;
243 #if defined(__CELLOS_LV2) || defined(_XBOX360) 252 #elif defined(RARCH_CONSOLE) 279 static bool menu_use_preferred_system_color_theme =
true;
281 static bool menu_use_preferred_system_color_theme =
false;
284 static bool quick_menu_show_take_screenshot =
true;
285 static bool quick_menu_show_save_load_state =
true;
286 static bool quick_menu_show_undo_save_load_state =
true;
287 static bool quick_menu_show_add_to_favorites =
true;
288 static bool quick_menu_show_start_recording =
true;
289 static bool quick_menu_show_start_streaming =
true;
290 static bool quick_menu_show_reset_core_association =
true;
291 static bool quick_menu_show_options =
true;
292 static bool quick_menu_show_controls =
true;
293 static bool quick_menu_show_cheats =
true;
294 static bool quick_menu_show_shaders =
true;
295 static bool quick_menu_show_information =
true;
296 static bool quick_menu_show_recording =
true;
297 static bool quick_menu_show_streaming =
true;
299 static bool quick_menu_show_save_core_overrides =
true;
300 static bool quick_menu_show_save_game_overrides =
true;
301 static bool quick_menu_show_save_content_dir_overrides =
true;
303 static bool kiosk_mode_enable =
false;
305 static bool menu_horizontal_animation =
true;
306 static bool menu_show_online_updater =
true;
307 static bool menu_show_load_core =
true;
308 static bool menu_show_load_content =
true;
309 static bool menu_show_information =
true;
310 static bool menu_show_configurations =
true;
311 static bool menu_show_help =
true;
312 static bool menu_show_quit_retroarch =
true;
313 static bool menu_show_reboot =
true;
314 #ifdef HAVE_LAKKA_SWITCH 315 static bool menu_show_shutdown =
false;
317 static bool menu_show_shutdown =
true;
319 #if defined(HAVE_LAKKA) || defined(VITA) || defined(_3DS) 320 static bool menu_show_core_updater =
false;
322 static bool menu_show_core_updater =
true;
325 static bool content_show_settings =
true;
326 static bool content_show_favorites =
true;
327 #ifdef HAVE_IMAGEVIEWER 328 static bool content_show_images =
true;
330 static bool content_show_music =
true;
331 #if defined(HAVE_FFMPEG) || defined(HAVE_MPV) 332 static bool content_show_video =
true;
334 #ifdef HAVE_NETWORKING 335 static bool content_show_netplay =
true;
337 static bool content_show_history =
true;
338 #ifdef HAVE_LIBRETRODB 339 static bool content_show_add =
true;
341 static bool content_show_playlists =
true;
344 static unsigned xmb_scale_factor = 100;
345 static unsigned xmb_alpha_factor = 75;
346 static unsigned menu_font_color_red = 255;
347 static unsigned menu_font_color_green = 255;
348 static unsigned menu_font_color_blue = 255;
349 static unsigned xmb_menu_layout = 0;
352 #if defined(HAVE_LAKKA) || defined(__arm__) || defined(__PPC64__) || defined(__ppc64__) || defined(__powerpc64__) || defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__) 353 static bool xmb_shadows_enable =
false;
355 static bool xmb_shadows_enable =
true;
361 static float menu_framebuffer_opacity = 0.900;
363 static float menu_wallpaper_opacity = 0.300;
365 static float menu_footer_opacity = 1.000;
367 static float menu_header_opacity = 1.000;
369 #if defined(HAVE_OPENGLES2) || (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) 370 static unsigned menu_shader_pipeline = 1;
372 static unsigned menu_shader_pipeline = 2;
375 static bool show_advanced_settings =
false;
376 static const uint32_t menu_entry_normal_color = 0xffffffff;
377 static const uint32_t menu_entry_hover_color = 0xff64ff64;
378 static const uint32_t menu_title_color = 0xff64ff64;
379 static const uint32_t menu_bg_dark_color = 0xc0202020;
380 static const uint32_t menu_bg_light_color = 0xc0404040;
381 static const uint32_t menu_border_dark_color = 0xc0204020;
382 static const uint32_t menu_border_light_color = 0xc0408040;
402 #if defined(__CELLOS_LV2__) || defined(_XBOX1) || defined(_XBOX360) 406 #elif defined(SWITCH) 413 static unsigned input_backtouch_enable =
false;
414 static unsigned input_backtouch_toggle =
false;
421 #if defined(ANDROID) || defined(_WIN32) 431 #if defined(HAVE_LIBDBGFONT) 486 static const float refresh_rate = (32730.0 * 8192.0) / 4481134.0 ;
500 static const bool video_3ds_lcd_bottom =
true;
510 static const unsigned out_rate = 32000;
512 static const unsigned out_rate = 32730;
522 #if defined(ANDROID) || defined(EMSCRIPTEN) 533 #if !defined(RARCH_CONSOLE) 555 static const bool wasapi_exclusive_mode =
true;
556 static const bool wasapi_float_format =
false;
557 static const int wasapi_sh_buffer_length = -16;
600 #if defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(__x86_64__) || defined(_M_X64) || defined(_WIN32) || defined(OSX) || defined(ANDROID) || defined(IOS) 637 #ifdef HAVE_NETWORKING 696 #elif defined(__CELLOS_LV2__) 705 #ifndef RARCH_DEFAULT_PORT 706 #define RARCH_DEFAULT_PORT 55435 709 #ifndef RARCH_STREAM_DEFAULT_PORT 710 #define RARCH_STREAM_DEFAULT_PORT 56400 763 #if defined(__QNX__) || defined(_XBOX1) || defined(_XBOX360) || defined(__CELLOS_LV2__) || (defined(__MACH__) && defined(IOS)) || defined(ANDROID) || defined(WIIU) || defined(HAVE_NEON) || defined(GEKKO) || defined(__ARM_NEON__) 765 #elif defined(PSP) || defined(_3DS) || defined(VITA) || defined(PS2) 781 #elif defined(ANDROID) 782 #if defined(ANDROID_ARM_V7) 783 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/android/latest/armeabi-v7a/";
784 #elif defined(ANDROID_ARM) 785 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/android/latest/armeabi/";
786 #elif defined(ANDROID_AARCH64) 787 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/android/latest/arm64-v8a/";
788 #elif defined(ANDROID_X86) 789 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/android/latest/x86/";
790 #elif defined(ANDROID_X64) 791 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/android/latest/x86_64/";
795 #elif defined(__QNX__) 796 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/blackberry/latest/";
798 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/apple/ios/latest/";
800 #if defined(__x86_64__) 801 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/";
802 #elif defined(__i386__) || defined(__i486__) || defined(__i686__) 803 static char buildbot_server_url[] =
"http://bot.libretro.com/nightly/apple/osx/x86/latest/";
805 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/apple/osx/ppc/latest/";
807 #elif defined(_WIN32) && !defined(_XBOX) 810 #if defined(__x86_64__) || defined(_M_X64) 811 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/x86_64/latest/";
812 #elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64) 813 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2017-desktop/x86/latest/";
816 #if defined(__x86_64__) || defined(_M_X64) 817 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/x86_64/latest/";
818 #elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64) 819 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/x86/latest/";
820 #elif defined(__arm__) || defined(_M_ARM) 821 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2017-uwp/arm/latest/";
824 #elif _MSC_VER == 1600 825 #if defined(__x86_64__) || defined(_M_X64) 826 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2010/x86_64/latest/";
827 #elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64) 828 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2010/x86/latest/";
830 #elif _MSC_VER == 1400 831 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2005/x86/latest/";
832 #elif _MSC_VER == 1310 833 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows-msvc2003/x86/latest/";
835 #if defined(__x86_64__) || defined(_M_X64) 836 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows/x86_64/latest/";
837 #elif defined(__i386__) || defined(__i486__) || defined(__i686__) || defined(_M_IX86) || defined(_M_IA64) 838 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/windows/x86/latest/";
841 #elif defined(__linux__) 842 #if defined(__x86_64__) 843 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/linux/x86_64/latest/";
844 #elif defined(__i386__) || defined(__i486__) || defined(__i686__) 845 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/linux/x86/latest/";
846 #elif defined(__arm__) && __ARM_ARCH == 7 && defined(__ARM_PCS_VFP) 847 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/linux/armhf/latest/";
852 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/";
853 #elif defined(HAVE_LIBNX) 854 static char buildbot_server_url[] =
"http://buildbot.libretro.com/nightly/nintendo/switch/libnx/latest/";
855 #elif defined(__CELLOS_LV2__) && defined(DEX_BUILD) 856 static char buildbot_server_url[] =
"http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/dex-ps3/";
857 #elif defined(__CELLOS_LV2__) && defined(CEX_BUILD) 858 static char buildbot_server_url[] =
"http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/cex-ps3/";
859 #elif defined(__CELLOS_LV2__) && defined(ODE_BUILD) 860 static char buildbot_server_url[] =
"http://libretro.xbins.org/libretro/nightly/playstation/ps3/latest/ode-ps3/";
static const unsigned video_viwidth
Definition: config.def.h:209
static const uint32_t message_bgcolor_blue
Definition: config.def.h:453
static const uint16_t network_remote_base_port
Definition: config.def.h:685
Definition: video_defines.h:35
static bool default_auto_remaps_enable
Definition: config.def.h:391
static const unsigned window_height
Definition: config.def.h:121
static const bool vsync
Definition: config.def.h:151
static const int crt_switch_resolution_super
Definition: config.def.h:72
static const bool def_mouse_enable
Definition: config.def.h:84
static const bool savestate_auto_index
Definition: config.def.h:651
static const bool ui_companion_start_on_boot
Definition: config.def.h:752
static const bool post_filter_record
Definition: config.def.h:458
static const bool netplay_use_mitm_server
Definition: config.def.h:633
static const unsigned crt_switch_resolution
Definition: config.def.h:71
static const bool xmb_vertical_thumbnails
Definition: config.def.h:747
static bool default_auto_overrides_enable
Definition: config.def.h:390
Definition: audio_resampler.h:55
static const unsigned autosave_interval
Definition: config.def.h:605
Definition: input_driver.h:57
static const float slowmotion_ratio
Definition: config.def.h:663
Configuration options (set of defines)
static const bool crop_overscan
Definition: config.def.h:428
Definition: audio_resampler.h:54
static const bool memory_show
Definition: config.def.h:569
static const bool fps_show
Definition: config.def.h:563
static const float crt_refresh_rate
Definition: config.def.h:490
static const bool allow_rotate
Definition: config.def.h:496
static const unsigned monitor_index
Definition: config.def.h:115
static const bool block_sram_overwrite
Definition: config.def.h:645
static const bool savestate_auto_load
Definition: config.def.h:658
static const bool video_smooth
Definition: config.def.h:217
static const int out_latency
Definition: config.def.h:526
static const unsigned out_rate
Definition: config.def.h:514
static const unsigned hard_sync_frames
Definition: config.def.h:166
static const unsigned rewind_buffer_size_step
Definition: config.def.h:586
static const unsigned video_record_threads
Definition: config.def.h:130
static char buildbot_server_url[]
Definition: config.def.h:862
static bool show_physical_inputs
Definition: config.def.h:417
static const unsigned window_opacity
Definition: config.def.h:135
static const uint32_t message_bgcolor_green
Definition: config.def.h:452
static const float font_size
Definition: config.def.h:434
static const bool overlay_hide_in_menu
Definition: config.def.h:263
static const float message_pos_offset_y
Definition: config.def.h:443
static const bool menu_dpi_override_enable
Definition: config.def.h:692
static const uint32_t message_bgcolor_red
Definition: config.def.h:451
static const unsigned rewind_granularity
Definition: config.def.h:589
static const bool framecount_show
Definition: config.def.h:566
Definition: video_defines.h:56
static const bool run_ahead_secondary_instance
Definition: config.def.h:675
static unsigned swap_interval
Definition: config.def.h:183
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9939
xmb_icon_theme
Definition: menu_driver.h:285
static const unsigned input_poll_type_behavior
Definition: config.def.h:735
static const bool fullscreen
Definition: config.def.h:108
static const bool gpu_screenshot
Definition: config.def.h:461
static char default_discord_app_id[]
Definition: config.def.h:867
static const bool aspect_ratio_auto
Definition: config.def.h:241
static const bool def_history_list_enable
Definition: config.def.h:75
static const bool adaptive_vsync
Definition: config.def.h:155
static const bool display_keyboard_overlay
Definition: config.def.h:265
static const unsigned input_bind_timeout
Definition: config.def.h:737
static const unsigned libretro_log_level
Definition: config.def.h:703
static const bool rewind_enable
Definition: config.def.h:573
static const bool font_enable
Definition: config.def.h:473
static const bool pause_nonactive
Definition: config.def.h:595
static const bool scale_integer
Definition: config.def.h:233
static const unsigned midi_volume
Definition: config.def.h:774
Definition: menu_driver.h:274
static const bool rate_control
Definition: config.def.h:534
static const bool run_ahead_hide_warnings
Definition: config.def.h:678
static const bool audio_sync
Definition: config.def.h:530
static const bool netplay_client_swap_input
Definition: config.def.h:625
static const bool savestate_auto_save
Definition: config.def.h:657
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static bool config_save_on_exit
Definition: config.def.h:259
static const bool auto_screenshot_filename
Definition: config.def.h:467
static const bool windowed_fullscreen
Definition: config.def.h:111
static const float message_bgcolor_opacity
Definition: config.def.h:454
static const bool def_playlist_entry_remove
Definition: config.def.h:76
static const int netplay_check_frames
Definition: config.def.h:631
static const bool input_autodetect_enable
Definition: config.def.h:725
static const bool def_playlist_entry_rename
Definition: config.def.h:77
static const bool pointer_enable
Definition: config.def.h:54
static enum resampler_quality audio_resampler_quality_level
Definition: config.def.h:768
static const float refresh_rate
Definition: config.def.h:489
static const char * audio_device
Definition: config.def.h:518
static const unsigned menu_timedate_style
Definition: config.def.h:745
static const unsigned fullscreen_y
Definition: config.def.h:126
Definition: input_driver.h:55
static const bool ui_companion_enable
Definition: config.def.h:755
static bool all_users_control_menu
Definition: config.def.h:419
static const unsigned input_bind_hold
Definition: config.def.h:739
static const bool apply_cheats_after_toggle
Definition: config.def.h:576
static const bool threaded_data_runloop_enable
Definition: config.def.h:202
static const unsigned max_swapchain_images
Definition: config.def.h:153
static const float audio_volume
Definition: config.def.h:548
static const bool message_bgcolor_enable
Definition: config.def.h:450
static bool bundle_assets_extract_enable
Definition: config.def.h:64
static const bool netplay_start_as_spectator
Definition: config.def.h:612
static const bool video_threaded
Definition: config.def.h:191
static const bool input_descriptor_label_show
Definition: config.def.h:729
static const uint16_t network_cmd_port
Definition: config.def.h:682
static const bool hard_sync
Definition: config.def.h:159
static bool default_auto_shaders_enable
Definition: config.def.h:392
static const float rate_control_delta
Definition: config.def.h:541
static bool automatically_add_content_to_playlist
Definition: config.def.h:386
static const float max_timing_skew
Definition: config.def.h:545
static const bool netplay_require_slaves
Definition: config.def.h:618
static const unsigned turbo_duty_cycle
Definition: config.def.h:721
static bool black_frame_insertion
Definition: config.def.h:178
static bool menu_swap_ok_cancel_buttons
Definition: config.def.h:424
static const unsigned rewind_buffer_size
Definition: config.def.h:583
static const unsigned menu_left_thumbnails_default
Definition: config.def.h:743
Definition: menu_driver.h:287
static unsigned aspect_ratio_idx
Definition: config.def.h:255
static const unsigned int def_user_language
Definition: config.def.h:79
static const bool stdin_cmd_enable
Definition: config.def.h:683
static const float message_pos_offset_x
Definition: config.def.h:439
Definition: configuration.h:58
static const bool network_cmd_enable
Definition: config.def.h:681
static char buildbot_assets_server_url[]
Definition: config.def.h:865
static bool default_screenshots_in_content_dir
Definition: config.def.h:400
static const char * midi_input
Definition: config.def.h:772
static bool default_systemfiles_in_content_dir
Definition: config.def.h:399
static const bool gpu_record
Definition: config.def.h:470
static const bool input_descriptor_hide_unbound
Definition: config.def.h:731
#define DEFAULT_ASPECT_RATIO
Definition: config.def.h:48
Definition: input_driver.h:59
static const unsigned menu_dpi_override_value
Definition: config.def.h:699
static bool show_hidden_files
Definition: config.def.h:261
static bool default_savestates_in_content_dir
Definition: config.def.h:397
static const unsigned default_content_history_size
Definition: config.def.h:687
static const unsigned turbo_period
Definition: config.def.h:720
Definition: input_driver.h:58
static const unsigned input_max_users
Definition: config.def.h:733
static const bool window_decorations
Definition: config.def.h:138
static const unsigned fullscreen_x
Definition: config.def.h:125
static const bool ui_companion_toggle
Definition: config.def.h:758
Definition: video_defines.h:34
static const bool savestate_thumbnail_enable
Definition: config.def.h:660
static const char * netplay_mitm_server
Definition: config.def.h:635
static bool default_block_config_read
Definition: config.def.h:385
static const unsigned run_ahead_frames
Definition: config.def.h:672
static const bool netplay_stateless_mode
Definition: config.def.h:621
static const float audio_mixer_volume
Definition: config.def.h:551
static const bool default_menu_show_start_screen
Definition: config.def.h:690
static const bool disable_composition
Definition: config.def.h:148
static const bool shader_enable
Definition: config.def.h:226
static const int crt_switch_center_adjust
Definition: config.def.h:73
static bool default_savefiles_in_content_dir
Definition: config.def.h:398
static bool default_sort_savestates_enable
Definition: config.def.h:395
static const unsigned netplay_delay_frames
Definition: config.def.h:629
aspect_ratio
Definition: video_defines.h:32
static const float fastforward_ratio
Definition: config.def.h:666
static unsigned menu_toggle_gamepad_combo
Definition: config.def.h:409
static const bool vrr_runloop_enable
Definition: config.def.h:669
static const bool apply_cheats_after_load
Definition: config.def.h:579
static const unsigned menu_thumbnails_default
Definition: config.def.h:741
static const bool sustained_performance_mode
Definition: config.def.h:777
static const uint32_t message_color
Definition: config.def.h:448
static const unsigned window_width
Definition: config.def.h:120
static const unsigned frame_delay
Definition: config.def.h:171
static const bool force_aspect
Definition: config.def.h:220
static bool default_sort_savefiles_enable
Definition: config.def.h:394
static const bool video_shader_watch_files
Definition: config.def.h:464
Definition: audio_resampler.h:53
static const bool desktop_menu_enable
Definition: config.def.h:761
static const bool audio_enable
Definition: config.def.h:506
static const bool netplay_nat_traversal
Definition: config.def.h:627
unsigned short uint16_t
Definition: stdint.h:125
static const bool video_shared_context
Definition: config.def.h:206
static const char * midi_output
Definition: config.def.h:773
unsigned int uint32_t
Definition: stdint.h:126
static const float axis_threshold
Definition: config.def.h:717
resampler_quality
Definition: audio_resampler.h:50
static const bool load_dummy_on_core_shutdown
Definition: config.def.h:143
static const bool check_firmware_before_loading
Definition: config.def.h:145
static bool default_game_specific_options
Definition: config.def.h:389
static const bool netplay_allow_slaves
Definition: config.def.h:615
static const float default_input_overlay_opacity
Definition: config.def.h:270
static const bool netplay_public_announce
Definition: config.def.h:609