aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-09-20 05:40:10 +0200
committerGitHub <noreply@github.com>2020-09-20 13:40:10 +1000
commitac04cfa96c607e0353aca220341c8c5edee57b98 (patch)
tree4787cf86ce9f97313107b4d1509afa5982855867 /Ryujinx.HLE/HOS/Services
parentda3a53a29cadd0bd56c5e0585e31cfa0d8479f9a (diff)
am: Stub Begin/EndBlockingHomeButton (#1553)
Diffstat (limited to 'Ryujinx.HLE/HOS/Services')
-rw-r--r--Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs46
1 files changed, 46 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs
index 54de42cc..a310a094 100644
--- a/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs
+++ b/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs
@@ -154,6 +154,52 @@ namespace Ryujinx.HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.Applicati
return ResultCode.Success;
}
+ [Command(30)]
+ // BeginBlockingHomeButtonShortAndLongPressed()
+ public ResultCode BeginBlockingHomeButtonShortAndLongPressed(ServiceCtx context)
+ {
+ // NOTE: This set two internal fields at offsets 0x89 and 0x8B to value 1 then it signals an internal event.
+
+ Logger.Stub?.PrintStub(LogClass.ServiceAm);
+
+ return ResultCode.Success;
+ }
+
+ [Command(31)]
+ // EndBlockingHomeButtonShortAndLongPressed()
+ public ResultCode EndBlockingHomeButtonShortAndLongPressed(ServiceCtx context)
+ {
+ // NOTE: This set two internal fields at offsets 0x89 and 0x8B to value 0 then it signals an internal event.
+
+ Logger.Stub?.PrintStub(LogClass.ServiceAm);
+
+ return ResultCode.Success;
+ }
+
+ [Command(32)] // 2.0.0+
+ // BeginBlockingHomeButton(u64 nano_second)
+ public ResultCode BeginBlockingHomeButton(ServiceCtx context)
+ {
+ ulong nanoSeconds = context.RequestData.ReadUInt64();
+
+ // NOTE: This set two internal fields at offsets 0x89 to value 1 and 0x90 to value of "nanoSeconds" then it signals an internal event.
+
+ Logger.Stub?.PrintStub(LogClass.ServiceAm, new { nanoSeconds });
+
+ return ResultCode.Success;
+ }
+
+ [Command(33)] // 2.0.0+
+ // EndBlockingHomeButton()
+ public ResultCode EndBlockingHomeButton(ServiceCtx context)
+ {
+ // NOTE: This set two internal fields at offsets 0x89 and 0x90 to value 0 then it signals an internal event.
+
+ Logger.Stub?.PrintStub(LogClass.ServiceAm);
+
+ return ResultCode.Success;
+ }
+
[Command(40)]
// NotifyRunning() -> b8
public ResultCode NotifyRunning(ServiceCtx context)