summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/acc/acc.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-02 04:05:37 +0200
committerGitHub <noreply@github.com>2020-05-02 04:05:37 +0200
commit224cf3075ce68b85cf5b20c8e58b9d9922fb4e04 (patch)
tree920d8587063ecc08ee51b1ba6dade18bc5c6af02 /src/core/hle/service/acc/acc.cpp
parentMerge pull request #3857 from ogniK5377/GetGpuTime-StackCorruption (diff)
parentUpdated comment to reflect ListQualifiedUsers better (diff)
downloadyuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.tar
yuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.tar.gz
yuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.tar.bz2
yuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.tar.lz
yuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.tar.xz
yuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.tar.zst
yuzu-224cf3075ce68b85cf5b20c8e58b9d9922fb4e04.zip
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
-rw-r--r--src/core/hle/service/acc/acc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index cfac8ca9a..4f4e1f083 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -428,6 +428,17 @@ void Module::Interface::GetProfileEditor(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IProfileEditor>(user_id, *profile_manager);
}
+void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_ACC, "called");
+
+ // 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);
+}
+
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