Stub ListOpenContextStoredUsers

This commit is contained in:
Billy Laws 2022-10-30 16:37:10 +00:00
parent e7bab27d85
commit 021f82ef08
2 changed files with 11 additions and 1 deletions

View File

@ -95,6 +95,14 @@ namespace skyline::service::account {
return {};
}
Result IAccountServiceForApplication::ListOpenContextStoredUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
try {
return WriteUserList(request.outputBuf.at(0), {constant::DefaultUserId});
} catch (const std::out_of_range &) {
return result::InvalidInputBuffer;
}
}
Result IAccountServiceForApplication::IsUserRegistrationRequestPermitted(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u8>(false); // Registration isn't permitted via the application account service
return {};

View File

@ -71,8 +71,9 @@ namespace skyline {
*/
Result InitializeApplicationInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result ListOpenContextStoredUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IAccountServiceForApplication, GetUserCount),
@ -85,6 +86,7 @@ namespace skyline {
SFUNC(0x64, IAccountServiceForApplication, InitializeApplicationInfoV0),
SFUNC(0x65, IAccountServiceForApplication, GetBaasAccountManagerForApplication),
SFUNC(0x6E, IAccountServiceForApplication, StoreSaveDataThumbnail),
SFUNC(0x83, IAccountServiceForApplication, ListOpenContextStoredUsers),
SFUNC(0x8C, IAccountServiceForApplication, InitializeApplicationInfo),
SFUNC(0x96, IAccountServiceForApplication, IsUserAccountSwitchLocked)
)