mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-12 19:50:23 +01:00
ISO: Fix recent actions created when launching ISO games
This commit is contained in:
parent
59f9a7c080
commit
a2d76aedaa
|
|
@ -543,8 +543,16 @@ void main_window::Boot(const std::string& path, const std::string& title_id, boo
|
|||
}
|
||||
else
|
||||
{
|
||||
std::string game_path = Emu.GetBoot();
|
||||
if (game_path.starts_with(iso_device::virtual_device_name))
|
||||
{
|
||||
auto device = fs::get_virtual_device(iso_device::virtual_device_name + "/");
|
||||
auto iso_device = dynamic_cast<class iso_device*>(device.get());
|
||||
game_path = iso_device->get_loaded_iso();
|
||||
}
|
||||
|
||||
gui_log.success("Boot successful.");
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(Emu.GetBoot()), QString::fromStdString(Emu.GetTitleAndTitleID())), false);
|
||||
AddRecentAction(gui::Recent_Game(QString::fromStdString(game_path), QString::fromStdString(Emu.GetTitleAndTitleID())), false);
|
||||
}
|
||||
|
||||
if (refresh_list)
|
||||
|
|
|
|||
Loading…
Reference in a new issue