Forgetting "return true" fooled the optimizer into crashing. Fixes #13215.

This commit is contained in:
Henrik Rydgård 2020-07-28 10:03:55 +02:00
parent 49f1ac284d
commit 118bb72037

View File

@ -94,6 +94,7 @@ bool LaunchFile(ScreenManager *screenManager, std::string path) {
screenManager->switchScreen(new EmuScreen(path));
break;
}
return true;
}
static bool IsTempPath(const std::string &str) {
@ -1326,7 +1327,8 @@ UI::EventReturn MainScreen::OnGameSelectedInstant(UI::EventParams &e) {
#else
std::string path = e.s;
#endif
LaunchFile(screenManager(), path);
ScreenManager *screen = screenManager();
LaunchFile(screen, path);
return UI::EVENT_DONE;
}