From b102815f1f458ebdfb688d836ba2e400dfcdb9a3 Mon Sep 17 00:00:00 2001 From: Subv Date: Thu, 19 Jul 2018 16:19:46 -0500 Subject: HLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers. We only emulate a single user id for now. --- src/core/hle/service/acc/acc.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 6bafb2dce..0b17c7d5d 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -95,16 +95,18 @@ void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) { void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); - constexpr std::array user_ids{DEFAULT_USER_ID}; - ctx.WriteBuffer(user_ids.data(), user_ids.size()); + // TODO(Subv): There is only one user for now. + const std::vector user_ids = {DEFAULT_USER_ID}; + ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128)); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); - constexpr std::array user_ids{DEFAULT_USER_ID}; - ctx.WriteBuffer(user_ids.data(), user_ids.size()); + // TODO(Subv): There is only one user for now. + const std::vector user_ids = {DEFAULT_USER_ID}; + ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128)); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); } -- cgit v1.2.3