diff options
author | SonofUgly <son_of_ugly@yahoo.com> | 2017-02-01 00:22:47 -0800 |
---|---|---|
committer | SonofUgly <son_of_ugly@yahoo.com> | 2017-02-23 10:49:56 -0800 |
commit | e0a4450bbd40d69d288023ab5a95eaa0b00100fd (patch) | |
tree | 288cacc8a345cea50d8c6a25c17e4ebbb1ec41d9 /src/citra/config.cpp | |
parent | ac4ea522cbe653f6362357ca108ca3bf726b6229 (diff) |
Add custom layout settings.
Diffstat (limited to 'src/citra/config.cpp')
-rw-r--r-- | src/citra/config.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 827c90e558..2314e3f955 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp @@ -77,6 +77,23 @@ void Config::ReadValues() { Settings::values.layout_option = static_cast<Settings::LayoutOption>(sdl2_config->GetInteger("Layout", "layout_option", 0)); Settings::values.swap_screen = sdl2_config->GetBoolean("Layout", "swap_screen", false); + Settings::values.custom_layout = sdl2_config->GetBoolean("Layout", "custom_layout", false); + Settings::values.custom_top_left = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_left", 0)); + Settings::values.custom_top_top = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_top", 0)); + Settings::values.custom_top_right = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_right", 400)); + Settings::values.custom_top_bottom = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_top_bottom", 240)); + Settings::values.custom_bottom_left = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_left", 40)); + Settings::values.custom_bottom_top = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_top", 240)); + Settings::values.custom_bottom_right = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_right", 360)); + Settings::values.custom_bottom_bottom = + static_cast<u16>(sdl2_config->GetInteger("Layout", "custom_bottom_bottom", 480)); // Audio Settings::values.sink_id = sdl2_config->Get("Audio", "output_engine", "auto"); |