diff options
Diffstat (limited to 'src/citra')
| -rw-r--r-- | src/citra/config.cpp | 17 | ||||
| -rw-r--r-- | src/citra/default_ini.h | 15 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index ef1229912..a4162e9ad 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -94,6 +94,23 @@ void Config::ReadValues() { | |||
| 94 | Settings::values.layout_option = | 94 | Settings::values.layout_option = |
| 95 | static_cast<Settings::LayoutOption>(sdl2_config->GetInteger("Layout", "layout_option", 0)); | 95 | static_cast<Settings::LayoutOption>(sdl2_config->GetInteger("Layout", "layout_option", 0)); |
| 96 | Settings::values.swap_screen = sdl2_config->GetBoolean("Layout", "swap_screen", false); | 96 | Settings::values.swap_screen = sdl2_config->GetBoolean("Layout", "swap_screen", false); |
| 97 | Settings::values.custom_layout = sdl2_config->GetBoolean("Layout", "custom_layout", false); | ||
| 98 | Settings::values.custom_top_left = | ||
| 99 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_left", 0)); | ||
| 100 | Settings::values.custom_top_top = | ||
| 101 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_top", 0)); | ||
| 102 | Settings::values.custom_top_right = | ||
| 103 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_right", 400)); | ||
| 104 | Settings::values.custom_top_bottom = | ||
| 105 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_bottom", 240)); | ||
| 106 | Settings::values.custom_bottom_left = | ||
| 107 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_left", 40)); | ||
| 108 | Settings::values.custom_bottom_top = | ||
| 109 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_top", 240)); | ||
| 110 | Settings::values.custom_bottom_right = | ||
| 111 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_right", 360)); | ||
| 112 | Settings::values.custom_bottom_bottom = | ||
| 113 | static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_bottom", 480)); | ||
| 97 | 114 | ||
| 98 | // Audio | 115 | // Audio |
| 99 | Settings::values.sink_id = sdl2_config->Get("Audio", "output_engine", "auto"); | 116 | Settings::values.sink_id = sdl2_config->Get("Audio", "output_engine", "auto"); |
diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h index af9f7aa2a..084372df4 100644 --- a/src/citra/default_ini.h +++ b/src/citra/default_ini.h | |||
| @@ -84,6 +84,21 @@ bg_green = | |||
| 84 | # 0 (default): Default Top Bottom Screen, 1: Single Screen Only, 2: Large Screen Small Screen | 84 | # 0 (default): Default Top Bottom Screen, 1: Single Screen Only, 2: Large Screen Small Screen |
| 85 | layout_option = | 85 | layout_option = |
| 86 | 86 | ||
| 87 | # Toggle custom layout (using the settings below) on or off. | ||
| 88 | # 0 (default): Off , 1: On | ||
| 89 | custom_layout = | ||
| 90 | |||
| 91 | # Screen placement when using Custom layout option | ||
| 92 | # 0x, 0y is the top left corner of the render window. | ||
| 93 | custom_top_left = | ||
| 94 | custom_top_top = | ||
| 95 | custom_top_right = | ||
| 96 | custom_top_bottom = | ||
| 97 | custom_bottom_left = | ||
| 98 | custom_bottom_top = | ||
| 99 | custom_bottom_right = | ||
| 100 | custom_bottom_bottom = | ||
| 101 | |||
| 87 | #Whether to toggle frame limiter on or off. | 102 | #Whether to toggle frame limiter on or off. |
| 88 | # 0: Off , 1 (default): On | 103 | # 0: Off , 1 (default): On |
| 89 | toggle_framelimit = | 104 | toggle_framelimit = |