mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 11:25:07 +01:00
Cleanup account services and stub StoreSaveDataThumbnail
This commit is contained in:
parent
7d30ac0cd8
commit
543ac3042e
@ -86,6 +86,10 @@ namespace skyline::service::account {
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result IAccountServiceForApplication::StoreSaveDataThumbnail(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
Result IAccountServiceForApplication::IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
Result IAccountServiceForApplication::IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
response.Push<u32>(0); // We don't want to lock the user
|
response.Push<u32>(0); // We don't want to lock the user
|
||||||
return {};
|
return {};
|
||||||
|
@ -40,63 +40,39 @@ 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);
|
Result GetUserCount(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Checks if the given user ID exists
|
|
||||||
*/
|
|
||||||
Result GetUserExistence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result GetUserExistence(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Returns a list of all user accounts on the console
|
|
||||||
*/
|
|
||||||
Result ListAllUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result ListAllUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Returns a list of all open user accounts on the console
|
|
||||||
*/
|
|
||||||
Result ListOpenUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result ListOpenUsers(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Returns the user ID of the last active user on the console
|
|
||||||
*/
|
|
||||||
Result GetLastOpenedUser(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result GetLastOpenedUser(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#InitializeApplicationInfoV0
|
|
||||||
*/
|
|
||||||
Result InitializeApplicationInfoV0(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Returns a handle to an IProfile which can be used for reading user information
|
|
||||||
*/
|
|
||||||
Result GetProfile(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result GetProfile(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns a handle to an IManagerForApplication which can be used for reading Nintendo Online info
|
* @url https://switchbrew.org/wiki/Account_services#IsUserRegistrationRequestPermitted
|
||||||
*/
|
*/
|
||||||
|
Result IsUserRegistrationRequestPermitted(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @url https://switchbrew.org/wiki/Account_services#InitializeApplicationInfoV0
|
||||||
|
*/
|
||||||
|
Result InitializeApplicationInfoV0(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
Result GetBaasAccountManagerForApplication(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result GetBaasAccountManagerForApplication(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
Result StoreSaveDataThumbnail(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
|
* @url https://switchbrew.org/wiki/Account_services#InitializeApplicationInfo
|
||||||
*/
|
*/
|
||||||
Result InitializeApplicationInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
Result InitializeApplicationInfo(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
|
|
||||||
/**
|
Result IsUserAccountSwitchLocked(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
||||||
* @brief Returns if the user registration request is permitted or not
|
|
||||||
* @url https://switchbrew.org/wiki/Account_services#IsUserRegistrationRequestPermitted
|
|
||||||
*/
|
|
||||||
Result IsUserRegistrationRequestPermitted(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
|
|
||||||
|
|
||||||
SERVICE_DECL(
|
SERVICE_DECL(
|
||||||
SFUNC(0x0, IAccountServiceForApplication, GetUserCount),
|
SFUNC(0x0, IAccountServiceForApplication, GetUserCount),
|
||||||
@ -108,6 +84,7 @@ namespace skyline {
|
|||||||
SFUNC(0x32, IAccountServiceForApplication, IsUserRegistrationRequestPermitted),
|
SFUNC(0x32, IAccountServiceForApplication, IsUserRegistrationRequestPermitted),
|
||||||
SFUNC(0x64, IAccountServiceForApplication, InitializeApplicationInfoV0),
|
SFUNC(0x64, IAccountServiceForApplication, InitializeApplicationInfoV0),
|
||||||
SFUNC(0x65, IAccountServiceForApplication, GetBaasAccountManagerForApplication),
|
SFUNC(0x65, IAccountServiceForApplication, GetBaasAccountManagerForApplication),
|
||||||
|
SFUNC(0x6E, IAccountServiceForApplication, StoreSaveDataThumbnail),
|
||||||
SFUNC(0x8C, IAccountServiceForApplication, InitializeApplicationInfo),
|
SFUNC(0x8C, IAccountServiceForApplication, InitializeApplicationInfo),
|
||||||
SFUNC(0x96, IAccountServiceForApplication, IsUserAccountSwitchLocked)
|
SFUNC(0x96, IAccountServiceForApplication, IsUserAccountSwitchLocked)
|
||||||
)
|
)
|
||||||
|
@ -7,6 +7,7 @@ namespace skyline::service::account {
|
|||||||
IManagerForApplication::IManagerForApplication(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
|
IManagerForApplication::IManagerForApplication(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
|
||||||
|
|
||||||
Result IManagerForApplication::CheckAvailability(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
Result IManagerForApplication::CheckAvailability(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
|
||||||
|
response.Push(false);
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user