Explorar o código

Added missing ListAllUsers count

David Marcec %!s(int64=8) %!d(string=hai) anos
pai
achega
c3013c7c9c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/core/hle/service/acc/acc.cpp

+ 2 - 1
src/core/hle/service/acc/acc.cpp

@@ -150,8 +150,9 @@ void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) {
 void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) {
     LOG_INFO(Service_ACC, "called");
     ctx.WriteBuffer(profile_manager->GetAllUsers());
-    IPC::ResponseBuilder rb{ctx, 2};
+    IPC::ResponseBuilder rb{ctx, 3};
     rb.Push(RESULT_SUCCESS);
+    rb.Push<u32>(static_cast<u32>(profile_manager->GetUserCount()));
 }
 
 void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) {