summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-12-14 07:01:48 +0100
committerbunnei <bunneidev@gmail.com>2020-01-04 19:29:55 +0100
commit5135b74179e99507cc5eee374e76c3f0ac3ee717 (patch)
tree77779e89d0bc5977ca6528e20847525b14caf88d /src/core/hle/service/acc/profile_manager.cpp
parentMerge pull request #3247 from FernandoS27/remap-fix (diff)
downloadyuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.tar
yuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.tar.gz
yuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.tar.bz2
yuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.tar.lz
yuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.tar.xz
yuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.tar.zst
yuzu-5135b74179e99507cc5eee374e76c3f0ac3ee717.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 3e756e59e..eb8c81645 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -16,17 +16,17 @@ namespace Service::Account {
using Common::UUID;
struct UserRaw {
- UUID uuid;
- UUID uuid2;
- u64 timestamp;
- ProfileUsername username;
- ProfileData extra_data;
+ UUID uuid{Common::INVALID_UUID};
+ UUID uuid2{Common::INVALID_UUID};
+ u64 timestamp{};
+ ProfileUsername username{};
+ ProfileData extra_data{};
};
static_assert(sizeof(UserRaw) == 0xC8, "UserRaw has incorrect size.");
struct ProfileDataRaw {
INSERT_PADDING_BYTES(0x10);
- std::array<UserRaw, MAX_USERS> users;
+ std::array<UserRaw, MAX_USERS> users{};
};
static_assert(sizeof(ProfileDataRaw) == 0x650, "ProfileDataRaw has incorrect size.");
@@ -238,7 +238,7 @@ UserIDArray ProfileManager::GetOpenUsers() const {
std::transform(profiles.begin(), profiles.end(), output.begin(), [](const ProfileInfo& p) {
if (p.is_open)
return p.user_uuid;
- return UUID{};
+ return UUID{Common::INVALID_UUID};
});
std::stable_partition(output.begin(), output.end(), [](const UUID& uuid) { return uuid; });
return output;