mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
config: Reset per-game profile name on load if empty
This commit is contained in:
parent
a251f77556
commit
dc2c302a84
|
@ -138,6 +138,7 @@ void Config::ReadPlayerValues(const std::size_t player_index) {
|
||||||
if (profile_name.empty()) {
|
if (profile_name.empty()) {
|
||||||
// Use the global input config
|
// Use the global input config
|
||||||
player = Settings::values.players.GetValue(true)[player_index];
|
player = Settings::values.players.GetValue(true)[player_index];
|
||||||
|
player.profile_name = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
player.profile_name = profile_name;
|
player.profile_name = profile_name;
|
||||||
|
|
|
@ -90,6 +90,7 @@ void QtConfig::ReadQtPlayerValues(const std::size_t player_index) {
|
||||||
if (profile_name.empty()) {
|
if (profile_name.empty()) {
|
||||||
// Use the global input config
|
// Use the global input config
|
||||||
player = Settings::values.players.GetValue(true)[player_index];
|
player = Settings::values.players.GetValue(true)[player_index];
|
||||||
|
player.profile_name = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,7 @@ void SdlConfig::ReadSdlPlayerValues(const std::size_t player_index) {
|
||||||
if (profile_name.empty()) {
|
if (profile_name.empty()) {
|
||||||
// Use the global input config
|
// Use the global input config
|
||||||
player = Settings::values.players.GetValue(true)[player_index];
|
player = Settings::values.players.GetValue(true)[player_index];
|
||||||
|
player.profile_name = "";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue