diff options
author | James Rowe <jroweboy@gmail.com> | 2016-05-03 08:07:17 +0200 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2016-11-05 09:55:41 +0100 |
commit | 2b1654ad9bbd8af53f22434d350704a1a1d0a285 (patch) | |
tree | 0da3cc7a1c622c1a659f4b2a8c5c08984dabd5c3 /src/citra_qt/config.cpp | |
parent | Update CONTRIBUTING.md (diff) | |
download | yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.gz yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.bz2 yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.lz yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.xz yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.tar.zst yuzu-2b1654ad9bbd8af53f22434d350704a1a1d0a285.zip |
Diffstat (limited to 'src/citra_qt/config.cpp')
-rw-r--r-- | src/citra_qt/config.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index 0b46ca6bb..f4f1a354d 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -54,6 +54,11 @@ void Config::ReadValues() { Settings::values.bg_blue = qt_config->value("bg_blue", 1.0).toFloat(); qt_config->endGroup(); + qt_config->beginGroup("Layout"); + Settings::values.layout_option = static_cast<Settings::LayoutOption>(qt_config->value("layout_option").toInt()); + Settings::values.swap_screen = qt_config->value("swap_screen", false).toBool(); + qt_config->endGroup(); + qt_config->beginGroup("Audio"); Settings::values.sink_id = qt_config->value("output_engine", "auto").toString().toStdString(); Settings::values.enable_audio_stretching = @@ -155,6 +160,11 @@ void Config::SaveValues() { qt_config->setValue("bg_blue", (double)Settings::values.bg_blue); qt_config->endGroup(); + qt_config->beginGroup("Layout"); + qt_config->setValue("layout_option", static_cast<int>(Settings::values.layout_option)); + qt_config->setValue("swap_screen", Settings::values.swap_screen); + qt_config->endGroup(); + qt_config->beginGroup("Audio"); qt_config->setValue("output_engine", QString::fromStdString(Settings::values.sink_id)); qt_config->setValue("enable_audio_stretching", Settings::values.enable_audio_stretching); |