From 2e2284109bb750acb55abc3a346a75a095c0b71a Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 4 Apr 2023 09:39:43 -0400 Subject: [PATCH] applet: add appletGetMessageEvent --- nx/include/switch/services/applet.h | 5 +++++ nx/source/services/applet.c | 4 ++++ 2 files changed, 9 insertions(+) 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);