diff --git a/nx/include/switch/services/applet.h b/nx/include/switch/services/applet.h index c48abba6..8a18ce3e 100644 --- a/nx/include/switch/services/applet.h +++ b/nx/include/switch/services/applet.h @@ -2689,6 +2689,11 @@ Result appletSetHandlingHomeButtonShortPressedEnabled(bool flag); */ AppletInfo *appletGetAppletInfo(void); +/** + * @brief Gets the event associated with notification messages. + */ +Event *appletGetMessageEvent(void); + /** * @brief Gets a notification message, see \ref AppletMessage. */ diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 24885ca5..d2a94156 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -2988,6 +2988,10 @@ AppletInfo *appletGetAppletInfo(void) { return &g_appletInfo; } +Event *appletGetMessageEvent(void) { + return &g_appletMessageEvent; +} + Result appletGetMessage(u32 *msg) { Result rc=0; if (msg==NULL) return MAKERESULT(Module_Libnx, LibnxError_BadInput);