summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/profile_manager.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-20 23:36:41 +0200
committerLioncash <mathew1800@gmail.com>2018-08-21 01:48:57 +0200
commitf9a26d468c2388269eb63c3baf6c35762c594932 (patch)
treedc2cae3d98b0aefab323c4f64f13ae82e5da7629 /src/core/hle/service/acc/profile_manager.h
parentprofile_manager: Make array parameter to CreateNewUser a const reference (diff)
downloadyuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar
yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.gz
yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.bz2
yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.lz
yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.xz
yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.tar.zst
yuzu-f9a26d468c2388269eb63c3baf6c35762c594932.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/acc/profile_manager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h
index 49dc3a6e3..d38f67188 100644
--- a/src/core/hle/service/acc/profile_manager.h
+++ b/src/core/hle/service/acc/profile_manager.h
@@ -78,19 +78,19 @@ static_assert(sizeof(ProfileBase) == 0x38, "ProfileBase is an invalid size");
class ProfileManager {
public:
ProfileManager(); // TODO(ogniK): Load from system save
- ResultCode AddUser(ProfileInfo user);
+ ResultCode AddUser(const ProfileInfo& user);
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;
+ boost::optional<size_t> GetUserIndex(const ProfileInfo& user) const;
bool GetProfileBase(boost::optional<size_t> index, ProfileBase& profile) const;
bool GetProfileBase(UUID uuid, ProfileBase& profile) const;
- bool GetProfileBase(ProfileInfo user, ProfileBase& profile) const;
+ bool GetProfileBase(const ProfileInfo& user, ProfileBase& profile) const;
bool GetProfileBaseAndData(boost::optional<size_t> index, ProfileBase& profile,
std::array<u8, MAX_DATA>& data) const;
bool GetProfileBaseAndData(UUID uuid, ProfileBase& profile,
std::array<u8, MAX_DATA>& data) const;
- bool GetProfileBaseAndData(ProfileInfo user, ProfileBase& profile,
+ bool GetProfileBaseAndData(const ProfileInfo& user, ProfileBase& profile,
std::array<u8, MAX_DATA>& data) const;
size_t GetUserCount() const;
size_t GetOpenUserCount() const;