default_ini.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. namespace DefaultINI {
  6. const char* sdl2_config_file = R"(
  7. [ControlsGeneral]
  8. # The input devices and parameters for each Switch native input
  9. # It should be in the format of "engine:[engine_name],[param1]:[value1],[param2]:[value2]..."
  10. # Escape characters $0 (for ':'), $1 (for ',') and $2 (for '$') can be used in values
  11. # for button input, the following devices are available:
  12. # - "keyboard" (default) for keyboard input. Required parameters:
  13. # - "code": the code of the key to bind
  14. # - "sdl" for joystick input using SDL. Required parameters:
  15. # - "joystick": the index of the joystick to bind
  16. # - "button"(optional): the index of the button to bind
  17. # - "hat"(optional): the index of the hat to bind as direction buttons
  18. # - "axis"(optional): the index of the axis to bind
  19. # - "direction"(only used for hat): the direction name of the hat to bind. Can be "up", "down", "left" or "right"
  20. # - "threshold"(only used for axis): a float value in (-1.0, 1.0) which the button is
  21. # triggered if the axis value crosses
  22. # - "direction"(only used for axis): "+" means the button is triggered when the axis value
  23. # is greater than the threshold; "-" means the button is triggered when the axis value
  24. # is smaller than the threshold
  25. button_a=
  26. button_b=
  27. button_x=
  28. button_y=
  29. button_lstick=
  30. button_rstick=
  31. button_l=
  32. button_r=
  33. button_zl=
  34. button_zr=
  35. button_plus=
  36. button_minus=
  37. button_dleft=
  38. button_dup=
  39. button_dright=
  40. button_ddown=
  41. button_lstick_left=
  42. button_lstick_up=
  43. button_lstick_right=
  44. button_lstick_down=
  45. button_sl=
  46. button_sr=
  47. button_home=
  48. button_screenshot=
  49. # for analog input, the following devices are available:
  50. # - "analog_from_button" (default) for emulating analog input from direction buttons. Required parameters:
  51. # - "up", "down", "left", "right": sub-devices for each direction.
  52. # Should be in the format as a button input devices using escape characters, for example, "engine$0keyboard$1code$00"
  53. # - "modifier": sub-devices as a modifier.
  54. # - "modifier_scale": a float number representing the applied modifier scale to the analog input.
  55. # Must be in range of 0.0-1.0. Defaults to 0.5
  56. # - "sdl" for joystick input using SDL. Required parameters:
  57. # - "joystick": the index of the joystick to bind
  58. # - "axis_x": the index of the axis to bind as x-axis (default to 0)
  59. # - "axis_y": the index of the axis to bind as y-axis (default to 1)
  60. lstick=
  61. rstick=
  62. # To use the debug_pad, prepend `debug_pad_` before each button setting above.
  63. # i.e. debug_pad_button_a=
  64. # Enable debug pad inputs to the guest
  65. # 0 (default): Disabled, 1: Enabled
  66. debug_pad_enabled =
  67. # Whether to enable or disable vibration
  68. # 0: Disabled, 1 (default): Enabled
  69. vibration_enabled=
  70. # Whether to enable or disable accurate vibrations
  71. # 0 (default): Disabled, 1: Enabled
  72. enable_accurate_vibrations=
  73. # Enables controller motion inputs
  74. # 0: Disabled, 1 (default): Enabled
  75. motion_enabled =
  76. # for motion input, the following devices are available:
  77. # - "motion_emu" (default) for emulating motion input from mouse input. Required parameters:
  78. # - "update_period": update period in milliseconds (default to 100)
  79. # - "sensitivity": the coefficient converting mouse movement to tilting angle (default to 0.01)
  80. # - "cemuhookudp" reads motion input from a udp server that uses cemuhook's udp protocol
  81. motion_device=
  82. # for touch input, the following devices are available:
  83. # - "emu_window" (default) for emulating touch input from mouse input to the emulation window. No parameters required
  84. # - "cemuhookudp" reads touch input from a udp server that uses cemuhook's udp protocol
  85. # - "min_x", "min_y", "max_x", "max_y": defines the udp device's touch screen coordinate system
  86. touch_device=
  87. # Whether to enable or disable touch input from button
  88. # 0 (default): Disabled, 1: Enabled
  89. use_touch_from_button=
  90. # for mapping buttons to touch inputs.
  91. #touch_from_button_map=1
  92. #touch_from_button_maps_0_name=default
  93. #touch_from_button_maps_0_count=2
  94. #touch_from_button_maps_0_bind_0=foo
  95. #touch_from_button_maps_0_bind_1=bar
  96. # etc.
  97. # List of Cemuhook UDP servers, delimited by ','.
  98. # Default: 127.0.0.1:26760
  99. # Example: 127.0.0.1:26760,123.4.5.67:26761
  100. udp_input_servers =
  101. # Enable controlling an axis via a mouse input.
  102. # 0 (default): Off, 1: On
  103. mouse_panning =
  104. # Set mouse sensitivity.
  105. # Default: 1.0
  106. mouse_panning_sensitivity =
  107. # Emulate an analog control stick from keyboard inputs.
  108. # 0 (default): Disabled, 1: Enabled
  109. emulate_analog_keyboard =
  110. # Enable mouse inputs to the guest
  111. # 0 (default): Disabled, 1: Enabled
  112. mouse_enabled =
  113. # Enable keyboard inputs to the guest
  114. # 0 (default): Disabled, 1: Enabled
  115. keyboard_enabled =
  116. [Core]
  117. # Whether to use multi-core for CPU emulation
  118. # 0: Disabled, 1 (default): Enabled
  119. use_multi_core=
  120. [Cpu]
  121. # Adjusts various optimizations.
  122. # Auto-select mode enables choice unsafe optimizations.
  123. # Accurate enables only safe optimizations.
  124. # Unsafe allows any unsafe optimizations.
  125. # 0 (default): Auto-select, 1: Accurate, 2: Enable unsafe optimizations
  126. cpu_accuracy =
  127. # Allow disabling safe optimizations.
  128. # 0 (default): Disabled, 1: Enabled
  129. cpu_debug_mode =
  130. # Enable inline page tables optimization (faster guest memory access)
  131. # 0: Disabled, 1 (default): Enabled
  132. cpuopt_page_tables =
  133. # Enable block linking CPU optimization (reduce block dispatcher use during predictable jumps)
  134. # 0: Disabled, 1 (default): Enabled
  135. cpuopt_block_linking =
  136. # Enable return stack buffer CPU optimization (reduce block dispatcher use during predictable returns)
  137. # 0: Disabled, 1 (default): Enabled
  138. cpuopt_return_stack_buffer =
  139. # Enable fast dispatcher CPU optimization (use a two-tiered dispatcher architecture)
  140. # 0: Disabled, 1 (default): Enabled
  141. cpuopt_fast_dispatcher =
  142. # Enable context elimination CPU Optimization (reduce host memory use for guest context)
  143. # 0: Disabled, 1 (default): Enabled
  144. cpuopt_context_elimination =
  145. # Enable constant propagation CPU optimization (basic IR optimization)
  146. # 0: Disabled, 1 (default): Enabled
  147. cpuopt_const_prop =
  148. # Enable miscellaneous CPU optimizations (basic IR optimization)
  149. # 0: Disabled, 1 (default): Enabled
  150. cpuopt_misc_ir =
  151. # Enable reduction of memory misalignment checks (reduce memory fallbacks for misaligned access)
  152. # 0: Disabled, 1 (default): Enabled
  153. cpuopt_reduce_misalign_checks =
  154. # Enable Host MMU Emulation (faster guest memory access)
  155. # 0: Disabled, 1 (default): Enabled
  156. cpuopt_fastmem =
  157. # Enable unfuse FMA (improve performance on CPUs without FMA)
  158. # Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
  159. # 0: Disabled, 1 (default): Enabled
  160. cpuopt_unsafe_unfuse_fma =
  161. # Enable faster FRSQRTE and FRECPE
  162. # Only enabled if cpu_accuracy is set to Unsafe.
  163. # 0: Disabled, 1 (default): Enabled
  164. cpuopt_unsafe_reduce_fp_error =
  165. # Enable faster ASIMD instructions (32 bits only)
  166. # Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
  167. # 0: Disabled, 1 (default): Enabled
  168. cpuopt_unsafe_ignore_standard_fpcr =
  169. # Enable inaccurate NaN handling
  170. # Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
  171. # 0: Disabled, 1 (default): Enabled
  172. cpuopt_unsafe_inaccurate_nan =
  173. # Disable address space checks (64 bits only)
  174. # Only enabled if cpu_accuracy is set to Unsafe. Automatically chosen with cpu_accuracy = Auto-select.
  175. # 0: Disabled, 1 (default): Enabled
  176. cpuopt_unsafe_fastmem_check =
  177. [Renderer]
  178. # Which backend API to use.
  179. # 0 (default): OpenGL, 1: Vulkan
  180. backend =
  181. # Enable graphics API debugging mode.
  182. # 0 (default): Disabled, 1: Enabled
  183. debug =
  184. # Enable shader feedback.
  185. # 0 (default): Disabled, 1: Enabled
  186. renderer_shader_feedback =
  187. # Enable Nsight Aftermath crash dumps
  188. # 0 (default): Disabled, 1: Enabled
  189. nsight_aftermath =
  190. # Disable shader loop safety checks, executing the shader without loop logic changes
  191. # 0 (default): Disabled, 1: Enabled
  192. disable_shader_loop_safety_checks =
  193. # Which Vulkan physical device to use (defaults to 0)
  194. vulkan_device =
  195. # Whether to use fullscreen or borderless window mode
  196. # 0 (Windows default): Borderless window, 1 (All other default): Exclusive fullscreen
  197. fullscreen_mode =
  198. # Aspect ratio
  199. # 0: Default (16:9), 1: Force 4:3, 2: Force 21:9, 3: Stretch to Window
  200. aspect_ratio =
  201. # Anisotropic filtering
  202. # 0: Default, 1: 2x, 2: 4x, 3: 8x, 4: 16x
  203. max_anisotropy =
  204. # Whether to enable V-Sync (caps the framerate at 60FPS) or not.
  205. # 0 (default): Off, 1: On
  206. use_vsync =
  207. # Selects the OpenGL shader backend. NV_gpu_program5 is required for GLASM. If NV_gpu_program5 is
  208. # not available and GLASM is selected, GLSL will be used.
  209. # 0: GLSL, 1 (default): GLASM, 2: SPIR-V
  210. shader_backend =
  211. # Whether to allow asynchronous shader building.
  212. # 0 (default): Off, 1: On
  213. use_asynchronous_shaders =
  214. # NVDEC emulation.
  215. # 0: Disabled, 1: CPU Decoding, 2 (default): GPU Decoding
  216. nvdec_emulation =
  217. # Accelerate ASTC texture decoding.
  218. # 0: Off, 1 (default): On
  219. accelerate_astc =
  220. # Turns on the speed limiter, which will limit the emulation speed to the desired speed limit value
  221. # 0: Off, 1: On (default)
  222. use_speed_limit =
  223. # Limits the speed of the game to run no faster than this value as a percentage of target speed
  224. # 1 - 9999: Speed limit as a percentage of target game speed. 100 (default)
  225. speed_limit =
  226. # Whether to use disk based shader cache
  227. # 0: Off, 1 (default): On
  228. use_disk_shader_cache =
  229. # Which gpu accuracy level to use
  230. # 0: Normal, 1 (default): High, 2: Extreme (Very slow)
  231. gpu_accuracy =
  232. # Whether to use asynchronous GPU emulation
  233. # 0 : Off (slow), 1 (default): On (fast)
  234. use_asynchronous_gpu_emulation =
  235. # Inform the guest that GPU operations completed more quickly than they did.
  236. # 0: Off, 1 (default): On
  237. use_fast_gpu_time =
  238. # Whether to use garbage collection or not for GPU caches.
  239. # 0 (default): Off, 1: On
  240. use_caches_gc =
  241. # The clear color for the renderer. What shows up on the sides of the bottom screen.
  242. # Must be in range of 0-255. Defaults to 0 for all.
  243. bg_red =
  244. bg_blue =
  245. bg_green =
  246. # Caps the unlocked framerate to a multiple of the title's target FPS.
  247. # 1 - 1000: Target FPS multiple cap. 1000 (default)
  248. fps_cap =
  249. [Audio]
  250. # Which audio output engine to use.
  251. # auto (default): Auto-select
  252. # cubeb: Cubeb audio engine (if available)
  253. # sdl2: SDL2 audio engine (if available)
  254. # null: No audio output
  255. output_engine =
  256. # Whether or not to enable the audio-stretching post-processing effect.
  257. # This effect adjusts audio speed to match emulation speed and helps prevent audio stutter,
  258. # at the cost of increasing audio latency.
  259. # 0: No, 1 (default): Yes
  260. enable_audio_stretching =
  261. # Which audio device to use.
  262. # auto (default): Auto-select
  263. output_device =
  264. # Output volume.
  265. # 100 (default): 100%, 0; mute
  266. volume =
  267. [Data Storage]
  268. # Whether to create a virtual SD card.
  269. # 1 (default): Yes, 0: No
  270. use_virtual_sd =
  271. # Whether or not to enable gamecard emulation
  272. # 1: Yes, 0 (default): No
  273. gamecard_inserted =
  274. # Whether or not the gamecard should be emulated as the current game
  275. # If 'gamecard_inserted' is 0 this setting is irrelevant
  276. # 1: Yes, 0 (default): No
  277. gamecard_current_game =
  278. # Path to an XCI file to use as the gamecard
  279. # If 'gamecard_inserted' is 0 this setting is irrelevant
  280. # If 'gamecard_current_game' is 1 this setting is irrelevant
  281. gamecard_path =
  282. [System]
  283. # Whether the system is docked
  284. # 1 (default): Yes, 0: No
  285. use_docked_mode =
  286. # Sets the seed for the RNG generator built into the switch
  287. # rng_seed will be ignored and randomly generated if rng_seed_enabled is false
  288. rng_seed_enabled =
  289. rng_seed =
  290. # Sets the current time (in seconds since 12:00 AM Jan 1, 1970) that will be used by the time service
  291. # This will auto-increment, with the time set being the time the game is started
  292. # This override will only occur if custom_rtc_enabled is true, otherwise the current time is used
  293. custom_rtc_enabled =
  294. custom_rtc =
  295. # Sets the systems language index
  296. # 0: Japanese, 1: English (default), 2: French, 3: German, 4: Italian, 5: Spanish, 6: Chinese,
  297. # 7: Korean, 8: Dutch, 9: Portuguese, 10: Russian, 11: Taiwanese, 12: British English, 13: Canadian French,
  298. # 14: Latin American Spanish, 15: Simplified Chinese, 16: Traditional Chinese, 17: Brazilian Portuguese
  299. language_index =
  300. # The system region that yuzu will use during emulation
  301. # -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan
  302. region_index =
  303. # The system time zone that yuzu will use during emulation
  304. # 0: Auto-select (default), 1: Default (system archive value), Others: Index for specified time zone
  305. time_zone_index =
  306. # Sets the sound output mode.
  307. # 0: Mono, 1 (default): Stereo, 2: Surround
  308. sound_index =
  309. [Miscellaneous]
  310. # A filter which removes logs below a certain logging level.
  311. # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
  312. log_filter = *:Trace
  313. # Use developer keys
  314. # 0 (default): Disabled, 1: Enabled
  315. use_dev_keys =
  316. [Debugging]
  317. # Record frame time data, can be found in the log directory. Boolean value
  318. record_frame_times =
  319. # Determines whether or not yuzu will dump the ExeFS of all games it attempts to load while loading them
  320. dump_exefs=false
  321. # Determines whether or not yuzu will dump all NSOs it attempts to load while loading them
  322. dump_nso=false
  323. # Determines whether or not yuzu will save the filesystem access log.
  324. enable_fs_access_log=false
  325. # Enables verbose reporting services
  326. reporting_services =
  327. # Determines whether or not yuzu will report to the game that the emulated console is in Kiosk Mode
  328. # false: Retail/Normal Mode (default), true: Kiosk Mode
  329. quest_flag =
  330. # Determines whether debug asserts should be enabled, which will throw an exception on asserts.
  331. # false: Disabled (default), true: Enabled
  332. use_debug_asserts =
  333. # Determines whether unimplemented HLE service calls should be automatically stubbed.
  334. # false: Disabled (default), true: Enabled
  335. use_auto_stub =
  336. # Enables/Disables the macro JIT compiler
  337. disable_macro_jit=false
  338. # Presents guest frames as they become available. Experimental.
  339. # false: Disabled (default), true: Enabled
  340. disable_fps_limit=false
  341. [WebService]
  342. # Whether or not to enable telemetry
  343. # 0: No, 1 (default): Yes
  344. enable_telemetry =
  345. # URL for Web API
  346. web_api_url = https://api.yuzu-emu.org
  347. # Username and token for yuzu Web Service
  348. # See https://profile.yuzu-emu.org/ for more info
  349. yuzu_username =
  350. yuzu_token =
  351. [AddOns]
  352. # Used to disable add-ons
  353. # List of title IDs of games that will have add-ons disabled (separated by '|'):
  354. title_ids =
  355. # For each title ID, have a key/value pair called `disabled_<title_id>` equal to the names of the add-ons to disable (sep. by '|')
  356. # e.x. disabled_0100000000010000 = Update|DLC <- disables Updates and DLC on Super Mario Odyssey
  357. )";
  358. } // namespace DefaultINI