summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-26 23:11:12 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-26 23:11:12 +0100
commitdac0c33fd219e7f3fadbb85e0fcd2005f8f9c338 (patch)
tree285accc2e3341050c3abb14dcf2aaeff6cb53e04 /src/core/hle/service/acc/profile_manager.h
parentMerge pull request #1641 from DarkLordZach/sm-register-unregister (diff)
downloadyuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.tar
yuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.tar.gz
yuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.tar.bz2
yuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.tar.lz
yuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.tar.xz
yuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.tar.zst
yuzu-dac0c33fd219e7f3fadbb85e0fcd2005f8f9c338.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/acc/profile_manager.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h
index d2d8e6c6b..c4ce2e0b3 100644
--- a/src/core/hle/service/acc/profile_manager.h
+++ b/src/core/hle/service/acc/profile_manager.h
@@ -13,7 +13,6 @@
namespace Service::Account {
constexpr std::size_t MAX_USERS = 8;
-constexpr std::size_t MAX_DATA = 128;
constexpr u128 INVALID_UUID{{0, 0}};
struct UUID {
@@ -50,9 +49,20 @@ static_assert(sizeof(UUID) == 16, "UUID is an invalid size!");
constexpr std::size_t profile_username_size = 32;
using ProfileUsername = std::array<u8, profile_username_size>;
-using ProfileData = std::array<u8, MAX_DATA>;
using UserIDArray = std::array<UUID, MAX_USERS>;
+/// Contains extra data related to a user.
+/// TODO: RE this structure
+struct ProfileData {
+ INSERT_PADDING_WORDS(1);
+ u32 icon_id;
+ u8 bg_color_id;
+ INSERT_PADDING_BYTES(0x7);
+ INSERT_PADDING_BYTES(0x10);
+ INSERT_PADDING_BYTES(0x60);
+};
+static_assert(sizeof(ProfileData) == 0x80, "ProfileData structure has incorrect size");
+
/// This holds general information about a users profile. This is where we store all the information
/// based on a specific user
struct ProfileInfo {