From a17813c4f4361894fa17a206250bb858a04e2b6b Mon Sep 17 00:00:00 2001 From: David Marcec Date: Wed, 29 Apr 2020 00:37:47 +1000 Subject: account: ListQualifiedUsers Closes #2844 --- src/core/hle/service/acc/acc.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/hle/service/acc/acc.cpp') diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index cfac8ca9a..9b5f4eb91 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -428,6 +428,15 @@ void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) { rb.PushIpcInterface(user_id, *profile_manager); } +void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_ACC, "called"); + + // All users should be qualified + ctx.WriteBuffer(profile_manager->GetAllUsers()); + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); +} + void Module::Interface::TrySelectUserWithoutInteraction(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_ACC, "called"); // A u8 is passed into this function which we can safely ignore. It's to determine if we have -- cgit v1.2.3 From fdbeb90bd0517236bc0ed726d368825eb2d1e4ea Mon Sep 17 00:00:00 2001 From: David Marcec Date: Wed, 29 Apr 2020 01:13:03 +1000 Subject: Updated comment to reflect ListQualifiedUsers better --- src/core/hle/service/acc/acc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/hle/service/acc/acc.cpp') diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 9b5f4eb91..4f4e1f083 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -431,7 +431,9 @@ void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) { void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_ACC, "called"); - // All users should be qualified + // All users should be qualified. We don't actually have parental control or anything to do with + // nintendo online currently. We're just going to assume the user running the game has access to + // the game regardless of parental control settings. ctx.WriteBuffer(profile_manager->GetAllUsers()); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); -- cgit v1.2.3