Added appletEnterFatalSection/appletLeaveFatalSection.

This commit is contained in:
yellows8 2019-07-16 15:47:47 -04:00
parent f13b75d87c
commit b896b33e3e
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 18 additions and 0 deletions

View File

@ -348,6 +348,16 @@ Result appletLockExit(void);
/// Unlocks exiting, see \ref appletLockExit.
Result appletUnlockExit(void);
/**
* @brief Enter FatalSection.
*/
Result appletEnterFatalSection(void);
/**
* @brief Leave FatalSection.
*/
Result appletLeaveFatalSection(void);
/**
* @brief Controls whether screenshot-capture is allowed.
* @param permission \ref AppletScreenShotPermission

View File

@ -2086,6 +2086,14 @@ Result appletUnlockExit(void) {
return _appletCmdNoIO(&g_appletISelfController, 2);
}
Result appletEnterFatalSection(void) {
return _appletCmdNoIO(&g_appletISelfController, 3);
}
Result appletLeaveFatalSection(void) {
return _appletCmdNoIO(&g_appletISelfController, 4);
}
static Result _appletWaitLibraryAppletLaunchableEvent(void) {
Result rc=0;