diff options
author | Andrew Pilley <anpilley@users.noreply.github.com> | 2024-01-18 03:14:05 +0100 |
---|---|---|
committer | Andrew Pilley <anpilley@users.noreply.github.com> | 2024-01-18 03:14:05 +0100 |
commit | 6536d29c61d08c1225d8c229632fd6c5ccb07933 (patch) | |
tree | 71e16cbbd4b8a1d63678516168c68beb8c532461 /src/core | |
parent | Allow -u to accept a username string in addition to index, and suppress the User selector even if settings requires it to be shown for one instance only. (diff) | |
download | yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.gz yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.bz2 yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.lz yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.xz yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.zst yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index aff97b999..29a10ad13 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; |