VERY experimental Nintendo Switch 2 emulator
C++
config: Reset per-game profile name on load if empty
t895f21569a4ebb3
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cppindex 2bebfeef9c..95f8c8c369 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) {if (profile_name.empty()) {// Use the global input configplayer = Settings::values.players.GetValue(true)[player_index];+ player.profile_name = "";return;}player.profile_name = profile_name;diff --git a/src/yuzu/configuration/qt_config.cpp b/src/yuzu/configuration/qt_config.cppindex 1051031f27..37951b9c84 100644--- a/src/yuzu/configuration/qt_config.cpp+++ b/src/yuzu/configuration/qt_config.cpp@@ -90,6 +90,7 @@ void QtConfig::ReadQtPlayerValues(const std::size_t player_index) {if (profile_name.empty()) {// Use the global input configplayer = Settings::values.players.GetValue(true)[player_index];+ player.profile_name = "";return;}}diff --git a/src/yuzu_cmd/sdl_config.cpp b/src/yuzu_cmd/sdl_config.cppindex 995114510a..6e0f254b6b 100644--- a/src/yuzu_cmd/sdl_config.cpp+++ b/src/yuzu_cmd/sdl_config.cpp@@ -103,6 +103,7 @@ void SdlConfig::ReadSdlPlayerValues(const std::size_t player_index) {if (profile_name.empty()) {// Use the global input configplayer = Settings::values.players.GetValue(true)[player_index];+ player.profile_name = "";return;}}