diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-20 23:32:23 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-21 01:48:57 +0200 |
commit | 1277556c69a29a6479815b16e3e1707f7e53a422 (patch) | |
tree | c381cc347ca8a5bc2712ec482148386762995c92 /src | |
parent | profile_manager: Remove unnecessary static (diff) | |
download | yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.gz yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.bz2 yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.lz yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.xz yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.tar.zst yuzu-1277556c69a29a6479815b16e3e1707f7e53a422.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/acc/profile_manager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index 9440dc555..e1ab0e559 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -62,7 +62,7 @@ ResultCode ProfileManager::AddUser(ProfileInfo user) { /// Create a new user on the system. If the uuid of the user already exists, the user is not /// created. -ResultCode ProfileManager::CreateNewUser(UUID uuid, std::array<u8, 0x20>& username) { +ResultCode ProfileManager::CreateNewUser(UUID uuid, const std::array<u8, 0x20>& username) { if (user_count == MAX_USERS) { return ERROR_TOO_MANY_USERS; } diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h index d4a2f4116..49dc3a6e3 100644 --- a/src/core/hle/service/acc/profile_manager.h +++ b/src/core/hle/service/acc/profile_manager.h @@ -79,7 +79,7 @@ class ProfileManager { public: ProfileManager(); // TODO(ogniK): Load from system save ResultCode AddUser(ProfileInfo user); - ResultCode CreateNewUser(UUID uuid, std::array<u8, 0x20>& username); + ResultCode CreateNewUser(UUID uuid, const std::array<u8, 0x20>& username); ResultCode CreateNewUser(UUID uuid, const std::string& username); boost::optional<size_t> GetUserIndex(const UUID& uuid) const; boost::optional<size_t> GetUserIndex(ProfileInfo user) const; |