summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/acc/acc.cpp10
1 files changed, 6 insertions, 4 deletions
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) {
95 95
96void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) { 96void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) {
97 LOG_WARNING(Service_ACC, "(STUBBED) called"); 97 LOG_WARNING(Service_ACC, "(STUBBED) called");
98 constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID}; 98 // TODO(Subv): There is only one user for now.
99 ctx.WriteBuffer(user_ids.data(), user_ids.size()); 99 const std::vector<u128> user_ids = {DEFAULT_USER_ID};
100 ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128));
100 IPC::ResponseBuilder rb{ctx, 2}; 101 IPC::ResponseBuilder rb{ctx, 2};
101 rb.Push(RESULT_SUCCESS); 102 rb.Push(RESULT_SUCCESS);
102} 103}
103 104
104void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) { 105void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) {
105 LOG_WARNING(Service_ACC, "(STUBBED) called"); 106 LOG_WARNING(Service_ACC, "(STUBBED) called");
106 constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID}; 107 // TODO(Subv): There is only one user for now.
107 ctx.WriteBuffer(user_ids.data(), user_ids.size()); 108 const std::vector<u128> user_ids = {DEFAULT_USER_ID};
109 ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128));
108 IPC::ResponseBuilder rb{ctx, 2}; 110 IPC::ResponseBuilder rb{ctx, 2};
109 rb.Push(RESULT_SUCCESS); 111 rb.Push(RESULT_SUCCESS);
110} 112}