summaryrefslogtreecommitdiff
path: root/src/citra/config.cpp
diff options
context:
space:
mode:
authorGravatar SonofUgly2017-02-01 00:22:47 -0800
committerGravatar SonofUgly2017-02-23 10:49:56 -0800
commite0a4450bbd40d69d288023ab5a95eaa0b00100fd (patch)
tree288cacc8a345cea50d8c6a25c17e4ebbb1ec41d9 /src/citra/config.cpp
parentMerge pull request #2485 from Kloen/killing-warnings-computehash64 (diff)
downloadyuzu-e0a4450bbd40d69d288023ab5a95eaa0b00100fd.tar.gz
yuzu-e0a4450bbd40d69d288023ab5a95eaa0b00100fd.tar.xz
yuzu-e0a4450bbd40d69d288023ab5a95eaa0b00100fd.zip
Add custom layout settings.
Diffstat (limited to 'src/citra/config.cpp')
-rw-r--r--src/citra/config.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp
index 827c90e55..2314e3f95 100644
--- a/src/citra/config.cpp
+++ b/src/citra/config.cpp
@@ -77,6 +77,23 @@ void Config::ReadValues() {
77 Settings::values.layout_option = 77 Settings::values.layout_option =
78 static_cast<Settings::LayoutOption>(sdl2_config->GetInteger("Layout", "layout_option", 0)); 78 static_cast<Settings::LayoutOption>(sdl2_config->GetInteger("Layout", "layout_option", 0));
79 Settings::values.swap_screen = sdl2_config->GetBoolean("Layout", "swap_screen", false); 79 Settings::values.swap_screen = sdl2_config->GetBoolean("Layout", "swap_screen", false);
80 Settings::values.custom_layout = sdl2_config->GetBoolean("Layout", "custom_layout", false);
81 Settings::values.custom_top_left =
82 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_left", 0));
83 Settings::values.custom_top_top =
84 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_top", 0));
85 Settings::values.custom_top_right =
86 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_right", 400));
87 Settings::values.custom_top_bottom =
88 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_bottom", 240));
89 Settings::values.custom_bottom_left =
90 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_left", 40));
91 Settings::values.custom_bottom_top =
92 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_top", 240));
93 Settings::values.custom_bottom_right =
94 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_right", 360));
95 Settings::values.custom_bottom_bottom =
96 static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_bottom", 480));
80 97
81 // Audio 98 // Audio
82 Settings::values.sink_id = sdl2_config->Get("Audio", "output_engine", "auto"); 99 Settings::values.sink_id = sdl2_config->Get("Audio", "output_engine", "auto");