From dda6194d0bbcc05327ae93b1aa90ae3c2f4449c9 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 14 Nov 2019 11:34:41 -0500 Subject: [PATCH] Added appletIsForceTerminateApplicationDisabledForDebug. Updated docs. --- nx/include/switch/services/applet.h | 9 ++++++++- nx/source/services/applet.c | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/nx/include/switch/services/applet.h b/nx/include/switch/services/applet.h index dfb1ca28..f6276ef6 100644 --- a/nx/include/switch/services/applet.h +++ b/nx/include/switch/services/applet.h @@ -1564,6 +1564,13 @@ Result appletGetHomeButtonWriterLockAccessor(AppletLockAccessor *a); */ Result appletPopRequestLaunchApplicationForDebug(AccountUid *uids, s32 count, u64 *application_id, s32 *total_out); +/** + * @brief IsForceTerminateApplicationDisabledForDebug + * @note Only available with AppletType_SystemApplet on [9.0.0+]. + * @param[out] out Output flag. 0 when DebugMode is not enabled, otherwise this is loaded from a system-setting. + */ +Result appletIsForceTerminateApplicationDisabledForDebug(bool *out); + /** * @brief Launches DevMenu and the dev Overlay-applet. This will enter an infinite-sleep-loop on success. * @note Only available with AppletType_SystemApplet on [8.0.0+]. @@ -2135,7 +2142,7 @@ Result appletStartRebootSequenceForOverlay(void); Result appletSetHandlingHomeButtonShortPressedEnabled(bool flag); /** - * @brief This writes the input bool into state and signals an Event. + * @brief SetHealthWarningShowingState * @note Only available with AppletType_OverlayApplet on [9.0.0+]. * @param[in] flag Flag */ diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 4748bbeb..85a0999f 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -2265,6 +2265,8 @@ Result appletPopRequestLaunchApplicationForDebug(AccountUid *uids, s32 count, u6 return rc; } +IPC_MAKE_CMD_IMPL_INITEXPR_HOSVER(Result appletIsForceTerminateApplicationDisabledForDebug(bool *out), &g_appletIFunctions, 110, _appletCmdNoInOutBool, __nx_applet_type != AppletType_SystemApplet, (9,0,0), out) + Result appletLaunchDevMenu(void) { Result rc=0;