summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/pctl/pctl.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-25 21:51:43 +0200
committerGitHub <noreply@github.com>2018-04-25 21:51:43 +0200
commit23d68a07dc75a527590ea3c86a4b767554a69777 (patch)
treea72c0c59d5798f98f3629745124853fbf0b79627 /src/core/hle/service/pctl/pctl.cpp
parentMerge pull request #397 from lioncash/core (diff)
parentService/PCTL: convert to module, add services, stub (diff)
downloadyuzu-23d68a07dc75a527590ea3c86a4b767554a69777.tar
yuzu-23d68a07dc75a527590ea3c86a4b767554a69777.tar.gz
yuzu-23d68a07dc75a527590ea3c86a4b767554a69777.tar.bz2
yuzu-23d68a07dc75a527590ea3c86a4b767554a69777.tar.lz
yuzu-23d68a07dc75a527590ea3c86a4b767554a69777.tar.xz
yuzu-23d68a07dc75a527590ea3c86a4b767554a69777.tar.zst
yuzu-23d68a07dc75a527590ea3c86a4b767554a69777.zip
Diffstat (limited to 'src/core/hle/service/pctl/pctl.cpp')
-rw-r--r--src/core/hle/service/pctl/pctl.cpp11
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