Merge pull request #1012 from Nanquitas/rosalina-freeze-fix
Rosalina: fix freeze when attempting to open Rosalina before the syst…
This commit is contained in:
commit
e36b27ccf0
@ -148,15 +148,24 @@ void menuThreadMain(void)
|
|||||||
else
|
else
|
||||||
N3DSMenu_UpdateStatus();
|
N3DSMenu_UpdateStatus();
|
||||||
|
|
||||||
|
bool isAcURegistered = false;
|
||||||
|
|
||||||
while(!terminationRequest)
|
while(!terminationRequest)
|
||||||
{
|
{
|
||||||
if((HID_PAD & menuCombo) == menuCombo)
|
if((HID_PAD & menuCombo) == menuCombo)
|
||||||
|
{
|
||||||
|
if (!isAcURegistered)
|
||||||
|
isAcURegistered = R_SUCCEEDED(srvIsServiceRegistered(&isAcURegistered, "ac:u"))
|
||||||
|
&& isAcURegistered;
|
||||||
|
|
||||||
|
if (isAcURegistered)
|
||||||
{
|
{
|
||||||
menuEnter();
|
menuEnter();
|
||||||
if(isN3DS) N3DSMenu_UpdateStatus();
|
if(isN3DS) N3DSMenu_UpdateStatus();
|
||||||
menuShow(&rosalinaMenu);
|
menuShow(&rosalinaMenu);
|
||||||
menuLeave();
|
menuLeave();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
svcSleepThread(50 * 1000 * 1000LL);
|
svcSleepThread(50 * 1000 * 1000LL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user