mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Added appletEnterFatalSection/appletLeaveFatalSection.
This commit is contained in:
parent
f13b75d87c
commit
b896b33e3e
@ -348,6 +348,16 @@ Result appletLockExit(void);
|
|||||||
/// Unlocks exiting, see \ref appletLockExit.
|
/// Unlocks exiting, see \ref appletLockExit.
|
||||||
Result appletUnlockExit(void);
|
Result appletUnlockExit(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enter FatalSection.
|
||||||
|
*/
|
||||||
|
Result appletEnterFatalSection(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Leave FatalSection.
|
||||||
|
*/
|
||||||
|
Result appletLeaveFatalSection(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Controls whether screenshot-capture is allowed.
|
* @brief Controls whether screenshot-capture is allowed.
|
||||||
* @param permission \ref AppletScreenShotPermission
|
* @param permission \ref AppletScreenShotPermission
|
||||||
|
@ -2086,6 +2086,14 @@ Result appletUnlockExit(void) {
|
|||||||
return _appletCmdNoIO(&g_appletISelfController, 2);
|
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) {
|
static Result _appletWaitLibraryAppletLaunchableEvent(void) {
|
||||||
Result rc=0;
|
Result rc=0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user