diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-24 19:30:07 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-04-25 14:07:57 +0200 |
commit | f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb (patch) | |
tree | 9a89f82fd9ac54d69bf7c4a2412689fe816aba41 /src/core/hle/service/acc/profile_manager.cpp | |
parent | mii: Implement IDatabaseService commands using MiiManager (diff) | |
download | yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.gz yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.bz2 yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.lz yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.xz yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.zst yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/acc/profile_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/acc/profile_manager.cpp b/src/core/hle/service/acc/profile_manager.cpp index 767523dbc..49aa5908b 100644 --- a/src/core/hle/service/acc/profile_manager.cpp +++ b/src/core/hle/service/acc/profile_manager.cpp @@ -13,7 +13,7 @@ namespace Service::Account { -using namespace Common; +using Common::UUID; struct UserRaw { UUID uuid; @@ -199,7 +199,7 @@ bool ProfileManager::UserExists(UUID uuid) const { bool ProfileManager::UserExistsIndex(std::size_t index) const { if (index >= MAX_USERS) return false; - return profiles[index].user_uuid.uuid != INVALID_UUID; + return profiles[index].user_uuid.uuid != Common::INVALID_UUID; } /// Opens a specific user @@ -293,7 +293,7 @@ bool ProfileManager::RemoveUser(UUID uuid) { bool ProfileManager::SetProfileBase(UUID uuid, const ProfileBase& profile_new) { const auto index = GetUserIndex(uuid); - if (!index || profile_new.user_uuid == UUID(INVALID_UUID)) { + if (!index || profile_new.user_uuid == UUID(Common::INVALID_UUID)) { return false; } @@ -324,7 +324,7 @@ void ProfileManager::ParseUserSaveFile() { } for (const auto& user : data.users) { - if (user.uuid == UUID(INVALID_UUID)) { + if (user.uuid == UUID(Common::INVALID_UUID)) { continue; } |