summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.h
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-08-11 17:51:31 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-08-11 17:51:31 +0200
commit2592e41301b39db27730b148e7dbfd41d83864c2 (patch)
treedd3595851c65c982757b58d438545edf8acc60ad /src/core/hle/service/acc/profile_manager.h
parentCode cleanup for profile manager (diff)
downloadyuzu-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.h3
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;