mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 18:49:18 +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;
|
||||
else if(!fatMountSimple(name, disc))
|
||||
mounted = false;
|
||||
#ifdef HW_RVL
|
||||
else
|
||||
fatSetReadAhead(rootdir, 6, 64);
|
||||
#endif
|
||||
}
|
||||
|
||||
isMounted[method] = mounted;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user