default_ini.h 17 KB

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