Merge pull request #1615 from lioncash/input

configure_system: Contrain profile usernames to 32 characters
This commit is contained in:
bunnei 2018-11-01 19:10:26 -04:00 committed by GitHub
commit 1069eced84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 114 additions and 26 deletions

View file

@ -57,7 +57,8 @@ struct UUID {
};
static_assert(sizeof(UUID) == 16, "UUID is an invalid size!");
using ProfileUsername = std::array<u8, 0x20>;
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>;