diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-08-11 17:51:31 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-08-11 17:51:31 +0200 |
commit | 2592e41301b39db27730b148e7dbfd41d83864c2 (patch) | |
tree | dd3595851c65c982757b58d438545edf8acc60ad /src/core/hle/service/acc/profile_manager.h | |
parent | Code cleanup for profile manager (diff) | |
download | yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.tar yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.tar.gz yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.tar.bz2 yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.tar.lz yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.tar.xz yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.tar.zst yuzu-2592e41301b39db27730b148e7dbfd41d83864c2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h index d86a7a226..908519095 100644 --- a/src/core/hle/service/acc/profile_manager.h +++ b/src/core/hle/service/acc/profile_manager.h @@ -42,6 +42,8 @@ struct UUID { uuid[1] = (static_cast<u64>(std::rand()) << 32) | std::rand(); return *this; } + + // Set the UUID to {0,0} to be considered an invalid user void Invalidate() { uuid = INVALID_UUID; } @@ -66,6 +68,7 @@ struct ProfileBase { u64_le timestamp; std::array<u8, 0x20> username; + // Zero out all the fields to make the profile slot considered "Empty" void Invalidate() { user_uuid.Invalidate(); timestamp = 0; |