Add game direct load support for new UI

This commit is contained in:
raven02 committed 2013-08-04 15:49:51 +08:00
1 parent 5a384a51ce
commit e0d68e4768
4 files changed
+14 -7

No files matched your search

+7 -1
View File
@@ -409,7 +409,13 @@ UI::EventReturn MainScreen::OnLoadFile(UI::EventParams &e) {
}
UI::EventReturn MainScreen::OnGameSelected(UI::EventParams &e) {
screenManager()->push(new GameScreen(e.s));
if(g_Config.bDirectLoad) {
// Go directly into the game.
screenManager()->switchScreen(new EmuScreen(e.s));
} else {
// Goto Game Menu.
screenManager()->push(new GameScreen(e.s));
}
return UI::EVENT_DONE;
}