summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-12-18 06:54:36 +0100
committergerman77 <juangerman-13@hotmail.com>2022-12-18 06:54:36 +0100
commitdffeca66fa932cc6f89b2174009306366f66872a (patch)
treeaa9ae4feebf091982d120ab8e99e882da86c5e6a
parentEnable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442) (diff)
downloadyuzu-dffeca66fa932cc6f89b2174009306366f66872a.tar
yuzu-dffeca66fa932cc6f89b2174009306366f66872a.tar.gz
yuzu-dffeca66fa932cc6f89b2174009306366f66872a.tar.bz2
yuzu-dffeca66fa932cc6f89b2174009306366f66872a.tar.lz
yuzu-dffeca66fa932cc6f89b2174009306366f66872a.tar.xz
yuzu-dffeca66fa932cc6f89b2174009306366f66872a.tar.zst
yuzu-dffeca66fa932cc6f89b2174009306366f66872a.zip
Diffstat (limited to '')
-rw-r--r--src/yuzu/configuration/config.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index a8d47a2f9..2ea4f367b 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -783,8 +783,6 @@ void Config::ReadSystemValues() {
}
}
- ReadBasicSetting(Settings::values.device_name);
-
if (global) {
ReadBasicSetting(Settings::values.current_user);
Settings::values.current_user = std::clamp<int>(Settings::values.current_user.GetValue(), 0,
@@ -797,6 +795,7 @@ void Config::ReadSystemValues() {
} else {
Settings::values.custom_rtc = std::nullopt;
}
+ ReadBasicSetting(Settings::values.device_name);
}
ReadGlobalSetting(Settings::values.sound_index);
@@ -1407,7 +1406,6 @@ void Config::SaveSystemValues() {
Settings::values.rng_seed.UsingGlobal());
WriteSetting(QStringLiteral("rng_seed"), Settings::values.rng_seed.GetValue(global).value_or(0),
0, Settings::values.rng_seed.UsingGlobal());
- WriteBasicSetting(Settings::values.device_name);
if (global) {
WriteBasicSetting(Settings::values.current_user);
@@ -1416,6 +1414,7 @@ void Config::SaveSystemValues() {
false);
WriteSetting(QStringLiteral("custom_rtc"),
QVariant::fromValue<long long>(Settings::values.custom_rtc.value_or(0)), 0);
+ WriteBasicSetting(Settings::values.device_name);
}
WriteGlobalSetting(Settings::values.sound_index);