diff options
| author | mailwl <mailwl@gmail.com> | 2018-04-24 18:08:23 +0300 |
|---|---|---|
| committer | mailwl <mailwl@gmail.com> | 2018-04-25 09:02:27 +0300 |
| commit | 2ba4e2263c6e0e4d7bbb92cb203fdeb758a2637e (patch) | |
| tree | 179c4648548eae85beb4c869c01c41cea2c23fe5 /src/core/hle/service/pctl/pctl.cpp | |
| parent | ea3151f475e170eaaec3ded306a0fe5c1e5944db (diff) | |
Service/PCTL: convert to module, add services, stub
PCTL::CreateServiceWithoutInitialize and IParentalControlService::Initialize, required by Kirby Star Allies
Diffstat (limited to 'src/core/hle/service/pctl/pctl.cpp')
| -rw-r--r-- | src/core/hle/service/pctl/pctl.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cpp index 6ee81866d..de2741d66 100644 --- a/src/core/hle/service/pctl/pctl.cpp +++ b/src/core/hle/service/pctl/pctl.cpp @@ -3,12 +3,15 @@ // Refer to the license.txt file included. #include "core/hle/service/pctl/pctl.h" -#include "core/hle/service/pctl/pctl_a.h" namespace Service::PCTL { -void InstallInterfaces(SM::ServiceManager& service_manager) { - std::make_shared<PCTL_A>()->InstallAsService(service_manager); +PCTL::PCTL(std::shared_ptr<Module> module, const char* name) + : Module::Interface(std::move(module), name) { + static const FunctionInfo functions[] = { + {0, &PCTL::CreateService, "CreateService"}, + {1, &PCTL::CreateServiceWithoutInitialize, "CreateServiceWithoutInitialize"}, + }; + RegisterHandlers(functions); } - } // namespace Service::PCTL |
