default_ini.h 16 KB

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