aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/pctl/pctl_a.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-12-28 23:44:39 -0500
committerbunnei <bunneidev@gmail.com>2017-12-28 23:44:39 -0500
commitfcd4c1a0dc1345ea3178167fad4582393788824b (patch)
treec49c49b3a2682900562741ae98add69d71f4c7a0 /src/core/hle/service/pctl/pctl_a.cpp
parente17c0019c5cf9faaa8f23e3904342c8c4faf0980 (diff)
service: Add empty interface for pctl:a.
Diffstat (limited to 'src/core/hle/service/pctl/pctl_a.cpp')
-rw-r--r--src/core/hle/service/pctl/pctl_a.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp
new file mode 100644
index 000000000..97cd1d2ee
--- /dev/null
+++ b/src/core/hle/service/pctl/pctl_a.cpp
@@ -0,0 +1,30 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "common/logging/log.h"
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/pctl/pctl_a.h"
+
+namespace Service {
+namespace PCTL {
+
+void InstallInterfaces(SM::ServiceManager& service_manager) {
+ std::make_shared<PCTL_A>()->InstallAsService(service_manager);
+}
+
+void PCTL_A::GetService(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service, "(STUBBED) called");
+ IPC::RequestBuilder rb{ctx, 1};
+ rb.Push(RESULT_SUCCESS);
+}
+
+PCTL_A::PCTL_A() : ServiceFramework("pctl:a") {
+ static const FunctionInfo functions[] = {
+ {0, &PCTL_A::GetService, "GetService"},
+ };
+ RegisterHandlers(functions);
+}
+
+} // namespace PCTL
+} // namespace Service