diff options
| author | 2017-03-21 22:57:31 -0400 | |
|---|---|---|
| committer | 2017-03-21 22:57:31 -0400 | |
| commit | ccc3985cc0efe520bf4f53d4fcac7bfe1abdc82c (patch) | |
| tree | 38120c3cf4e7af72dc8122f9f278b77aa52b663b /src/citra/config.cpp | |
| parent | Removed a linebreak from the README. (diff) | |
| parent | Add custom layout settings. (diff) | |
| download | yuzu-ccc3985cc0efe520bf4f53d4fcac7bfe1abdc82c.tar.gz yuzu-ccc3985cc0efe520bf4f53d4fcac7bfe1abdc82c.tar.xz yuzu-ccc3985cc0efe520bf4f53d4fcac7bfe1abdc82c.zip | |
Merge pull request #2512 from SonofUgly/custom-layout
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 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"); |