summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-27 22:36:23 +0100
committerGitHub <noreply@github.com>2018-11-27 22:36:23 +0100
commit3cc204aff87b48be4e3a8e5ab84aaf73ffde7136 (patch)
tree705b0d990b092ceccd999640b5f7e50f4b47b1b5 /src/core/hle/service/acc/profile_manager.cpp
parentMerge pull request #1812 from lioncash/nacp (diff)
parentprofile_manager: Save and load ProfileData from disk (diff)
downloadyuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.tar
yuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.tar.gz
yuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.tar.bz2
yuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.tar.lz
yuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.tar.xz
yuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.tar.zst
yuzu-3cc204aff87b48be4e3a8e5ab84aaf73ffde7136.zip
Diffstat (limited to 'src/core/hle/service/acc/profile_manager.cpp')
-rw-r--r--src/core/hle/service/acc/profile_manager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp
index 968263846..1316d0b07 100644
--- a/src/core/hle/service/acc/profile_manager.cpp
+++ b/src/core/hle/service/acc/profile_manager.cpp
@@ -18,7 +18,7 @@ struct UserRaw {
UUID uuid2;
u64 timestamp;
ProfileUsername username;
- INSERT_PADDING_BYTES(0x80);
+ ProfileData extra_data;
};
static_assert(sizeof(UserRaw) == 0xC8, "UserRaw has incorrect size.");
@@ -346,7 +346,7 @@ void ProfileManager::ParseUserSaveFile() {
continue;
}
- AddUser({user.uuid, user.username, user.timestamp, {}, false});
+ AddUser({user.uuid, user.username, user.timestamp, user.extra_data, false});
}
std::stable_partition(profiles.begin(), profiles.end(),
@@ -361,6 +361,7 @@ void ProfileManager::WriteUserSaveFile() {
raw.users[i].uuid2 = profiles[i].user_uuid;
raw.users[i].uuid = profiles[i].user_uuid;
raw.users[i].timestamp = profiles[i].creation_time;
+ raw.users[i].extra_data = profiles[i].data;
}
const auto raw_path =