From 1a88048f1092ee7592e229bf77bce25928633345 Mon Sep 17 00:00:00 2001 From: Rasmus Moorats Date: Fri, 7 Sep 2018 02:26:44 +0300 Subject: [PATCH] Hardcode appletBeginBlockingHomeButton() arg to be 0 --- nx/include/switch/services/applet.h | 3 ++- nx/source/services/applet.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nx/include/switch/services/applet.h b/nx/include/switch/services/applet.h index ea5fd492..12052e96 100644 --- a/nx/include/switch/services/applet.h +++ b/nx/include/switch/services/applet.h @@ -53,7 +53,8 @@ Result appletCreateManagedDisplayLayer(u64 *out); Result appletGetDesiredLanguage(u64 *LanguageCode); -Result appletBeginBlockingHomeButton(s64 val); +/// Can only be used with regularapps. +Result appletBeginBlockingHomeButton(void); Result appletEndBlockingHomeButton(void); diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 9a84dbf5..76457b46 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -565,7 +565,7 @@ Result appletGetDesiredLanguage(u64 *LanguageCode) { return rc; } -Result appletBeginBlockingHomeButton(s64 val) { +Result appletBeginBlockingHomeButton(void) { IpcCommand c; ipcInitialize(&c); @@ -583,7 +583,7 @@ Result appletBeginBlockingHomeButton(s64 val) { raw->magic = SFCI_MAGIC; raw->cmd_id = 32; - raw->val = val; + raw->val = 0; Result rc = serviceIpcDispatch(&g_appletIFunctions);