aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/acc/acc.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-09-17 20:45:33 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-09-21 01:01:02 -0400
commit7a504a93650548412cdd41b75098c291be72161c (patch)
tree646533f7f54223b3eb9c530b23bef9178f53c615 /src/core/hle/service/acc/acc.cpp
parenta2eb44db825a892cc2863bd1f5d0352c273ff0f0 (diff)
acc: Stub LoadOpenContext
This is used in multiple games such as: - Clubhouse Games: 51 Worldwide Classics - Grandia HD Collection - XCOM 2 Collection - Baldur's Gate 1/2 - Dr Kawashima's Brain Training - Super Mario 3D All-Stars
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 eb54cb123..6b1613510 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -774,6 +774,17 @@ void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
}
+void Module::Interface::LoadOpenContext(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_ACC, "(STUBBED) called");
+
+ // This is similar to GetBaasAccountManagerForApplication
+ // This command is used concurrently with ListOpenContextStoredUsers
+ // TODO: Find the differences between this and GetBaasAccountManagerForApplication
+ IPC::ResponseBuilder rb{ctx, 2, 0, 1};
+ rb.Push(RESULT_SUCCESS);
+ rb.PushIpcInterface<IManagerForApplication>(profile_manager->GetLastOpenedUser());
+}
+
void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");