applet: add appletGetMessageEvent

This commit is contained in:
Liam 2023-04-04 09:39:43 -04:00
parent dca4fb772a
commit 659202fd49
2 changed files with 9 additions and 0 deletions

View File

@ -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.
*/

View File

@ -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);