mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-10 17:05:08 +00:00
Savestates: Facilitate multi slots
This commit is contained in:
parent
12fe55a258
commit
fce8e0fef0
3 changed files with 30 additions and 7 deletions
|
|
@ -50,6 +50,8 @@ LOG_CHANNEL(sys_log, "SYS");
|
|||
|
||||
extern atomic_t<bool> g_system_progress_canceled;
|
||||
|
||||
std::string get_savestate_file(std::string_view title_id, std::string_view boot_pat, s64 abs_id, s64 rel_id);
|
||||
|
||||
inline std::string sstr(const QString& _in) { return _in.toStdString(); }
|
||||
|
||||
game_list_frame::game_list_frame(std::shared_ptr<gui_settings> gui_settings, std::shared_ptr<emu_settings> emu_settings, std::shared_ptr<persistent_settings> persistent_settings, QWidget* parent)
|
||||
|
|
@ -1078,7 +1080,7 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
|||
|
||||
extern bool is_savestate_compatible(const fs::file& file);
|
||||
|
||||
if (const std::string sstate = fs::get_cache_dir() + "/savestates/" + current_game.serial + ".SAVESTAT"; is_savestate_compatible(fs::file(sstate)))
|
||||
if (const std::string sstate = get_savestate_file(current_game.serial, current_game.path, 0, 0); is_savestate_compatible(fs::file(sstate)))
|
||||
{
|
||||
QAction* boot_state = menu.addAction(is_current_running_game
|
||||
? tr("&Reboot with savestate")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue