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