summaryrefslogtreecommitdiffstats
path: root/src/frontend_common
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-01-04 04:16:54 +0100
committert895 <clombardo169@gmail.com>2024-01-04 04:49:41 +0100
commitfa04dea7c4f0d5dba86cdec23d6e8262752983e9 (patch)
tree220d650ef629fc34561e6ee7cc3ea18106e3244d /src/frontend_common
parentandroid: Don't save settings on config destruction (diff)
downloadyuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.tar
yuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.tar.gz
yuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.tar.bz2
yuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.tar.lz
yuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.tar.xz
yuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.tar.zst
yuzu-fa04dea7c4f0d5dba86cdec23d6e8262752983e9.zip
Diffstat (limited to 'src/frontend_common')
-rw-r--r--src/frontend_common/config.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp
index 51576b4ee..678e27ef8 100644
--- a/src/frontend_common/config.cpp
+++ b/src/frontend_common/config.cpp
@@ -894,9 +894,10 @@ void Config::WriteSettingGeneric(const Settings::BasicSetting* const setting) {
WriteBooleanSetting(std::string(key).append("\\use_global"), setting->UsingGlobal());
}
if (global || !setting->UsingGlobal()) {
+ auto value = global ? setting->ToStringGlobal() : setting->ToString();
WriteBooleanSetting(std::string(key).append("\\default"),
- setting->ToString() == setting->DefaultToString());
- WriteStringSetting(key, setting->ToString());
+ value == setting->DefaultToString());
+ WriteStringSetting(key, value);
}
} else if (global) {
WriteBooleanSetting(std::string(key).append("\\default"),