mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 03:12:15 +02:00
Home button can also be blocked in SystemApplications
This commit is contained in:
parent
e709c43271
commit
bc063eac27
@ -569,7 +569,8 @@ Result appletBeginBlockingHomeButton(s64 val) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
|
||||
if (!serviceIsActive(&g_appletSrv) || __nx_applet_type!=AppletType_Application)
|
||||
if (!serviceIsActive(&g_appletSrv) || (__nx_applet_type!=AppletType_Application
|
||||
&& __nx_applet_type!=AppletType_SystemApplication))
|
||||
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||
|
||||
struct {
|
||||
@ -605,7 +606,8 @@ Result appletEndBlockingHomeButton(void) {
|
||||
IpcCommand c;
|
||||
ipcInitialize(&c);
|
||||
|
||||
if (!serviceIsActive(&g_appletSrv) || __nx_applet_type!=AppletType_Application)
|
||||
if (!serviceIsActive(&g_appletSrv) || (__nx_applet_type!=AppletType_Application
|
||||
&& __nx_applet_type!=AppletType_SystemApplication))
|
||||
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||
|
||||
struct {
|
||||
|
Loading…
Reference in New Issue
Block a user