diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-09-22 17:52:37 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-09-22 17:59:00 -0400 |
| commit | 40314cc58646e9e91e961e0d82b7d1b53bd839a0 (patch) | |
| tree | 17ec58af41507fc0edff29325b528ac4029d599b /src/core/hle/service/acc/acc.cpp | |
| parent | 7b22d61fb1b18d20bf16d940b0002d3668697166 (diff) | |
common/uuid: Add validity checking functions to interface
Given we have a function to invalidate, we should also have ones to
query the validity. Also makes the code more straightforward to read.
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 6d9ec0a8a..689b36056 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -929,8 +929,7 @@ void Module::Interface::TrySelectUserWithoutInteraction(Kernel::HLERequestContex } const auto user_list = profile_manager->GetAllUsers(); - if (std::all_of(user_list.begin(), user_list.end(), - [](const auto& user) { return user.uuid == Common::INVALID_UUID; })) { + if (std::ranges::all_of(user_list, [](const auto& user) { return user.IsInvalid(); })) { rb.Push(ResultUnknown); // TODO(ogniK): Find the correct error code rb.PushRaw<u128>(Common::INVALID_UUID); return; |
