aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/pctl/pctl.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-25 15:51:43 -0400
committerGitHub <noreply@github.com>2018-04-25 15:51:43 -0400
commit23d68a07dc75a527590ea3c86a4b767554a69777 (patch)
treea72c0c59d5798f98f3629745124853fbf0b79627 /src/core/hle/service/pctl/pctl.cpp
parent60746e4e5209677ab9b6de66d34bd2a71d27a3d6 (diff)
parent2ba4e2263c6e0e4d7bbb92cb203fdeb758a2637e (diff)
Merge pull request #390 from mailwl/pctl-module
Service/PCTL: convert to module, add services, stub
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