default_ini.h 15 KB

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