summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/default_ini.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu_cmd/default_ini.h')
-rw-r--r--src/yuzu_cmd/default_ini.h179
1 files changed, 179 insertions, 0 deletions
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
new file mode 100644
index 000000000..b7b8abe1e
--- /dev/null
+++ b/src/yuzu_cmd/default_ini.h
@@ -0,0 +1,179 @@
1// Copyright 2014 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7namespace DefaultINI {
8
9const char* sdl2_config_file = R"(
10[Controls]
11# The input devices and parameters for each 3DS native input
12# It should be in the format of "engine:[engine_name],[param1]:[value1],[param2]:[value2]..."
13# Escape characters $0 (for ':'), $1 (for ',') and $2 (for '$') can be used in values
14
15# for button input, the following devices are available:
16# - "keyboard" (default) for keyboard input. Required parameters:
17# - "code": the code of the key to bind
18# - "sdl" for joystick input using SDL. Required parameters:
19# - "joystick": the index of the joystick to bind
20# - "button"(optional): the index of the button to bind
21# - "hat"(optional): the index of the hat to bind as direction buttons
22# - "axis"(optional): the index of the axis to bind
23# - "direction"(only used for hat): the direction name of the hat to bind. Can be "up", "down", "left" or "right"
24# - "threshold"(only used for axis): a float value in (-1.0, 1.0) which the button is
25# triggered if the axis value crosses
26# - "direction"(only used for axis): "+" means the button is triggered when the axis value
27# is greater than the threshold; "-" means the button is triggered when the axis value
28# is smaller than the threshold
29button_a=
30button_b=
31button_x=
32button_y=
33button_up=
34button_down=
35button_left=
36button_right=
37button_l=
38button_r=
39button_start=
40button_select=
41button_zl=
42button_zr=
43button_home=
44
45# for analog input, the following devices are available:
46# - "analog_from_button" (default) for emulating analog input from direction buttons. Required parameters:
47# - "up", "down", "left", "right": sub-devices for each direction.
48# Should be in the format as a button input devices using escape characters, for example, "engine$0keyboard$1code$00"
49# - "modifier": sub-devices as a modifier.
50# - "modifier_scale": a float number representing the applied modifier scale to the analog input.
51# Must be in range of 0.0-1.0. Defaults to 0.5
52# - "sdl" for joystick input using SDL. Required parameters:
53# - "joystick": the index of the joystick to bind
54# - "axis_x": the index of the axis to bind as x-axis (default to 0)
55# - "axis_y": the index of the axis to bind as y-axis (default to 1)
56circle_pad=
57c_stick=
58
59# for motion input, the following devices are available:
60# - "motion_emu" (default) for emulating motion input from mouse input. Required parameters:
61# - "update_period": update period in milliseconds (default to 100)
62# - "sensitivity": the coefficient converting mouse movement to tilting angle (default to 0.01)
63motion_device=
64
65# for touch input, the following devices are available:
66# - "emu_window" (default) for emulating touch input from mouse input to the emulation window. No parameters required
67touch_device=
68
69[Core]
70# Which CPU core to use for CPU emulation
71# 0 (default): Unicorn (slow), 1: Dynarmic (faster)
72cpu_core =
73
74[Renderer]
75# Whether to use software or hardware rendering.
76# 0: Software, 1 (default): Hardware
77use_hw_renderer =
78
79# Whether to use the Just-In-Time (JIT) compiler for shader emulation
80# 0: Interpreter (slow), 1 (default): JIT (fast)
81use_shader_jit =
82
83# Resolution scale factor
84# 0: Auto (scales resolution to window size), 1: Native 3DS screen resolution, Otherwise a scale
85# factor for the 3DS resolution
86resolution_factor =
87
88# Whether to enable V-Sync (caps the framerate at 60FPS) or not.
89# 0 (default): Off, 1: On
90use_vsync =
91
92# The clear color for the renderer. What shows up on the sides of the bottom screen.
93# Must be in range of 0.0-1.0. Defaults to 1.0 for all.
94bg_red =
95bg_blue =
96bg_green =
97
98[Layout]
99# Layout for the screen inside the render window.
100# 0 (default): Default Top Bottom Screen, 1: Single Screen Only, 2: Large Screen Small Screen
101layout_option =
102
103# Toggle custom layout (using the settings below) on or off.
104# 0 (default): Off , 1: On
105custom_layout =
106
107# Screen placement when using Custom layout option
108# 0x, 0y is the top left corner of the render window.
109custom_top_left =
110custom_top_top =
111custom_top_right =
112custom_top_bottom =
113custom_bottom_left =
114custom_bottom_top =
115custom_bottom_right =
116custom_bottom_bottom =
117
118#Whether to toggle frame limiter on or off.
119# 0: Off , 1 (default): On
120toggle_framelimit =
121
122# Swaps the prominent screen with the other screen.
123# For example, if Single Screen is chosen, setting this to 1 will display the bottom screen instead of the top screen.
124# 0 (default): Top Screen is prominent, 1: Bottom Screen is prominent
125swap_screen =
126
127[Audio]
128# Which audio output engine to use.
129# auto (default): Auto-select, null: No audio output, sdl2: SDL2 (if available)
130output_engine =
131
132# Whether or not to enable the audio-stretching post-processing effect.
133# This effect adjusts audio speed to match emulation speed and helps prevent audio stutter,
134# at the cost of increasing audio latency.
135# 0: No, 1 (default): Yes
136enable_audio_stretching =
137
138# Which audio device to use.
139# auto (default): Auto-select
140output_device =
141
142[Data Storage]
143# Whether to create a virtual SD card.
144# 1 (default): Yes, 0: No
145use_virtual_sd =
146
147[System]
148# The system model that Citra will try to emulate
149# 0: Old 3DS (default), 1: New 3DS
150is_new_3ds =
151
152# The system region that Citra will use during emulation
153# -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan
154region_value =
155
156[Miscellaneous]
157# A filter which removes logs below a certain logging level.
158# Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
159log_filter = *:Info
160
161[Debugging]
162# Port for listening to GDB connections.
163use_gdbstub=false
164gdbstub_port=24689
165
166[WebService]
167# Whether or not to enable telemetry
168# 0: No, 1 (default): Yes
169enable_telemetry =
170# Endpoint URL for submitting telemetry data
171telemetry_endpoint_url = https://services.citra-emu.org/api/telemetry
172# Endpoint URL to verify the username and token
173verify_endpoint_url = https://services.citra-emu.org/api/profile
174# Username and token for Citra Web Service
175# See https://services.citra-emu.org/ for more info
176citra_username =
177citra_token =
178)";
179}