diff options
| author | 2018-08-12 02:11:04 +1000 | |
|---|---|---|
| committer | 2018-08-12 02:11:04 +1000 | |
| commit | 448290bee43b49d7502269b185938d6e8c1aca03 (patch) | |
| tree | 832b11ec33b8641eafb86a693e3a1f4557c089ff /src | |
| parent | Added better explanations in the profile manager (diff) | |
| download | yuzu-448290bee43b49d7502269b185938d6e8c1aca03.tar.gz yuzu-448290bee43b49d7502269b185938d6e8c1aca03.tar.xz yuzu-448290bee43b49d7502269b185938d6e8c1aca03.zip | |
Removed un-needed count from ListOpenUsers and ListAllUsers
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index b94dda9ea..979f2f892 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp | |||
| @@ -153,17 +153,15 @@ void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) { | |||
| 153 | void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) { | 153 | void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) { |
| 154 | LOG_INFO(Service_ACC, "called"); | 154 | LOG_INFO(Service_ACC, "called"); |
| 155 | ctx.WriteBuffer(profile_manager->GetAllUsers()); | 155 | ctx.WriteBuffer(profile_manager->GetAllUsers()); |
| 156 | IPC::ResponseBuilder rb{ctx, 3}; | 156 | IPC::ResponseBuilder rb{ctx, 2}; |
| 157 | rb.Push(RESULT_SUCCESS); | 157 | rb.Push(RESULT_SUCCESS); |
| 158 | rb.Push<u32>(static_cast<u32>(profile_manager->GetUserCount())); | ||
| 159 | } | 158 | } |
| 160 | 159 | ||
| 161 | void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) { | 160 | void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) { |
| 162 | LOG_INFO(Service_ACC, "called"); | 161 | LOG_INFO(Service_ACC, "called"); |
| 163 | ctx.WriteBuffer(profile_manager->GetOpenUsers()); | 162 | ctx.WriteBuffer(profile_manager->GetOpenUsers()); |
| 164 | IPC::ResponseBuilder rb{ctx, 3}; | 163 | IPC::ResponseBuilder rb{ctx, 2}; |
| 165 | rb.Push(RESULT_SUCCESS); | 164 | rb.Push(RESULT_SUCCESS); |
| 166 | rb.Push<u32>(static_cast<u32>(profile_manager->GetOpenUserCount())); | ||
| 167 | } | 165 | } |
| 168 | 166 | ||
| 169 | void Module::Interface::GetLastOpenedUser(Kernel::HLERequestContext& ctx) { | 167 | void Module::Interface::GetLastOpenedUser(Kernel::HLERequestContext& ctx) { |