summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-01 19:10:26 -0400
committerGitHub <noreply@github.com>2018-11-01 19:10:26 -0400
commit1069eced8482bd01be9fd305447ef94a82c4c999 (patch)
tree5ed2254962898473242829701edef6fd323c6b6d /src/core
parentcc1fe9329754925eedc5f84fc2f41ba968571640 (diff)
parenta6830e61b885bb181cbf2f8add82fdd980221002 (diff)
Merge pull request #1615 from lioncash/input
configure_system: Contrain profile usernames to 32 characters
Diffstat (limited to 'src/core')
-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 {
};
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>;