mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Qt: Fix Recent savestate path
This commit is contained in:
parent
cebcea2d6c
commit
05d0953a21
1 changed files with 22 additions and 10 deletions
|
@ -604,17 +604,23 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo
|
|||
{
|
||||
gui_log.error("Boot failed: reason: %s, path: %s", error, path);
|
||||
show_boot_error(error);
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_savestate_compatible(path))
|
||||
{
|
||||
gui_log.success("Boot of savestate successful.");
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(path), QString::fromStdString(Emu.GetTitleAndTitleID())), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_log.success("Boot successful.");
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(Emu.GetBoot()), QString::fromStdString(Emu.GetTitleAndTitleID())), false);
|
||||
}
|
||||
|
||||
AddRecentAction(gui::Recent_Game(qstr(Emu.GetBoot()), qstr(Emu.GetTitleAndTitleID())), is_savestate_compatible(path));
|
||||
|
||||
if (refresh_list)
|
||||
{
|
||||
m_game_list_frame->Refresh(true);
|
||||
}
|
||||
if (refresh_list)
|
||||
{
|
||||
m_game_list_frame->Refresh(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4217,15 +4223,21 @@ void main_window::dropEvent(QDropEvent* event)
|
|||
{
|
||||
gui_log.error("Boot failed: reason: %s, path: %s", error, path);
|
||||
show_boot_error(error);
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_savestate_compatible(path))
|
||||
{
|
||||
gui_log.success("Savestate Boot from drag and drop done: %s", path);
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(path), QString::fromStdString(Emu.GetTitleAndTitleID())), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_log.success("Elf Boot from drag and drop done: %s", path);
|
||||
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(path), QString::fromStdString(Emu.GetTitleAndTitleID())), is_savestate_compatible(path));
|
||||
|
||||
m_game_list_frame->Refresh(true);
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(Emu.GetBoot()), QString::fromStdString(Emu.GetTitleAndTitleID())), false);
|
||||
}
|
||||
|
||||
m_game_list_frame->Refresh(true);
|
||||
break;
|
||||
}
|
||||
case drop_type::drop_rrc: // replay a rsx capture file
|
||||
|
|
Loading…
Add table
Reference in a new issue