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;
else if(!fatMountSimple(name, disc))
mounted = false;
#ifdef HW_RVL
else
fatSetReadAhead(rootdir, 6, 64);
#endif
}
isMounted[method] = mounted;

View File

@ -369,6 +369,7 @@ ProgressWindow(char *title, char *msg)
return;
HaltGui();
int oldState = mainWindow->GetState();
mainWindow->SetState(STATE_DISABLED);
mainWindow->Append(&promptWindow);
mainWindow->ChangeFocus(&promptWindow);
@ -400,7 +401,7 @@ ProgressWindow(char *title, char *msg)
HaltGui();
mainWindow->Remove(&promptWindow);
mainWindow->SetState(STATE_DEFAULT);
mainWindow->SetState(oldState);
ResumeGui();
}
@ -953,7 +954,8 @@ static int MenuGameSelection()
mainWindow->SetState(STATE_DISABLED);
if(BrowserLoadFile(GCSettings.LoadMethod))
menu = MENU_EXIT;
mainWindow->SetState(STATE_DEFAULT);
else
mainWindow->SetState(STATE_DEFAULT);
}
}
}