mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-07 03:42:14 +02:00
Revert "Hardcode appletBeginBlockingHomeButton() arg to be 0"
This reverts commit 1a88048f10
.
This commit is contained in:
parent
1a88048f10
commit
8d7aefb130
@ -53,8 +53,7 @@ Result appletCreateManagedDisplayLayer(u64 *out);
|
|||||||
|
|
||||||
Result appletGetDesiredLanguage(u64 *LanguageCode);
|
Result appletGetDesiredLanguage(u64 *LanguageCode);
|
||||||
|
|
||||||
/// Can only be used with regularapps.
|
Result appletBeginBlockingHomeButton(s64 val);
|
||||||
Result appletBeginBlockingHomeButton(void);
|
|
||||||
|
|
||||||
Result appletEndBlockingHomeButton(void);
|
Result appletEndBlockingHomeButton(void);
|
||||||
|
|
||||||
|
@ -565,7 +565,7 @@ Result appletGetDesiredLanguage(u64 *LanguageCode) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result appletBeginBlockingHomeButton(void) {
|
Result appletBeginBlockingHomeButton(s64 val) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
@ -583,7 +583,7 @@ Result appletBeginBlockingHomeButton(void) {
|
|||||||
|
|
||||||
raw->magic = SFCI_MAGIC;
|
raw->magic = SFCI_MAGIC;
|
||||||
raw->cmd_id = 32;
|
raw->cmd_id = 32;
|
||||||
raw->val = 0;
|
raw->val = val;
|
||||||
|
|
||||||
Result rc = serviceIpcDispatch(&g_appletIFunctions);
|
Result rc = serviceIpcDispatch(&g_appletIFunctions);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user