mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Savestates Support For PS3 Emulation (#10478)
This commit is contained in:
parent
969b9eb89d
commit
fcd297ffb2
154 changed files with 4948 additions and 635 deletions
|
@ -971,6 +971,18 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
|||
});
|
||||
}
|
||||
|
||||
if (const std::string sstate = fs::get_cache_dir() + "/savestates/" + current_game.serial + ".SAVESTAT"; fs::is_file(sstate))
|
||||
{
|
||||
QAction* boot_state = menu.addAction(is_current_running_game
|
||||
? tr("&Reboot with savestate")
|
||||
: tr("&Boot with savestate"));
|
||||
connect(boot_state, &QAction::triggered, [this, gameinfo, sstate]
|
||||
{
|
||||
sys_log.notice("Booting savestate from gamelist per context menu...");
|
||||
Q_EMIT RequestBoot(gameinfo, cfg_mode::custom, "", sstate);
|
||||
});
|
||||
}
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
QAction* configure = menu.addAction(gameinfo->hasCustomConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue