Rosalina: fix freeze when attempting to open Rosalina before the system finished to boot

This commit is contained in:
Nanquitas 2018-01-18 23:39:47 +01:00
parent 11f820efa7
commit 7cb74b74d7

View File

@ -148,14 +148,23 @@ 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)
{ {
menuEnter(); if (!isAcURegistered)
if(isN3DS) N3DSMenu_UpdateStatus(); isAcURegistered = R_SUCCEEDED(srvIsServiceRegistered(&isAcURegistered, "ac:u"))
menuShow(&rosalinaMenu); && isAcURegistered;
menuLeave();
if (isAcURegistered)
{
menuEnter();
if(isN3DS) N3DSMenu_UpdateStatus();
menuShow(&rosalinaMenu);
menuLeave();
}
} }
svcSleepThread(50 * 1000 * 1000LL); svcSleepThread(50 * 1000 * 1000LL);
} }