From a7ba75ea1aa0de005c0c5077dcfcc14ac05ee5c2 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Wed, 15 Aug 2018 16:30:58 -0400 Subject: [PATCH] Added comment regarding the AppletType_Application double-init issue. --- nx/source/services/applet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 94ec34a7..02cf1eb3 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -169,6 +169,7 @@ Result appletInitialize(void) { do { svcWaitSynchronizationSingle(g_appletMessageEventHandle, U64_MAX); + //When applet was previously initialized in the context of the current process for AppletType_Application, there's exactly 1 issue with initializing again: this loop hangs since there's no message available. If a timeout is added to the above waitsync where the loop is exited on timeout when _appletGetCurrentFocusState output is 1, initialization works fine. u32 msg; rc = _appletReceiveMessage(&msg);