summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2018-11-01 19:10:26 -0400
committerGravatar GitHub2018-11-01 19:10:26 -0400
commit1069eced8482bd01be9fd305447ef94a82c4c999 (patch)
tree5ed2254962898473242829701edef6fd323c6b6d /src/core/hle
parentMerge pull request #1623 from Tinob/master (diff)
parentconfigure_system: Contrain profile usernames to 32 characters (diff)
downloadyuzu-1069eced8482bd01be9fd305447ef94a82c4c999.tar.gz
yuzu-1069eced8482bd01be9fd305447ef94a82c4c999.tar.xz
yuzu-1069eced8482bd01be9fd305447ef94a82c4c999.zip
Merge pull request #1615 from lioncash/input
configure_system: Contrain profile usernames to 32 characters
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/acc/profile_manager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h
index 1cd2e51b2..747c46c20 100644
--- a/src/core/hle/service/acc/profile_manager.h
+++ b/src/core/hle/service/acc/profile_manager.h
@@ -57,7 +57,8 @@ struct UUID {
57}; 57};
58static_assert(sizeof(UUID) == 16, "UUID is an invalid size!"); 58static_assert(sizeof(UUID) == 16, "UUID is an invalid size!");
59 59
60using ProfileUsername = std::array<u8, 0x20>; 60constexpr std::size_t profile_username_size = 32;
61using ProfileUsername = std::array<u8, profile_username_size>;
61using ProfileData = std::array<u8, MAX_DATA>; 62using ProfileData = std::array<u8, MAX_DATA>;
62using UserIDArray = std::array<UUID, MAX_USERS>; 63using UserIDArray = std::array<UUID, MAX_USERS>;
63 64