diff options
author | bunnei <bunneidev@gmail.com> | 2015-04-04 21:14:14 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-04-04 21:14:14 +0200 |
commit | 64196976b91e4202504724d65c1c772e1c542c39 (patch) | |
tree | 153bae22824e049686724c0c4e630e3a71f979e2 /src/citra_qt/config.cpp | |
parent | Merge pull request #641 from purpasmart96/service_stubs (diff) | |
parent | Allow the user to set the background clear color during emulation (diff) | |
download | yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.gz yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.bz2 yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.lz yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.xz yuzu-64196976b91e4202504724d65c1c772e1c542c39.tar.zst yuzu-64196976b91e4202504724d65c1c772e1c542c39.zip |
Diffstat (limited to 'src/citra_qt/config.cpp')
-rw-r--r-- | src/citra_qt/config.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp index ac250e0a5..fb85121b3 100644 --- a/src/citra_qt/config.cpp +++ b/src/citra_qt/config.cpp @@ -53,6 +53,12 @@ void Config::ReadValues() { Settings::values.frame_skip = qt_config->value("frame_skip", 0).toInt(); qt_config->endGroup(); + qt_config->beginGroup("Renderer"); + Settings::values.bg_red = qt_config->value("bg_red", 1.0).toFloat(); + Settings::values.bg_green = qt_config->value("bg_green", 1.0).toFloat(); + Settings::values.bg_blue = qt_config->value("bg_blue", 1.0).toFloat(); + qt_config->endGroup(); + qt_config->beginGroup("Data Storage"); Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool(); qt_config->endGroup(); @@ -98,6 +104,13 @@ void Config::SaveValues() { qt_config->setValue("frame_skip", Settings::values.frame_skip); qt_config->endGroup(); + qt_config->beginGroup("Renderer"); + // Cast to double because Qt's written float values are not human-readable + qt_config->setValue("bg_red", (double)Settings::values.bg_red); + qt_config->setValue("bg_green", (double)Settings::values.bg_green); + qt_config->setValue("bg_blue", (double)Settings::values.bg_blue); + qt_config->endGroup(); + qt_config->beginGroup("Data Storage"); qt_config->setValue("use_virtual_sd", Settings::values.use_virtual_sd); qt_config->endGroup(); |