mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Qt: Add missing boot error dialog
This commit is contained in:
parent
892f74d762
commit
e56b3256b0
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue