diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-16 14:05:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-16 14:05:00 -0500 |
| commit | bbb202ceedf8c4054f6a602ad572ba8df33e315d (patch) | |
| tree | 8b51f7711e7b698ca712c24b854f88a0022e1d9c /src/yuzu/configuration/config.cpp | |
| parent | 789da737afe8e3b242d8adffb1444a663a78117d (diff) | |
| parent | c5f519e1e4d850ed582b073aff94cbf511f6b931 (diff) | |
Merge pull request #6354 from ogniK5377/device-name
Set: Allow setting device nickname
Diffstat (limited to 'src/yuzu/configuration/config.cpp')
| -rw-r--r-- | src/yuzu/configuration/config.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 90fb4b0a4..a8d47a2f9 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp @@ -783,6 +783,8 @@ 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, @@ -1405,6 +1407,7 @@ 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); |
