mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-27 00:34:20 +01:00
Stub functions in IAccountServiceForApplication:
- GetUserCount - InitializeApplicationInfo - IsUserAccountSwitchLocked
This commit is contained in:
parent
b41d8b7997
commit
647cb07dc8
@ -8,6 +8,11 @@
|
|||||||
namespace skyline::service::account {
|
namespace skyline::service::account {
|
||||||
IAccountServiceForApplication::IAccountServiceForApplication(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
|
IAccountServiceForApplication::IAccountServiceForApplication(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
|
||||||
|
|
||||||
|
Result IAccountServiceForApplication::GetUserCount(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
response.Push<u32>(1); // We only support one user currently
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
Result IAccountServiceForApplication::GetUserExistence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
Result IAccountServiceForApplication::GetUserExistence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
auto id{request.Pop<UserId>()};
|
auto id{request.Pop<UserId>()};
|
||||||
|
|
||||||
@ -76,4 +81,13 @@ namespace skyline::service::account {
|
|||||||
manager.RegisterService(SRVREG(IManagerForApplication), session, response);
|
manager.RegisterService(SRVREG(IManagerForApplication), session, response);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IAccountServiceForApplication::InitializeApplicationInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
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
|
||||||
|
return {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,11 @@ namespace skyline {
|
|||||||
public:
|
public:
|
||||||
IAccountServiceForApplication(const DeviceState &state, ServiceManager &manager);
|
IAccountServiceForApplication(const DeviceState &state, ServiceManager &manager);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Returns the amount of user accounts on the console
|
||||||
|
*/
|
||||||
|
Result GetUserCount(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Checks if the given user ID exists
|
* @brief Checks if the given user ID exists
|
||||||
*/
|
*/
|
||||||
@ -76,14 +81,28 @@ namespace skyline {
|
|||||||
*/
|
*/
|
||||||
Result GetBaasAccountManagerForApplication(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result GetBaasAccountManagerForApplication(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Returns if the user's account is locked or unlocked
|
||||||
|
*/
|
||||||
|
Result IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Provides information about the running application for account services to use
|
||||||
|
* @url https://switchbrew.org/wiki/Account_services#InitializeApplicationInfo
|
||||||
|
*/
|
||||||
|
Result InitializeApplicationInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
SERVICE_DECL(
|
SERVICE_DECL(
|
||||||
|
SFUNC(0x0, IAccountServiceForApplication, GetUserCount),
|
||||||
SFUNC(0x1, IAccountServiceForApplication, GetUserExistence),
|
SFUNC(0x1, IAccountServiceForApplication, GetUserExistence),
|
||||||
SFUNC(0x2, IAccountServiceForApplication, ListAllUsers),
|
SFUNC(0x2, IAccountServiceForApplication, ListAllUsers),
|
||||||
SFUNC(0x3, IAccountServiceForApplication, ListOpenUsers),
|
SFUNC(0x3, IAccountServiceForApplication, ListOpenUsers),
|
||||||
SFUNC(0x4, IAccountServiceForApplication, GetLastOpenedUser),
|
SFUNC(0x4, IAccountServiceForApplication, GetLastOpenedUser),
|
||||||
SFUNC(0x5, IAccountServiceForApplication, GetProfile),
|
SFUNC(0x5, IAccountServiceForApplication, GetProfile),
|
||||||
SFUNC(0x64, IAccountServiceForApplication, InitializeApplicationInfoV0),
|
SFUNC(0x64, IAccountServiceForApplication, InitializeApplicationInfoV0),
|
||||||
SFUNC(0x65, IAccountServiceForApplication, GetBaasAccountManagerForApplication)
|
SFUNC(0x65, IAccountServiceForApplication, GetBaasAccountManagerForApplication),
|
||||||
|
SFUNC(0x8C, IAccountServiceForApplication, InitializeApplicationInfo),
|
||||||
|
SFUNC(0x96, IAccountServiceForApplication, IsUserAccountSwitchLocked)
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user