diff options
| author | bunnei <bunneidev@gmail.com> | 2018-11-27 16:36:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-27 16:36:23 -0500 |
| commit | 3cc204aff87b48be4e3a8e5ab84aaf73ffde7136 (patch) | |
| tree | 705b0d990b092ceccd999640b5f7e50f4b47b1b5 /src/core/hle/service/acc/profile_manager.cpp | |
| parent | bf055e14ab17a3fdc21be2be2c2ce852103980c7 (diff) | |
| parent | dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338 (diff) | |
Merge pull request #1802 from DarkLordZach/user-data-storage
profile_manager: Save and load ProfileData from disk
Diffstat (limited to 'src/core/hle/service/acc/profile_manager.cpp')
| -rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 5 |
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 = |
