diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-07 20:57:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 20:57:12 +0200 |
commit | 2d57cbaec144c1ef9b142863aa7c0eda73ac783a (patch) | |
tree | 20daeb9d217732e20f951941b2de2dcc8d55691c /src/core/hle/service/apm/interface.cpp | |
parent | Merge pull request #950 from lioncash/hotkey (diff) | |
parent | service/apm: Add the apm:sys service (diff) | |
download | yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.tar yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.tar.gz yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.tar.bz2 yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.tar.lz yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.tar.xz yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.tar.zst yuzu-2d57cbaec144c1ef9b142863aa7c0eda73ac783a.zip |
Diffstat (limited to 'src/core/hle/service/apm/interface.cpp')
-rw-r--r-- | src/core/hle/service/apm/interface.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp index ce943d829..4cd8132f5 100644 --- a/src/core/hle/service/apm/interface.cpp +++ b/src/core/hle/service/apm/interface.cpp @@ -74,6 +74,31 @@ void APM::OpenSession(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 2, 0, 1}; rb.Push(RESULT_SUCCESS); rb.PushIpcInterface<ISession>(); + + LOG_DEBUG(Service_APM, "called"); +} + +APM_Sys::APM_Sys() : ServiceFramework{"apm:sys"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, nullptr, "RequestPerformanceMode"}, + {1, &APM_Sys::GetPerformanceEvent, "GetPerformanceEvent"}, + {2, nullptr, "GetThrottlingState"}, + {3, nullptr, "GetLastThrottlingState"}, + {4, nullptr, "ClearLastThrottlingState"}, + {5, nullptr, "LoadAndApplySettings"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +void APM_Sys::GetPerformanceEvent(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushIpcInterface<ISession>(); + + LOG_DEBUG(Service_APM, "called"); } } // namespace Service::APM |