Stub some account functions

This commit is contained in:
Dima 2022-11-02 20:38:33 +03:00 committed by Billy Laws
parent b209ae8e90
commit 413f162cf2
4 changed files with 27 additions and 6 deletions

View File

@ -90,8 +90,7 @@ namespace skyline::service::account {
return {};
}
Result IAccountServiceForApplication::IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u32>(0); // We don't want to lock the user
Result IAccountServiceForApplication::LoadOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
@ -103,6 +102,15 @@ namespace skyline::service::account {
}
}
Result IAccountServiceForApplication::IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u32>(0); // We don't want to lock the user
return {};
}
Result IAccountServiceForApplication::InitializeApplicationInfoV2(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
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

@ -66,15 +66,19 @@ namespace skyline {
Result StoreSaveDataThumbnail(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result LoadOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result ListOpenContextStoredUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @url https://switchbrew.org/wiki/Account_services#InitializeApplicationInfo
*/
Result InitializeApplicationInfo(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);
Result InitializeApplicationInfoV2(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IAccountServiceForApplication, GetUserCount),
SFUNC(0x1, IAccountServiceForApplication, GetUserExistence),
@ -86,9 +90,11 @@ namespace skyline {
SFUNC(0x64, IAccountServiceForApplication, InitializeApplicationInfoV0),
SFUNC(0x65, IAccountServiceForApplication, GetBaasAccountManagerForApplication),
SFUNC(0x6E, IAccountServiceForApplication, StoreSaveDataThumbnail),
SFUNC(0x82, IAccountServiceForApplication, LoadOpenContext),
SFUNC(0x83, IAccountServiceForApplication, ListOpenContextStoredUsers),
SFUNC(0x8C, IAccountServiceForApplication, InitializeApplicationInfo),
SFUNC(0x96, IAccountServiceForApplication, IsUserAccountSwitchLocked)
SFUNC(0x96, IAccountServiceForApplication, IsUserAccountSwitchLocked),
SFUNC(0xA0, IAccountServiceForApplication, InitializeApplicationInfoV2)
)
};
}

View File

@ -10,4 +10,8 @@ namespace skyline::service::account {
response.Push(false);
return {};
}
Result IManagerForApplication::StoreOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
}

View File

@ -19,8 +19,11 @@ namespace skyline::service::account {
*/
Result CheckAvailability(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
Result StoreOpenContext(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x0, IManagerForApplication, CheckAvailability)
SFUNC(0x0, IManagerForApplication, CheckAvailability),
SFUNC(0xA0, IManagerForApplication, StoreOpenContext)
)
};
}