VERY experimental Nintendo Switch 2 emulator
C++
Update based on feedback
Andrew Pilleyd523e188e609
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cppindex aff97b9997..29a10ad13b 100644--- a/src/core/hle/service/acc/profile_manager.cpp+++ b/src/core/hle/service/acc/profile_manager.cpp@@ -169,10 +169,10 @@ std::optional<std::size_t> ProfileManager::GetUserIndex(const ProfileInfo& user)std::optional<std::size_t> ProfileManager::GetUserIndex(const std::string& username) const {const auto iter =std::find_if(profiles.begin(), profiles.end(), [&username](const ProfileInfo& p) {- const std::string pusername = Common::StringFromFixedZeroTerminatedBuffer(+ const std::string profile_username = Common::StringFromFixedZeroTerminatedBuffer(reinterpret_cast<const char*>(p.username.data()), p.username.size());- return username.compare(pusername) == 0;+ return username.compare(profile_username) == 0;});if (iter == profiles.end()) {return std::nullopt;