summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-20 01:13:45 +0200
committerGitHub <noreply@github.com>2018-07-20 01:13:45 +0200
commit2aeb3355e491525e7210dfd44c191e90ac8bbdd4 (patch)
tree97a2ac60a62ad4ff0a249d016d3ee1fac740b144
parentMerge pull request #724 from lioncash/printf (diff)
parentHLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers. (diff)
downloadyuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.tar
yuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.tar.gz
yuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.tar.bz2
yuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.tar.lz
yuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.tar.xz
yuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.tar.zst
yuzu-2aeb3355e491525e7210dfd44c191e90ac8bbdd4.zip
-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);
}