Home button can also be blocked in SystemApplications

This commit is contained in:
Rasmus Moorats 2018-09-06 22:18:16 +03:00
parent e709c43271
commit bc063eac27

View File

@ -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 {