diff options
| author | 2024-02-16 21:07:03 -0500 | |
|---|---|---|
| committer | 2024-02-16 21:07:03 -0500 | |
| commit | dc2c302a84e4757b00c22c4ee0d2e7897840dd38 (patch) | |
| tree | 8eb6f1f35573abd1183a2231b64fbe4b2b271062 /src/frontend_common/config.cpp | |
| parent | android: Allow SettingsItems to use String or StringRes (diff) | |
| download | yuzu-dc2c302a84e4757b00c22c4ee0d2e7897840dd38.tar.gz yuzu-dc2c302a84e4757b00c22c4ee0d2e7897840dd38.tar.xz yuzu-dc2c302a84e4757b00c22c4ee0d2e7897840dd38.zip | |
config: Reset per-game profile name on load if empty
Diffstat (limited to 'src/frontend_common/config.cpp')
| -rw-r--r-- | src/frontend_common/config.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 2bebfeef9..95f8c8c36 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp | |||
| @@ -138,6 +138,7 @@ void Config::ReadPlayerValues(const std::size_t player_index) { | |||
| 138 | if (profile_name.empty()) { | 138 | if (profile_name.empty()) { |
| 139 | // Use the global input config | 139 | // Use the global input config |
| 140 | player = Settings::values.players.GetValue(true)[player_index]; | 140 | player = Settings::values.players.GetValue(true)[player_index]; |
| 141 | player.profile_name = ""; | ||
| 141 | return; | 142 | return; |
| 142 | } | 143 | } |
| 143 | player.profile_name = profile_name; | 144 | player.profile_name = profile_name; |