From 6c2d6cff19dbd466269dd33bfef8756da68da6be Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 21 Feb 2024 21:55:03 -0500 Subject: psc: move IPmControl, IPmModule, IPmService --- src/core/hle/service/psc/pm_service.cpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/core/hle/service/psc/pm_service.cpp (limited to 'src/core/hle/service/psc/pm_service.cpp') 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..99b16bbb0 --- /dev/null +++ b/src/core/hle/service/psc/pm_service.cpp @@ -0,0 +1,30 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "core/hle/service/ipc_helpers.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, &IPmService::GetPmModule, "GetPmModule"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +IPmService::~IPmService() = default; + +void IPmService::GetPmModule(HLERequestContext& ctx) { + LOG_DEBUG(Service_PSC, "called"); + + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(ResultSuccess); + rb.PushIpcInterface(system); +} + +} // namespace Service::PSC -- cgit v1.2.3