aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/psc/pm_service.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-22 20:26:03 -0500
committerGitHub <noreply@github.com>2024-02-22 20:26:03 -0500
commitdad9ea3e076763cbfd0c29497552531cb7c45edf (patch)
tree0667e704694d156a6878e45d609a72c2f2f484ba /src/core/hle/service/psc/pm_service.cpp
parentd12d9dad4096af6280c6c418cf36a2faacede102 (diff)
parente85466c1ae5c993617920f28e9ee1799591d4a9a (diff)
Merge pull request #13117 from liamwhite/ovln
psc: stub overlay notification channel
Diffstat (limited to 'src/core/hle/service/psc/pm_service.cpp')
-rw-r--r--src/core/hle/service/psc/pm_service.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/hle/service/psc/pm_service.cpp b/src/core/hle/service/psc/pm_service.cpp
new file mode 100644
index 000000000..c4e0ad228
--- /dev/null
+++ b/src/core/hle/service/psc/pm_service.cpp
@@ -0,0 +1,28 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/service/cmif_serialization.h"
+#include "core/hle/service/psc/pm_module.h"
+#include "core/hle/service/psc/pm_service.h"
+
+namespace Service::PSC {
+
+IPmService::IPmService(Core::System& system_) : ServiceFramework{system_, "psc:m"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, D<&IPmService::GetPmModule>, "GetPmModule"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+IPmService::~IPmService() = default;
+
+Result IPmService::GetPmModule(Out<SharedPointer<IPmModule>> out_module) {
+ LOG_DEBUG(Service_PSC, "called");
+ *out_module = std::make_shared<IPmModule>(system);
+ R_SUCCEED();
+}
+
+} // namespace Service::PSC