diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-14 23:13:14 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-14 23:13:17 +0100 |
commit | 9761936e02c710eb00247243d96d24c3f7a055ce (patch) | |
tree | 9fe47dd4467123dec81f106e43801219eb0b96f7 /src/core/hle/service | |
parent | profile_manager: Move UUID Format function definitions into the cpp file (diff) | |
download | yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.tar yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.tar.gz yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.tar.bz2 yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.tar.lz yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.tar.xz yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.tar.zst yuzu-9761936e02c710eb00247243d96d24c3f7a055ce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index b66720415..968263846 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -341,11 +341,12 @@ void ProfileManager::ParseUserSaveFile() { return; } - for (std::size_t i = 0; i < MAX_USERS; ++i) { - const auto& user = data.users[i]; + for (const auto& user : data.users) { + if (user.uuid == UUID(INVALID_UUID)) { + continue; + } - if (user.uuid != UUID(INVALID_UUID)) - AddUser({user.uuid, user.username, user.timestamp, {}, false}); + AddUser({user.uuid, user.username, user.timestamp, {}, false}); } std::stable_partition(profiles.begin(), profiles.end(), |