Stub IParentalControlService::Initialize

This is used in newer SDKs in favour of initialising on creation with
IParentalControlServiceFactory::CreateServiceOld.
This commit is contained in:
Billy Laws 2021-05-30 18:26:01 +01:00
parent af5ee96b9a
commit e1ca24d35f
3 changed files with 14 additions and 1 deletions

View File

@ -5,4 +5,8 @@
namespace skyline::service::pctl {
IParentalControlService::IParentalControlService(const DeviceState &state, ServiceManager &manager) : BaseService(state, manager) {}
Result IParentalControlService::Initialize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}
}

View File

@ -13,5 +13,14 @@ namespace skyline::service::pctl {
class IParentalControlService : public BaseService {
public:
IParentalControlService(const DeviceState &state, ServiceManager &manager);
/**
* @brief Initialises the parental control service instance
*/
Result Initialize(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
SERVICE_DECL(
SFUNC(0x1, IParentalControlService, Initialize)
)
};
}

View File

@ -15,7 +15,7 @@ namespace skyline::service::pctl {
IParentalControlServiceFactory(const DeviceState &state, ServiceManager &manager);
/**
* @brief Creates and initializes an IParentalControlService instance that can be used to read parental control configuration
* @brief Creates and initializes (if 0x0) an IParentalControlService instance that can be used to read parental control configuration
*/
Result CreateService(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);