diff options
author | t895 <clombardo169@gmail.com> | 2024-01-04 04:16:54 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2024-01-04 04:49:41 +0100 |
commit | fa04dea7c4f0d5dba86cdec23d6e8262752983e9 (patch) | |
tree | 220d650ef629fc34561e6ee7cc3ea18106e3244d | |
parent | android: Don't save settings on config destruction (diff) | |
download | yuzu-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 |
-rw-r--r-- | src/frontend_common/config.cpp | 5 |
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"), |