Added comment regarding the AppletType_Application double-init issue.

This commit is contained in:
yellows8 2018-08-15 16:30:58 -04:00
parent fb42ebe53a
commit a7ba75ea1a

View File

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