diff options
| author | 2024-01-17 18:14:05 -0800 | |
|---|---|---|
| committer | 2024-01-17 18:14:05 -0800 | |
| commit | 6536d29c61d08c1225d8c229632fd6c5ccb07933 (patch) | |
| tree | 71e16cbbd4b8a1d63678516168c68beb8c532461 /src/core | |
| parent | Allow -u to accept a username string in addition to index, and suppress the U... (diff) | |
| download | yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.gz yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.tar.xz yuzu-6536d29c61d08c1225d8c229632fd6c5ccb07933.zip | |
Update based on feedback
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) | |||
| 169 | std::optional<std::size_t> ProfileManager::GetUserIndex(const std::string& username) const { | 169 | std::optional<std::size_t> ProfileManager::GetUserIndex(const std::string& username) const { |
| 170 | const auto iter = | 170 | const auto iter = |
| 171 | std::find_if(profiles.begin(), profiles.end(), [&username](const ProfileInfo& p) { | 171 | std::find_if(profiles.begin(), profiles.end(), [&username](const ProfileInfo& p) { |
| 172 | const std::string pusername = Common::StringFromFixedZeroTerminatedBuffer( | 172 | const std::string profile_username = Common::StringFromFixedZeroTerminatedBuffer( |
| 173 | reinterpret_cast<const char*>(p.username.data()), p.username.size()); | 173 | reinterpret_cast<const char*>(p.username.data()), p.username.size()); |
| 174 | 174 | ||
| 175 | return username.compare(pusername) == 0; | 175 | return username.compare(profile_username) == 0; |
| 176 | }); | 176 | }); |
| 177 | if (iter == profiles.end()) { | 177 | if (iter == profiles.end()) { |
| 178 | return std::nullopt; | 178 | return std::nullopt; |