mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
Added comment regarding the AppletType_Application double-init issue.
This commit is contained in:
parent
fb42ebe53a
commit
a7ba75ea1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user