default_ini.h 15 KB

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