VERY experimental Nintendo Switch 2 emulator
C++
acc: ListOpenContextStoredUsers partial stub
David Marcecbbf7b72fbf5f
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cppindex 94d8c1fc6e..8ac856ec3a 100644--- a/src/core/hle/service/acc/acc.cpp+++ b/src/core/hle/service/acc/acc.cpp@@ -776,6 +776,15 @@ void Module::Interface::ListQualifiedUsers(Kernel::HLERequestContext& ctx) {rb.Push(RESULT_SUCCESS);}+void Module::Interface::ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx) {+ LOG_WARNING(Service_ACC, "(STUBBED) called");++ // TODO(ogniK): Handle open contexts+ ctx.WriteBuffer(profile_manager->GetOpenUsers());+ 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 havediff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.hindex 74ca39d6e2..d4c6395c65 100644--- a/src/core/hle/service/acc/acc.h+++ b/src/core/hle/service/acc/acc.h@@ -34,6 +34,7 @@ public:void IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx);void GetProfileEditor(Kernel::HLERequestContext& ctx);void ListQualifiedUsers(Kernel::HLERequestContext& ctx);+ void ListOpenContextStoredUsers(Kernel::HLERequestContext& ctx);private:ResultCode InitializeApplicationInfoBase();diff --git a/src/core/hle/service/acc/acc_su.cpp b/src/core/hle/service/acc/acc_su.cppindex 85620bde38..d2bb8c2c8e 100644--- a/src/core/hle/service/acc/acc_su.cpp+++ b/src/core/hle/service/acc/acc_su.cpp@@ -20,7 +20,7 @@ ACC_SU::ACC_SU(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p{6, nullptr, "GetProfileDigest"}, // 3.0.0+{50, &ACC_SU::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},{51, &ACC_SU::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},- {60, nullptr, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0+ {60, &ACC_SU::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0{99, nullptr, "DebugActivateOpenContextRetention"}, // 6.0.0+{100, nullptr, "GetUserRegistrationNotifier"},{101, nullptr, "GetUserStateChangeNotifier"},diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cppindex 49f6e20f1b..cb44e06b73 100644--- a/src/core/hle/service/acc/acc_u0.cpp+++ b/src/core/hle/service/acc/acc_u0.cpp@@ -20,7 +20,7 @@ ACC_U0::ACC_U0(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p{6, nullptr, "GetProfileDigest"}, // 3.0.0+{50, &ACC_U0::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},{51, &ACC_U0::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},- {60, nullptr, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0+ {60, &ACC_U0::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0{99, nullptr, "DebugActivateOpenContextRetention"}, // 6.0.0+{100, &ACC_U0::InitializeApplicationInfo, "InitializeApplicationInfo"},{101, &ACC_U0::GetBaasAccountManagerForApplication, "GetBaasAccountManagerForApplication"},@@ -30,7 +30,7 @@ ACC_U0::ACC_U0(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p{111, nullptr, "ClearSaveDataThumbnail"},{120, nullptr, "CreateGuestLoginRequest"},{130, nullptr, "LoadOpenContext"}, // 5.0.0+- {131, nullptr, "ListOpenContextStoredUsers"}, // 6.0.0++ {131, &ACC_U0::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 6.0.0+{140, &ACC_U0::InitializeApplicationInfoRestricted, "InitializeApplicationInfoRestricted"}, // 6.0.0+{141, &ACC_U0::ListQualifiedUsers, "ListQualifiedUsers"}, // 6.0.0+{150, &ACC_U0::IsUserAccountSwitchLocked, "IsUserAccountSwitchLocked"}, // 6.0.0+diff --git a/src/core/hle/service/acc/acc_u1.cpp b/src/core/hle/service/acc/acc_u1.cppindex f47004f84c..a4aa5316a9 100644--- a/src/core/hle/service/acc/acc_u1.cpp+++ b/src/core/hle/service/acc/acc_u1.cpp@@ -20,7 +20,7 @@ ACC_U1::ACC_U1(std::shared_ptr<Module> module, std::shared_ptr<ProfileManager> p{6, nullptr, "GetProfileDigest"}, // 3.0.0+{50, &ACC_U1::IsUserRegistrationRequestPermitted, "IsUserRegistrationRequestPermitted"},{51, &ACC_U1::TrySelectUserWithoutInteraction, "TrySelectUserWithoutInteraction"},- {60, nullptr, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0+ {60, &ACC_U1::ListOpenContextStoredUsers, "ListOpenContextStoredUsers"}, // 5.0.0 - 5.1.0{99, nullptr, "DebugActivateOpenContextRetention"}, // 6.0.0+{100, nullptr, "GetUserRegistrationNotifier"},{101, nullptr, "GetUserStateChangeNotifier"},