mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Added appletRequestExitToSelf.
This commit is contained in:
parent
6017cba043
commit
b09b2deb2d
@ -1402,6 +1402,12 @@ Result appletGetNextReturnDestinationAppletIdentityInfo(AppletIdentityInfo *info
|
|||||||
*/
|
*/
|
||||||
Result appletGetMainAppletApplicationDesiredLanguage(u64 *LanguageCode);
|
Result appletGetMainAppletApplicationDesiredLanguage(u64 *LanguageCode);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Exits the current applet. Same as \ref appletHolderRequestExit except this is for the current applet.
|
||||||
|
* @note Only available with AppletType_LibraryApplet on [6.0.0+].
|
||||||
|
*/
|
||||||
|
Result appletRequestExitToSelf(void);
|
||||||
|
|
||||||
// IFunctions for AppletType_OverlayApplet (IOverlayFunctions).
|
// IFunctions for AppletType_OverlayApplet (IOverlayFunctions).
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4201,6 +4201,15 @@ Result appletGetMainAppletApplicationDesiredLanguage(u64 *LanguageCode) {
|
|||||||
return _appletCmdNoInOut64(&g_appletILibraryAppletSelfAccessor, LanguageCode, 60);
|
return _appletCmdNoInOut64(&g_appletILibraryAppletSelfAccessor, LanguageCode, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result appletRequestExitToSelf(void) {
|
||||||
|
if (__nx_applet_type != AppletType_LibraryApplet)
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
|
||||||
|
if (hosversionBefore(6,0,0))
|
||||||
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
|
return _appletCmdNoIO(&g_appletILibraryAppletSelfAccessor, 80);
|
||||||
|
}
|
||||||
|
|
||||||
// IOverlayFunctions
|
// IOverlayFunctions
|
||||||
|
|
||||||
Result appletBeginToWatchShortHomeButtonMessage(void) {
|
Result appletBeginToWatchShortHomeButtonMessage(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user