summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-09-24 11:21:25 -0700
committerGravatar GitHub2020-09-24 11:21:25 -0700
commitfa4294cc6f293548bbe167a67dec388d27fd5e25 (patch)
treed04da8602c6786bb1a4b021f4cb02017315c1f5e
parentMerge pull request #4674 from ReinUsesLisp/timeline-semaphores (diff)
parentacc: Stub LoadOpenContext (diff)
downloadyuzu-fa4294cc6f293548bbe167a67dec388d27fd5e25.tar.gz
yuzu-fa4294cc6f293548bbe167a67dec388d27fd5e25.tar.xz
yuzu-fa4294cc6f293548bbe167a67dec388d27fd5e25.zip
Merge pull request #4678 from Morph1984/LoadOpenContext-partial-impl
acc: Partially implement LoadOpenContext
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/acc/acc.cpp11
-rw-r--r--src/core/hle/service/acc/acc.h1
-rw-r--r--src/core/hle/service/acc/acc_u0.cpp2
3 files changed, 13 insertions, 1 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) {
774 rb.Push(RESULT_SUCCESS); 774 rb.Push(RESULT_SUCCESS);
775} 775}
776 776
777void Module::Interface::LoadOpenContext(Kernel::HLERequestContext& ctx) {
778 LOG_WARNING(Service_ACC, "(STUBBED) called");
779
780 // This is similar to GetBaasAccountManagerForApplication
781 // This command is used concurrently with ListOpenContextStoredUsers
782 // TODO: Find the differences between this and GetBaasAccountManagerForApplication
783 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
784 rb.Push(RESULT_SUCCESS);
785 rb.PushIpcInterface<IManagerForApplication>(profile_manager->GetLastOpenedUser());
786}
787
777void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx) { 788void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx) {
778 LOG_WARNING(Service_ACC, "(STUBBED) called"); 789 LOG_WARNING(Service_ACC, "(STUBBED) called");
779 790
diff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.h
index d4c6395c6..c611efd89 100644
--- a/src/core/hle/service/acc/acc.h
+++ b/src/core/hle/service/acc/acc.h
@@ -34,6 +34,7 @@ public:
34 void IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx); 34 void IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx);
35 void GetProfileEditor(Kernel::HLERequestContext& ctx); 35 void GetProfileEditor(Kernel::HLERequestContext& ctx);
36 void ListQualifiedUsers(Kernel::HLERequestContext& ctx); 36 void ListQualifiedUsers(Kernel::HLERequestContext& ctx);
37 void LoadOpenContext(Kernel::HLERequestContext& ctx);
37 void ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx); 38 void ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx);
38 39
39 private: 40 private:
diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cpp
index cb44e06b7..75a24f8f5 100644
--- a/src/core/hle/service/acc/acc_u0.cpp
+++ b/src/core/hle/service/acc/acc_u0.cpp
@@ -29,7 +29,7 @@ ACC_U0::ACC_U0(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p
29 {110, nullptr, "StoreSaveDataThumbnail"}, 29 {110, nullptr, "StoreSaveDataThumbnail"},
30 {111, nullptr, "ClearSaveDataThumbnail"}, 30 {111, nullptr, "ClearSaveDataThumbnail"},
31 {120, nullptr, "CreateGuestLoginRequest"}, 31 {120, nullptr, "CreateGuestLoginRequest"},
32 {130, nullptr, "LoadOpenContext"}, // 5.0.0+ 32 {130, &ACC_U0::LoadOpenContext, "LoadOpenContext"}, // 5.0.0+
33 {131, &ACC_U0::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 6.0.0+ 33 {131, &ACC_U0::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 6.0.0+
34 {140, &ACC_U0::InitializeApplicationInfoRestricted, "InitializeApplicationInfoRestricted"}, // 6.0.0+ 34 {140, &ACC_U0::InitializeApplicationInfoRestricted, "InitializeApplicationInfoRestricted"}, // 6.0.0+
35 {141, &ACC_U0::ListQualifiedUsers, "ListQualifiedUsers"}, // 6.0.0+ 35 {141, &ACC_U0::ListQualifiedUsers, "ListQualifiedUsers"}, // 6.0.0+