default_ini.h 8.9 KB

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