From 2311f777fcbc804047a380ee905e8039e4079d53 Mon Sep 17 00:00:00 2001 From: Dima Date: Sun, 20 Nov 2022 12:37:56 +0300 Subject: [PATCH] Stub IsCpuOverclockEnabled --- app/src/main/cpp/skyline/services/apm/IManager.cpp | 5 +++++ app/src/main/cpp/skyline/services/apm/IManager.h | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/services/apm/IManager.cpp b/app/src/main/cpp/skyline/services/apm/IManager.cpp index 456ccc58..0eacf1e4 100644 --- a/app/src/main/cpp/skyline/services/apm/IManager.cpp +++ b/app/src/main/cpp/skyline/services/apm/IManager.cpp @@ -11,4 +11,9 @@ namespace skyline::service::apm { manager.RegisterService(SRVREG(ISession), session, response); return {}; } + + Result IManager::IsCpuOverclockEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + response.Push(false); + return {}; + } } diff --git a/app/src/main/cpp/skyline/services/apm/IManager.h b/app/src/main/cpp/skyline/services/apm/IManager.h index e7186cd0..364d433c 100644 --- a/app/src/main/cpp/skyline/services/apm/IManager.h +++ b/app/src/main/cpp/skyline/services/apm/IManager.h @@ -19,8 +19,14 @@ namespace skyline::service::apm { */ Result OpenSession(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @url https://switchbrew.org/wiki/PPC_services#IsCpuOverclockEnabled + */ + Result IsCpuOverclockEnabled(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + SERVICE_DECL( - SFUNC(0x0, IManager, OpenSession) + SFUNC(0x0, IManager, OpenSession), + SFUNC(0x6, IManager, IsCpuOverclockEnabled) ) }; }