summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/acc.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-19 23:19:46 +0200
committerSubv <subv2112@gmail.com>2018-07-19 23:19:46 +0200
commitb102815f1f458ebdfb688d836ba2e400dfcdb9a3 (patch)
treee81031da4878d69536a4cd8d6ad1355af4a3082c /src/core/hle/service/acc/acc.cpp
parentMerge pull request #720 from Subv/getentrytype_root (diff)
downloadyuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.tar
yuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.tar.gz
yuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.tar.bz2
yuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.tar.lz
yuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.tar.xz
yuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.tar.zst
yuzu-b102815f1f458ebdfb688d836ba2e400dfcdb9a3.zip
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
-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) {
void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
- constexpr std::array<u128, 10> 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<u128> 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<u128, 10> 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<u128> user_ids = {DEFAULT_USER_ID};
+ ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128));
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
}