mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-25 14:22:40 +02:00
Added appletHolderRequestExit.
This commit is contained in:
parent
c10508d95e
commit
d353213d72
@ -315,6 +315,12 @@ Result appletHolderGetIndirectLayerConsumerHandle(AppletHolder *h, u64 *out);
|
|||||||
*/
|
*/
|
||||||
Result appletHolderStart(AppletHolder *h);
|
Result appletHolderStart(AppletHolder *h);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Requests the LibraryApplet to exit. The command is only used if \ref appletHolderCheckFinished returns false.
|
||||||
|
* @param h AppletHolder object.
|
||||||
|
*/
|
||||||
|
Result appletHolderRequestExit(AppletHolder *h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Waits for the LibraryApplet to exit.
|
* @brief Waits for the LibraryApplet to exit.
|
||||||
* @param h AppletHolder object.
|
* @param h AppletHolder object.
|
||||||
|
@ -1955,6 +1955,17 @@ Result appletHolderStart(AppletHolder *h) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result appletHolderRequestExit(AppletHolder *h) {
|
||||||
|
Result rc=0;
|
||||||
|
|
||||||
|
if (!serviceIsActive(&h->s))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
|
||||||
|
if (!appletHolderCheckFinished(h)) rc = _appletCmdNoIO(&h->s, 20);//RequestExit
|
||||||
|
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
void appletHolderJoin(AppletHolder *h) {
|
void appletHolderJoin(AppletHolder *h) {
|
||||||
Result rc=0;
|
Result rc=0;
|
||||||
LibAppletExitReason res = LibAppletExitReason_Normal;
|
LibAppletExitReason res = LibAppletExitReason_Normal;
|
||||||
|
Loading…
Reference in New Issue
Block a user