diff options
| author | 2018-12-24 13:30:07 -0500 | |
|---|---|---|
| committer | 2019-04-25 08:07:57 -0400 | |
| commit | f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb (patch) | |
| tree | 9a89f82fd9ac54d69bf7c4a2412689fe816aba41 /src/core/hle/service/acc | |
| parent | mii: Implement IDatabaseService commands using MiiManager (diff) | |
| download | yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.gz yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.tar.xz yuzu-f0db2e3ef36a77f2f3eaf2dca15ddfe8851edecb.zip | |
mii_manager: Cleanup and optimization
Diffstat (limited to 'src/core/hle/service/acc')
| -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 @@ | |||
| 13 | 13 | ||
| 14 | namespace Service::Account { | 14 | namespace Service::Account { |
| 15 | 15 | ||
| 16 | using namespace Common; | 16 | using Common::UUID; |
| 17 | 17 | ||
| 18 | struct UserRaw { | 18 | struct UserRaw { |
| 19 | UUID uuid; | 19 | UUID uuid; |
| @@ -199,7 +199,7 @@ bool ProfileManager::UserExists(UUID uuid) const { | |||
| 199 | bool ProfileManager::UserExistsIndex(std::size_t index) const { | 199 | bool ProfileManager::UserExistsIndex(std::size_t index) const { |
| 200 | if (index >= MAX_USERS) | 200 | if (index >= MAX_USERS) |
| 201 | return false; | 201 | return false; |
| 202 | return profiles[index].user_uuid.uuid != INVALID_UUID; | 202 | return profiles[index].user_uuid.uuid != Common::INVALID_UUID; |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | /// Opens a specific user | 205 | /// Opens a specific user |
| @@ -293,7 +293,7 @@ bool ProfileManager::RemoveUser(UUID uuid) { | |||
| 293 | 293 | ||
| 294 | bool ProfileManager::SetProfileBase(UUID uuid, const ProfileBase& profile_new) { | 294 | bool ProfileManager::SetProfileBase(UUID uuid, const ProfileBase& profile_new) { |
| 295 | const auto index = GetUserIndex(uuid); | 295 | const auto index = GetUserIndex(uuid); |
| 296 | if (!index || profile_new.user_uuid == UUID(INVALID_UUID)) { | 296 | if (!index || profile_new.user_uuid == UUID(Common::INVALID_UUID)) { |
| 297 | return false; | 297 | return false; |
| 298 | } | 298 | } |
| 299 | 299 | ||
| @@ -324,7 +324,7 @@ void ProfileManager::ParseUserSaveFile() { | |||
| 324 | } | 324 | } |
| 325 | 325 | ||
| 326 | for (const auto& user : data.users) { | 326 | for (const auto& user : data.users) { |
| 327 | if (user.uuid == UUID(INVALID_UUID)) { | 327 | if (user.uuid == UUID(Common::INVALID_UUID)) { |
| 328 | continue; | 328 | continue; |
| 329 | } | 329 | } |
| 330 | 330 | ||