default_ini.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. motion_device=
  67. # for touch input, the following devices are available:
  68. # - "emu_window" (default) for emulating touch input from mouse input to the emulation window. No parameters required
  69. touch_device=
  70. [Core]
  71. # Whether to use the Just-In-Time (JIT) compiler for CPU emulation
  72. # 0: Interpreter (slow), 1 (default): JIT (fast)
  73. use_cpu_jit =
  74. # Whether to use multi-core for CPU emulation
  75. # 0 (default): Disabled, 1: Enabled
  76. use_multi_core=
  77. [Renderer]
  78. # Whether to use software or hardware rendering.
  79. # 0: Software, 1 (default): Hardware
  80. use_hw_renderer =
  81. # Whether to use the Just-In-Time (JIT) compiler for shader emulation
  82. # 0: Interpreter (slow), 1 (default): JIT (fast)
  83. use_shader_jit =
  84. # Resolution scale factor
  85. # 0: Auto (scales resolution to window size), 1: Native Switch screen resolution, Otherwise a scale
  86. # factor for the Switch resolution
  87. resolution_factor =
  88. # Whether to enable V-Sync (caps the framerate at 60FPS) or not.
  89. # 0 (default): Off, 1: On
  90. use_vsync =
  91. # Turns on the frame limiter, which will limit frames output to the target game speed
  92. # 0: Off, 1: On (default)
  93. use_frame_limit =
  94. # Limits the speed of the game to run no faster than this value as a percentage of target speed
  95. # 1 - 9999: Speed limit as a percentage of target game speed. 100 (default)
  96. frame_limit =
  97. # Whether to use disk based shader cache
  98. # 0 (default): Off, 1 : On
  99. use_disk_shader_cache =
  100. # Whether to use accurate GPU emulation
  101. # 0 (default): Off (fast), 1 : On (slow)
  102. use_accurate_gpu_emulation =
  103. # Whether to use asynchronous GPU emulation
  104. # 0 : Off (slow), 1 (default): On (fast)
  105. use_asynchronous_gpu_emulation =
  106. # The clear color for the renderer. What shows up on the sides of the bottom screen.
  107. # Must be in range of 0.0-1.0. Defaults to 1.0 for all.
  108. bg_red =
  109. bg_blue =
  110. bg_green =
  111. [Layout]
  112. # Layout for the screen inside the render window.
  113. # 0 (default): Default Top Bottom Screen, 1: Single Screen Only, 2: Large Screen Small Screen
  114. layout_option =
  115. # Toggle custom layout (using the settings below) on or off.
  116. # 0 (default): Off, 1: On
  117. custom_layout =
  118. # Screen placement when using Custom layout option
  119. # 0x, 0y is the top left corner of the render window.
  120. custom_top_left =
  121. custom_top_top =
  122. custom_top_right =
  123. custom_top_bottom =
  124. custom_bottom_left =
  125. custom_bottom_top =
  126. custom_bottom_right =
  127. custom_bottom_bottom =
  128. # Swaps the prominent screen with the other screen.
  129. # For example, if Single Screen is chosen, setting this to 1 will display the bottom screen instead of the top screen.
  130. # 0 (default): Top Screen is prominent, 1: Bottom Screen is prominent
  131. swap_screen =
  132. [Audio]
  133. # Which audio output engine to use.
  134. # auto (default): Auto-select, null: No audio output, cubeb: Cubeb audio engine (if available)
  135. output_engine =
  136. # Whether or not to enable the audio-stretching post-processing effect.
  137. # This effect adjusts audio speed to match emulation speed and helps prevent audio stutter,
  138. # at the cost of increasing audio latency.
  139. # 0: No, 1 (default): Yes
  140. enable_audio_stretching =
  141. # Which audio device to use.
  142. # auto (default): Auto-select
  143. output_device =
  144. # Output volume.
  145. # 1.0 (default): 100%, 0.0; mute
  146. volume =
  147. [Data Storage]
  148. # Whether to create a virtual SD card.
  149. # 1 (default): Yes, 0: No
  150. use_virtual_sd =
  151. [System]
  152. # Whether the system is docked
  153. # 1: Yes, 0 (default): No
  154. use_docked_mode =
  155. # Allow the use of NFC in games
  156. # 1 (default): Yes, 0 : No
  157. enable_nfc =
  158. # Sets the seed for the RNG generator built into the switch
  159. # rng_seed will be ignored and randomly generated if rng_seed_enabled is false
  160. rng_seed_enabled =
  161. rng_seed =
  162. # Sets the current time (in seconds since 12:00 AM Jan 1, 1970) that will be used by the time service
  163. # This will auto-increment, with the time set being the time the game is started
  164. # This override will only occur if custom_rtc_enabled is true, otherwise the current time is used
  165. custom_rtc_enabled =
  166. custom_rtc =
  167. # Sets the account username, max length is 32 characters
  168. # yuzu (default)
  169. username = yuzu
  170. # Sets the systems language index
  171. # 0: Japanese, 1: English (default), 2: French, 3: German, 4: Italian, 5: Spanish, 6: Chinese,
  172. # 7: Korean, 8: Dutch, 9: Portuguese, 10: Russian, 11: Taiwanese, 12: British English, 13: Canadian French,
  173. # 14: Latin American Spanish, 15: Simplified Chinese, 16: Traditional Chinese
  174. language_index =
  175. # The system region that yuzu will use during emulation
  176. # -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan
  177. region_value =
  178. [Miscellaneous]
  179. # A filter which removes logs below a certain logging level.
  180. # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
  181. log_filter = *:Trace
  182. [Debugging]
  183. # Port for listening to GDB connections.
  184. use_gdbstub=false
  185. gdbstub_port=24689
  186. # Determines whether or not yuzu will dump the ExeFS of all games it attempts to load while loading them
  187. dump_exefs=false
  188. # Determines whether or not yuzu will dump all NSOs it attempts to load while loading them
  189. dump_nso=false
  190. [WebService]
  191. # Whether or not to enable telemetry
  192. # 0: No, 1 (default): Yes
  193. enable_telemetry =
  194. # URL for Web API
  195. web_api_url = https://api.yuzu-emu.org
  196. # Username and token for yuzu Web Service
  197. # See https://profile.yuzu-emu.org/ for more info
  198. yuzu_username =
  199. yuzu_token =
  200. [AddOns]
  201. # Used to disable add-ons
  202. # List of title IDs of games that will have add-ons disabled (separated by '|'):
  203. title_ids =
  204. # 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 '|')
  205. # e.x. disabled_0100000000010000 = Update|DLC <- disables Updates and DLC on Super Mario Odyssey
  206. )";
  207. }