default_ini.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. [Controls]
  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. # for motion input, the following devices are available:
  63. # - "motion_emu" (default) for emulating motion input from mouse input. Required parameters:
  64. # - "update_period": update period in milliseconds (default to 100)
  65. # - "sensitivity": the coefficient converting mouse movement to tilting angle (default to 0.01)
  66. # - "cemuhookudp" reads motion input from a udp server that uses cemuhook's udp protocol
  67. motion_device=
  68. # for touch input, the following devices are available:
  69. # - "emu_window" (default) for emulating touch input from mouse input to the emulation window. No parameters required
  70. # - "cemuhookudp" reads touch input from a udp server that uses cemuhook's udp protocol
  71. # - "min_x", "min_y", "max_x", "max_y": defines the udp device's touch screen coordinate system
  72. touch_device=
  73. # Most desktop operating systems do not expose a way to poll the motion state of the controllers
  74. # so as a way around it, cemuhook created a udp client/server protocol to broadcast the data directly
  75. # from a controller device to the client program. Citra has a client that can connect and read
  76. # from any cemuhook compatible motion program.
  77. # IPv4 address of the udp input server (Default "127.0.0.1")
  78. udp_input_address=127.0.0.1
  79. # Port of the udp input server. (Default 26760)
  80. udp_input_port=
  81. # The pad to request data on. Should be between 0 (Pad 1) and 3 (Pad 4). (Default 0)
  82. udp_pad_index=
  83. [Core]
  84. # Whether to use multi-core for CPU emulation
  85. # 0 (default): Disabled, 1: Enabled
  86. use_multi_core=
  87. [Renderer]
  88. # Which backend API to use.
  89. # 0 (default): OpenGL, 1: Vulkan
  90. backend =
  91. # Enable graphics API debugging mode.
  92. # 0 (default): Disabled, 1: Enabled
  93. debug =
  94. # Which Vulkan physical device to use (defaults to 0)
  95. vulkan_device =
  96. # Whether to use software or hardware rendering.
  97. # 0: Software, 1 (default): Hardware
  98. use_hw_renderer =
  99. # Whether to use the Just-In-Time (JIT) compiler for shader emulation
  100. # 0: Interpreter (slow), 1 (default): JIT (fast)
  101. use_shader_jit =
  102. # Resolution scale factor
  103. # 0: Auto (scales resolution to window size), 1: Native Switch screen resolution, Otherwise a scale
  104. # factor for the Switch resolution
  105. resolution_factor =
  106. # Aspect ratio
  107. # 0: Default (16:9), 1: Force 4:3, 2: Force 21:9, 3: Stretch to Window
  108. aspect_ratio =
  109. # Anisotropic filtering
  110. # 0: Default, 1: 2x, 2: 4x, 3: 8x, 4: 16x
  111. max_anisotropy =
  112. # Whether to enable V-Sync (caps the framerate at 60FPS) or not.
  113. # 0 (default): Off, 1: On
  114. use_vsync =
  115. # Turns on the frame limiter, which will limit frames output to the target game speed
  116. # 0: Off, 1: On (default)
  117. use_frame_limit =
  118. # Limits the speed of the game to run no faster than this value as a percentage of target speed
  119. # 1 - 9999: Speed limit as a percentage of target game speed. 100 (default)
  120. frame_limit =
  121. # Whether to use disk based shader cache
  122. # 0 (default): Off, 1 : On
  123. use_disk_shader_cache =
  124. # Whether to use accurate GPU emulation
  125. # 0 (default): Off (fast), 1 : On (slow)
  126. use_accurate_gpu_emulation =
  127. # Whether to use asynchronous GPU emulation
  128. # 0 : Off (slow), 1 (default): On (fast)
  129. use_asynchronous_gpu_emulation =
  130. # Forces VSync on the display thread. Usually doesn't impact performance, but on some drivers it can
  131. # so only turn this off if you notice a speed difference.
  132. # 0: Off, 1 (default): On
  133. use_vsync =
  134. # The clear color for the renderer. What shows up on the sides of the bottom screen.
  135. # Must be in range of 0.0-1.0. Defaults to 1.0 for all.
  136. bg_red =
  137. bg_blue =
  138. bg_green =
  139. [Layout]
  140. # Layout for the screen inside the render window.
  141. # 0 (default): Default Top Bottom Screen, 1: Single Screen Only, 2: Large Screen Small Screen
  142. layout_option =
  143. # Toggle custom layout (using the settings below) on or off.
  144. # 0 (default): Off, 1: On
  145. custom_layout =
  146. # Screen placement when using Custom layout option
  147. # 0x, 0y is the top left corner of the render window.
  148. custom_top_left =
  149. custom_top_top =
  150. custom_top_right =
  151. custom_top_bottom =
  152. custom_bottom_left =
  153. custom_bottom_top =
  154. custom_bottom_right =
  155. custom_bottom_bottom =
  156. # Swaps the prominent screen with the other screen.
  157. # For example, if Single Screen is chosen, setting this to 1 will display the bottom screen instead of the top screen.
  158. # 0 (default): Top Screen is prominent, 1: Bottom Screen is prominent
  159. swap_screen =
  160. [Audio]
  161. # Which audio output engine to use.
  162. # auto (default): Auto-select, null: No audio output, cubeb: Cubeb audio engine (if available)
  163. output_engine =
  164. # Whether or not to enable the audio-stretching post-processing effect.
  165. # This effect adjusts audio speed to match emulation speed and helps prevent audio stutter,
  166. # at the cost of increasing audio latency.
  167. # 0: No, 1 (default): Yes
  168. enable_audio_stretching =
  169. # Which audio device to use.
  170. # auto (default): Auto-select
  171. output_device =
  172. # Output volume.
  173. # 1.0 (default): 100%, 0.0; mute
  174. volume =
  175. [Data Storage]
  176. # Whether to create a virtual SD card.
  177. # 1 (default): Yes, 0: No
  178. use_virtual_sd =
  179. # Whether or not to enable gamecard emulation
  180. # 1: Yes, 0 (default): No
  181. gamecard_inserted =
  182. # Whether or not the gamecard should be emulated as the current game
  183. # If 'gamecard_inserted' is 0 this setting is irrelevant
  184. # 1: Yes, 0 (default): No
  185. gamecard_current_game =
  186. # Path to an XCI file to use as the gamecard
  187. # If 'gamecard_inserted' is 0 this setting is irrelevant
  188. # If 'gamecard_current_game' is 1 this setting is irrelevant
  189. gamecard_path =
  190. [System]
  191. # Whether the system is docked
  192. # 1: Yes, 0 (default): No
  193. use_docked_mode =
  194. # Allow the use of NFC in games
  195. # 1 (default): Yes, 0 : No
  196. enable_nfc =
  197. # Sets the seed for the RNG generator built into the switch
  198. # rng_seed will be ignored and randomly generated if rng_seed_enabled is false
  199. rng_seed_enabled =
  200. rng_seed =
  201. # Sets the current time (in seconds since 12:00 AM Jan 1, 1970) that will be used by the time service
  202. # This will auto-increment, with the time set being the time the game is started
  203. # This override will only occur if custom_rtc_enabled is true, otherwise the current time is used
  204. custom_rtc_enabled =
  205. custom_rtc =
  206. # Sets the account username, max length is 32 characters
  207. # yuzu (default)
  208. username = yuzu
  209. # Sets the systems language index
  210. # 0: Japanese, 1: English (default), 2: French, 3: German, 4: Italian, 5: Spanish, 6: Chinese,
  211. # 7: Korean, 8: Dutch, 9: Portuguese, 10: Russian, 11: Taiwanese, 12: British English, 13: Canadian French,
  212. # 14: Latin American Spanish, 15: Simplified Chinese, 16: Traditional Chinese
  213. language_index =
  214. # The system region that yuzu will use during emulation
  215. # -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan
  216. region_value =
  217. [Miscellaneous]
  218. # A filter which removes logs below a certain logging level.
  219. # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
  220. log_filter = *:Trace
  221. [Debugging]
  222. # Record frame time data, can be found in the log directory. Boolean value
  223. record_frame_times =
  224. # Port for listening to GDB connections.
  225. use_gdbstub=false
  226. gdbstub_port=24689
  227. # Determines whether or not yuzu will dump the ExeFS of all games it attempts to load while loading them
  228. dump_exefs=false
  229. # Determines whether or not yuzu will dump all NSOs it attempts to load while loading them
  230. dump_nso=false
  231. # Determines whether or not yuzu will report to the game that the emulated console is in Kiosk Mode
  232. # false: Retail/Normal Mode (default), true: Kiosk Mode
  233. quest_flag =
  234. [WebService]
  235. # Whether or not to enable telemetry
  236. # 0: No, 1 (default): Yes
  237. enable_telemetry =
  238. # URL for Web API
  239. web_api_url = https://api.yuzu-emu.org
  240. # Username and token for yuzu Web Service
  241. # See https://profile.yuzu-emu.org/ for more info
  242. yuzu_username =
  243. yuzu_token =
  244. [Services]
  245. # The name of the backend to use for BCAT
  246. # If this is set to 'boxcat' boxcat will be used, otherwise a null implementation will be used
  247. bcat_backend =
  248. [AddOns]
  249. # Used to disable add-ons
  250. # List of title IDs of games that will have add-ons disabled (separated by '|'):
  251. title_ids =
  252. # 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 '|')
  253. # e.x. disabled_0100000000010000 = Update|DLC <- disables Updates and DLC on Super Mario Odyssey
  254. )";
  255. }