stub ISelfController get/set IdleTimeDetectonExtension
This commit is contained in:
parent
908d296c1a
commit
abd741c626
1 changed files with 23 additions and 1 deletions
|
@ -14,6 +14,8 @@ namespace Ryujinx.HLE.HOS.Services.Am
|
|||
|
||||
private KEvent LaunchableEvent;
|
||||
|
||||
private int IdleTimeDetectionExtension;
|
||||
|
||||
public ISelfController(Horizon System)
|
||||
{
|
||||
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue