diff options
| author | David Marcec <dmarcecguzman@gmail.com> | 2018-08-09 01:09:12 +1000 |
|---|---|---|
| committer | David Marcec <dmarcecguzman@gmail.com> | 2018-08-09 01:09:12 +1000 |
| commit | 75169c75708d9f54297537b387182bee10ada9ab (patch) | |
| tree | 474dc8046e64ed4eeb57a10e99e93be835918e5b /src/core/hle/service/acc/profile_manager.h | |
| parent | 03d7faf58390216729eb828b08be7e5f0ef82727 (diff) | |
Inital pass of account backend implementation
This commit verified working on puyo
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); |
