summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-06-26 17:19:17 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-07-14 23:33:07 +0200
commit32b522b1fddf57006fdcc833bc1f5b18132275ee (patch)
treea95f207aff9e3f2a85f0cb7101ba6967d146bb6b /src/core/hle/service/acc/profile_manager.cpp
parentMerge pull request #8559 from liamwhite/waiter-list (diff)
downloadyuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.tar
yuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.tar.gz
yuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.tar.bz2
yuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.tar.lz
yuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.tar.xz
yuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.tar.zst
yuzu-32b522b1fddf57006fdcc833bc1f5b18132275ee.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 8118ead33..a58da4d5f 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -22,7 +22,7 @@ struct UserRaw {
UUID uuid2{};
u64 timestamp{};
ProfileUsername username{};
- ProfileData extra_data{};
+ UserData extra_data{};
};
static_assert(sizeof(UserRaw) == 0xC8, "UserRaw has incorrect size.");
@@ -263,7 +263,7 @@ UUID ProfileManager::GetLastOpenedUser() const {
/// Return the users profile base and the unknown arbitary data.
bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, ProfileBase& profile,
- ProfileData& data) const {
+ UserData& data) const {
if (GetProfileBase(index, profile)) {
data = profiles[*index].data;
return true;
@@ -272,15 +272,14 @@ bool ProfileManager::GetProfileBaseAndData(std::optional<std::size_t> index, Pro
}
/// Return the users profile base and the unknown arbitary data.
-bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile,
- ProfileData& data) const {
+bool ProfileManager::GetProfileBaseAndData(UUID uuid, ProfileBase& profile, UserData& data) const {
const auto idx = GetUserIndex(uuid);
return GetProfileBaseAndData(idx, profile, data);
}
/// Return the users profile base and the unknown arbitary data.
bool ProfileManager::GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile,
- ProfileData& data) const {
+ UserData& data) const {
return GetProfileBaseAndData(user.user_uuid, profile, data);
}
@@ -318,7 +317,7 @@ bool ProfileManager::SetProfileBase(UUID uuid, const ProfileBase& profile_new) {
}
bool ProfileManager::SetProfileBaseAndData(Common::UUID uuid, const ProfileBase& profile_new,
- const ProfileData& data_new) {
+ const UserData& data_new) {
const auto index = GetUserIndex(uuid);
if (index.has_value() && SetProfileBase(uuid, profile_new)) {
profiles[*index].data = data_new;