From abd741c6267f8ab54cb3743e6b6b6066b011aefe Mon Sep 17 00:00:00 2001 From: emmaus Date: Wed, 3 Oct 2018 20:01:52 +0000 Subject: [PATCH] stub ISelfController get/set IdleTimeDetectonExtension --- .../HOS/Services/Am/ISelfController.cs | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs b/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs index 2c1d0c3bcc..ee24a73afb 100644 --- a/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs +++ b/Ryujinx.HLE/HOS/Services/Am/ISelfController.cs @@ -14,6 +14,8 @@ namespace Ryujinx.HLE.HOS.Services.Am private KEvent LaunchableEvent; + private int IdleTimeDetectionExtension; + public ISelfController(Horizon System) { m_Commands = new Dictionary() @@ -29,7 +31,9 @@ namespace Ryujinx.HLE.HOS.Services.Am { 14, SetRestartMessageEnabled }, { 16, SetOutOfFocusSuspendingEnabled }, { 19, SetScreenShotImageOrientation }, - { 50, SetHandlesRequestToDisplay } + { 50, SetHandlesRequestToDisplay }, + { 62, SetIdleTimeDetectionExtension }, + { 63, GetIdleTimeDetectionExtension } }; LaunchableEvent = new KEvent(System); @@ -145,5 +149,23 @@ namespace Ryujinx.HLE.HOS.Services.Am return 0; } + + public long SetIdleTimeDetectionExtension(ServiceCtx Context) + { + IdleTimeDetectionExtension = Context.RequestData.ReadInt32(); + + Context.Device.Log.PrintStub(LogClass.ServiceAm, $"Stubbed. IdleTimeDetectionExtension = {IdleTimeDetectionExtension}"); + + return 0; + } + + public long GetIdleTimeDetectionExtension(ServiceCtx Context) + { + Context.ResponseData.Write(IdleTimeDetectionExtension); + + Context.Device.Log.PrintStub(LogClass.ServiceAm, $"Stubbed. IdleTimeDetectionExtension = {IdleTimeDetectionExtension}"); + + return 0; + } } }