diff options
author | Liam <byteslice@airmail.cc> | 2024-02-22 03:05:30 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-22 05:00:01 +0100 |
commit | 0e74204aadb1753e402b333692d36b1bc7221463 (patch) | |
tree | ea3791615ffedad6d6c9d52f6519309a04b575d9 /src/core/hle/service/pctl/parental_control_service_factory.cpp | |
parent | pctl: move IParentalControlService (diff) | |
download | yuzu-0e74204aadb1753e402b333692d36b1bc7221463.tar yuzu-0e74204aadb1753e402b333692d36b1bc7221463.tar.gz yuzu-0e74204aadb1753e402b333692d36b1bc7221463.tar.bz2 yuzu-0e74204aadb1753e402b333692d36b1bc7221463.tar.lz yuzu-0e74204aadb1753e402b333692d36b1bc7221463.tar.xz yuzu-0e74204aadb1753e402b333692d36b1bc7221463.tar.zst yuzu-0e74204aadb1753e402b333692d36b1bc7221463.zip |
Diffstat (limited to 'src/core/hle/service/pctl/parental_control_service_factory.cpp')
-rw-r--r-- | src/core/hle/service/pctl/parental_control_service_factory.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/core/hle/service/pctl/parental_control_service_factory.cpp b/src/core/hle/service/pctl/parental_control_service_factory.cpp new file mode 100644 index 000000000..1427f5a96 --- /dev/null +++ b/src/core/hle/service/pctl/parental_control_service_factory.cpp @@ -0,0 +1,35 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "core/hle/service/ipc_helpers.h" +#include "core/hle/service/pctl/parental_control_service.h" +#include "core/hle/service/pctl/parental_control_service_factory.h" + +namespace Service::PCTL { + +IParentalControlServiceFactory::IParentalControlServiceFactory(Core::System& system_, + const char* name_, + Capability capability_) + : ServiceFramework{system_, name_}, capability{capability_} {} + +IParentalControlServiceFactory::~IParentalControlServiceFactory() = default; + +void IParentalControlServiceFactory::CreateService(HLERequestContext& ctx) { + LOG_DEBUG(Service_PCTL, "called"); + + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(ResultSuccess); + // TODO(ogniK): Get TID from process + + rb.PushIpcInterface<IParentalControlService>(system, capability); +} + +void IParentalControlServiceFactory::CreateServiceWithoutInitialize(HLERequestContext& ctx) { + LOG_DEBUG(Service_PCTL, "called"); + + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(ResultSuccess); + rb.PushIpcInterface<IParentalControlService>(system, capability); +} + +} // namespace Service::PCTL |