mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-23 02:59:17 +01:00
menu disabled when loading a game
This commit is contained in:
parent
ef6579decf
commit
6675c3c3db
@ -188,10 +188,6 @@ bool MountFAT(int method)
|
|||||||
mounted = false;
|
mounted = false;
|
||||||
else if(!fatMountSimple(name, disc))
|
else if(!fatMountSimple(name, disc))
|
||||||
mounted = false;
|
mounted = false;
|
||||||
#ifdef HW_RVL
|
|
||||||
else
|
|
||||||
fatSetReadAhead(rootdir, 6, 64);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
isMounted[method] = mounted;
|
isMounted[method] = mounted;
|
||||||
|
@ -369,6 +369,7 @@ ProgressWindow(char *title, char *msg)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
HaltGui();
|
HaltGui();
|
||||||
|
int oldState = mainWindow->GetState();
|
||||||
mainWindow->SetState(STATE_DISABLED);
|
mainWindow->SetState(STATE_DISABLED);
|
||||||
mainWindow->Append(&promptWindow);
|
mainWindow->Append(&promptWindow);
|
||||||
mainWindow->ChangeFocus(&promptWindow);
|
mainWindow->ChangeFocus(&promptWindow);
|
||||||
@ -400,7 +401,7 @@ ProgressWindow(char *title, char *msg)
|
|||||||
|
|
||||||
HaltGui();
|
HaltGui();
|
||||||
mainWindow->Remove(&promptWindow);
|
mainWindow->Remove(&promptWindow);
|
||||||
mainWindow->SetState(STATE_DEFAULT);
|
mainWindow->SetState(oldState);
|
||||||
ResumeGui();
|
ResumeGui();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -953,6 +954,7 @@ static int MenuGameSelection()
|
|||||||
mainWindow->SetState(STATE_DISABLED);
|
mainWindow->SetState(STATE_DISABLED);
|
||||||
if(BrowserLoadFile(GCSettings.LoadMethod))
|
if(BrowserLoadFile(GCSettings.LoadMethod))
|
||||||
menu = MENU_EXIT;
|
menu = MENU_EXIT;
|
||||||
|
else
|
||||||
mainWindow->SetState(STATE_DEFAULT);
|
mainWindow->SetState(STATE_DEFAULT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user