diff options
| author | bunnei <bunneidev@gmail.com> | 2020-05-01 22:05:37 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-01 22:05:37 -0400 |
| commit | 224cf3075ce68b85cf5b20c8e58b9d9922fb4e04 (patch) | |
| tree | 920d8587063ecc08ee51b1ba6dade18bc5c6af02 /src/core/hle/service/acc/acc.cpp | |
| parent | 3f4cabfd4d9de981c8f68b7e6832ebf1eea2f841 (diff) | |
| parent | fdbeb90bd0517236bc0ed726d368825eb2d1e4ea (diff) | |
Merge pull request #3812 from ogniK5377/lisst-qualified-users
account: ListQualifiedUsers
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 11 |
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 |
