From 118bb72037b6d75ceb99436b0d33179eb2eb1f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 28 Jul 2020 10:03:55 +0200 Subject: [PATCH] Forgetting "return true" fooled the optimizer into crashing. Fixes #13215. --- UI/MainScreen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 03d89ce7da..e9803ac0f6 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -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; }