mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 04:16:24 -05:00
Merge pull request #727 from Subv/acc_users
HLE/ACC: Write a single whole user id in ListAllUsers and ListOpenUsers.
This commit is contained in:
commit
2aeb3355e4
1 changed files with 6 additions and 4 deletions
|
@ -95,16 +95,18 @@ void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) {
|
||||||
|
|
||||||
void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) {
|
void Module::Interface::ListAllUsers(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_ACC, "(STUBBED) called");
|
LOG_WARNING(Service_ACC, "(STUBBED) called");
|
||||||
constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID};
|
// TODO(Subv): There is only one user for now.
|
||||||
ctx.WriteBuffer(user_ids.data(), user_ids.size());
|
const std::vector<u128> user_ids = {DEFAULT_USER_ID};
|
||||||
|
ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128));
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) {
|
void Module::Interface::ListOpenUsers(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_ACC, "(STUBBED) called");
|
LOG_WARNING(Service_ACC, "(STUBBED) called");
|
||||||
constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID};
|
// TODO(Subv): There is only one user for now.
|
||||||
ctx.WriteBuffer(user_ids.data(), user_ids.size());
|
const std::vector<u128> user_ids = {DEFAULT_USER_ID};
|
||||||
|
ctx.WriteBuffer(user_ids.data(), user_ids.size() * sizeof(u128));
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue