default_ini.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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 3DS 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 avaible:
  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. # - "threshould"(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_up=
  30. button_down=
  31. button_left=
  32. button_right=
  33. button_l=
  34. button_r=
  35. button_start=
  36. button_select=
  37. button_zl=
  38. button_zr=
  39. button_home=
  40. # for analog input, the following devices are avaible:
  41. # - "analog_from_button" (default) for emulating analog input from direction buttons. Required parameters:
  42. # - "up", "down", "left", "right": sub-devices for each direction.
  43. # Should be in the format as a button input devices using escape characters, for example, "engine$0keyboard$1code$00"
  44. # - "modifier": sub-devices as a modifier.
  45. # - "modifier_scale": a float number representing the applied modifier scale to the analog input.
  46. # Must be in range of 0.0-1.0. Defaults to 0.5
  47. # - "sdl" for joystick input using SDL. Required parameters:
  48. # - "joystick": the index of the joystick to bind
  49. # - "axis_x": the index of the axis to bind as x-axis (default to 0)
  50. # - "axis_y": the index of the axis to bind as y-axis (default to 1)
  51. circle_pad=
  52. c_stick=
  53. [Core]
  54. # Whether to use the Just-In-Time (JIT) compiler for CPU emulation
  55. # 0: Interpreter (slow), 1 (default): JIT (fast)
  56. use_cpu_jit =
  57. [Renderer]
  58. # Whether to use software or hardware rendering.
  59. # 0: Software, 1 (default): Hardware
  60. use_hw_renderer =
  61. # Whether to use the Just-In-Time (JIT) compiler for shader emulation
  62. # 0: Interpreter (slow), 1 (default): JIT (fast)
  63. use_shader_jit =
  64. # Resolution scale factor
  65. # 0: Auto (scales resolution to window size), 1: Native 3DS screen resolution, Otherwise a scale
  66. # factor for the 3DS resolution
  67. resolution_factor =
  68. # Whether to enable V-Sync (caps the framerate at 60FPS) or not.
  69. # 0 (default): Off, 1: On
  70. use_vsync =
  71. # The clear color for the renderer. What shows up on the sides of the bottom screen.
  72. # Must be in range of 0.0-1.0. Defaults to 1.0 for all.
  73. bg_red =
  74. bg_blue =
  75. bg_green =
  76. [Layout]
  77. # Layout for the screen inside the render window.
  78. # 0 (default): Default Top Bottom Screen, 1: Single Screen Only, 2: Large Screen Small Screen
  79. layout_option =
  80. # Toggle custom layout (using the settings below) on or off.
  81. # 0 (default): Off , 1: On
  82. custom_layout =
  83. # Screen placement when using Custom layout option
  84. # 0x, 0y is the top left corner of the render window.
  85. custom_top_left =
  86. custom_top_top =
  87. custom_top_right =
  88. custom_top_bottom =
  89. custom_bottom_left =
  90. custom_bottom_top =
  91. custom_bottom_right =
  92. custom_bottom_bottom =
  93. #Whether to toggle frame limiter on or off.
  94. # 0: Off , 1 (default): On
  95. toggle_framelimit =
  96. # Swaps the prominent screen with the other screen.
  97. # For example, if Single Screen is chosen, setting this to 1 will display the bottom screen instead of the top screen.
  98. # 0 (default): Top Screen is prominent, 1: Bottom Screen is prominent
  99. swap_screen =
  100. [Audio]
  101. # Which audio output engine to use.
  102. # auto (default): Auto-select, null: No audio output, sdl2: SDL2 (if available)
  103. output_engine =
  104. # Whether or not to enable the audio-stretching post-processing effect.
  105. # This effect adjusts audio speed to match emulation speed and helps prevent audio stutter,
  106. # at the cost of increasing audio latency.
  107. # 0: No, 1 (default): Yes
  108. enable_audio_stretching =
  109. # Which audio device to use.
  110. # auto (default): Auto-select
  111. output_device =
  112. [Data Storage]
  113. # Whether to create a virtual SD card.
  114. # 1 (default): Yes, 0: No
  115. use_virtual_sd =
  116. [System]
  117. # The system model that Citra will try to emulate
  118. # 0: Old 3DS (default), 1: New 3DS
  119. is_new_3ds =
  120. # The system region that Citra will use during emulation
  121. # -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan
  122. region_value =
  123. [Camera]
  124. # Which camera engine to use for the right outer camera
  125. # blank (default): a dummy camera that always returns black image
  126. camera_outer_right_name =
  127. # A config string for the right outer camera. Its meaning is defined by the camera engine
  128. camera_outer_right_config =
  129. # ... for the left outer camera
  130. camera_outer_left_name =
  131. camera_outer_left_config =
  132. # ... for the inner camera
  133. camera_inner_name =
  134. camera_inner_config =
  135. [Miscellaneous]
  136. # A filter which removes logs below a certain logging level.
  137. # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
  138. log_filter = *:Info
  139. [Debugging]
  140. # Port for listening to GDB connections.
  141. use_gdbstub=false
  142. gdbstub_port=24689
  143. [WebService]
  144. # Endpoint URL for submitting telemetry data
  145. telemetry_endpoint_url =
  146. )";
  147. }