From e56b3256b04ec38bfe2515b808866055b250f0c2 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 6 Mar 2020 22:34:16 +0100 Subject: [PATCH] Qt: Add missing boot error dialog --- rpcs3/rpcs3qt/main_window.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 6af68e7ec8..420d044feb 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -219,9 +219,13 @@ void main_window::OnPlayOrPause() { Emu.Pause(); } - else if (!Emu.GetBoot().empty()) + else if (const auto path = Emu.GetBoot(); !path.empty()) { - Emu.Load(); + if (const auto error = Emu.Load(); error != game_boot_result::no_errors) + { + gui_log.error("Boot failed: reason: %s, path: %s", error, path); + show_boot_error(error); + } } else if (Emu.IsStopped() && !m_recentGameActs.isEmpty()) { @@ -297,7 +301,7 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo if (const auto error = Emu.BootGame(path, title_id, direct, add_only, force_global_config); error != game_boot_result::no_errors) { - gui_log.error("Boot failed: %s", path); + gui_log.error("Boot failed: reason: %s, path: %s", error, path); show_boot_error(error); } else