diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2018-08-08 17:09:12 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2018-08-08 17:09:12 +0200 |
commit | 75169c75708d9f54297537b387182bee10ada9ab (patch) | |
tree | 474dc8046e64ed4eeb57a10e99e93be835918e5b /src/core/hle/service/acc/profile_manager.h | |
parent | GetProfileBase and GetProfileBaseAndData added (diff) | |
download | yuzu-75169c75708d9f54297537b387182bee10ada9ab.tar yuzu-75169c75708d9f54297537b387182bee10ada9ab.tar.gz yuzu-75169c75708d9f54297537b387182bee10ada9ab.tar.bz2 yuzu-75169c75708d9f54297537b387182bee10ada9ab.tar.lz yuzu-75169c75708d9f54297537b387182bee10ada9ab.tar.xz yuzu-75169c75708d9f54297537b387182bee10ada9ab.tar.zst yuzu-75169c75708d9f54297537b387182bee10ada9ab.zip |
Diffstat (limited to 'src/core/hle/service/acc/profile_manager.h')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h index cb6239cc1..130041994 100644 --- a/src/core/hle/service/acc/profile_manager.h +++ b/src/core/hle/service/acc/profile_manager.h @@ -21,7 +21,7 @@ struct UUID { uuid[1] = hi; }; operator bool() const { - return uuid[0] != 0x0 && uuid[1] != 0x0; + return uuid[0] != 0x0 || uuid[1] != 0x0; } bool operator==(const UUID& rhs) { @@ -76,9 +76,10 @@ static_assert(sizeof(ProfileBase) == 0x38, "ProfileBase is an invalid size"); /// objects class ProfileManager { public: - ProfileManager() = default; // TODO(ogniK): Load from system save + ProfileManager(); // TODO(ogniK): Load from system save ResultCode AddUser(ProfileInfo user); ResultCode CreateNewUser(UUID uuid, std::array<u8, 0x20> username); + ResultCode CreateNewUser(UUID uuid, std::string username); size_t GetUserIndex(UUID uuid); size_t GetUserIndex(ProfileInfo user); bool GetProfileBase(size_t index, ProfileBase& profile); |