menu disabled when loading a game

This commit is contained in:
dborth 2009-04-21 22:10:39 +00:00
parent ef6579decf
commit 6675c3c3db
2 changed files with 4 additions and 6 deletions

View File

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

View File

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