diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-07-09 16:52:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 16:52:56 +0200 |
commit | 279424233168b6ea789915a147c971b2b737277c (patch) | |
tree | f500c32523553c1da8e60922e3c53810ea6423ad /src | |
parent | Merge pull request #6563 from ReinUsesLisp/thread-worker (diff) | |
parent | yuzu qt: config: Only save renderer_debug as a global setting (diff) | |
download | yuzu-279424233168b6ea789915a147c971b2b737277c.tar yuzu-279424233168b6ea789915a147c971b2b737277c.tar.gz yuzu-279424233168b6ea789915a147c971b2b737277c.tar.bz2 yuzu-279424233168b6ea789915a147c971b2b737277c.tar.lz yuzu-279424233168b6ea789915a147c971b2b737277c.tar.xz yuzu-279424233168b6ea789915a147c971b2b737277c.tar.zst yuzu-279424233168b6ea789915a147c971b2b737277c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/configuration/config.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 1a0f75373..80961c97e 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp @@ -820,7 +820,6 @@ void Config::ReadRendererValues() { qt_config->beginGroup(QStringLiteral("Renderer")); ReadGlobalSetting(Settings::values.renderer_backend); - ReadBasicSetting(Settings::values.renderer_debug); ReadGlobalSetting(Settings::values.vulkan_device); ReadGlobalSetting(Settings::values.fullscreen_mode); ReadGlobalSetting(Settings::values.aspect_ratio); @@ -842,6 +841,10 @@ void Config::ReadRendererValues() { ReadGlobalSetting(Settings::values.bg_green); ReadGlobalSetting(Settings::values.bg_blue); + if (global) { + ReadBasicSetting(Settings::values.renderer_debug); + } + qt_config->endGroup(); } @@ -1342,7 +1345,6 @@ void Config::SaveRendererValues() { static_cast<u32>(Settings::values.renderer_backend.GetValue(global)), static_cast<u32>(Settings::values.renderer_backend.GetDefault()), Settings::values.renderer_backend.UsingGlobal()); - WriteBasicSetting(Settings::values.renderer_debug); WriteGlobalSetting(Settings::values.vulkan_device); WriteGlobalSetting(Settings::values.fullscreen_mode); WriteGlobalSetting(Settings::values.aspect_ratio); @@ -1367,6 +1369,10 @@ void Config::SaveRendererValues() { WriteGlobalSetting(Settings::values.bg_green); WriteGlobalSetting(Settings::values.bg_blue); + if (global) { + WriteBasicSetting(Settings::values.renderer_debug); + } + qt_config->endGroup(); } |