summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorgreggameplayer <33609333+greggameplayer@users.noreply.github.com>2018-08-17 06:23:08 +0200
committerbunnei <bunneidev@gmail.com>2018-08-17 06:23:08 +0200
commit20037717898de9b3b03941d8361bbc6896cd0a35 (patch)
tree5917f595c330959619e032fa177703f57a38d58e /src/core/hle/service/am/am.cpp
parentMerge pull request #1090 from lioncash/ctor-assign (diff)
downloadyuzu-20037717898de9b3b03941d8361bbc6896cd0a35.tar
yuzu-20037717898de9b3b03941d8361bbc6896cd0a35.tar.gz
yuzu-20037717898de9b3b03941d8361bbc6896cd0a35.tar.bz2
yuzu-20037717898de9b3b03941d8361bbc6896cd0a35.tar.lz
yuzu-20037717898de9b3b03941d8361bbc6896cd0a35.tar.xz
yuzu-20037717898de9b3b03941d8361bbc6896cd0a35.tar.zst
yuzu-20037717898de9b3b03941d8361bbc6896cd0a35.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/am.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 966602b31..c524e7a48 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -145,8 +145,8 @@ ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger
{51, nullptr, "ApproveToDisplay"},
{60, nullptr, "OverrideAutoSleepTimeAndDimmingTime"},
{61, nullptr, "SetMediaPlaybackState"},
- {62, nullptr, "SetIdleTimeDetectionExtension"},
- {63, nullptr, "GetIdleTimeDetectionExtension"},
+ {62, &ISelfController::SetIdleTimeDetectionExtension, "SetIdleTimeDetectionExtension"},
+ {63, &ISelfController::GetIdleTimeDetectionExtension, "GetIdleTimeDetectionExtension"},
{64, nullptr, "SetInputDetectionSourceSet"},
{65, nullptr, "ReportUserIsActive"},
{66, nullptr, "GetCurrentIlluminance"},
@@ -281,6 +281,23 @@ void ISelfController::SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx)
LOG_WARNING(Service_AM, "(STUBBED) called");
}
+void ISelfController::SetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ idle_time_detection_extension = rp.Pop<u32>();
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+}
+
+void ISelfController::GetIdleTimeDetectionExtension(Kernel::HLERequestContext& ctx) {
+ IPC::ResponseBuilder rb{ctx, 3};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push<u32>(idle_time_detection_extension);
+
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+}
+
ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter") {
static const FunctionInfo functions[] = {
{0, &ICommonStateGetter::GetEventHandle, "GetEventHandle"},