mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Savestates/Menu: Add "Create Savestate" Button
This commit is contained in:
parent
cc6112cbc4
commit
119b4e4529
2 changed files with 15 additions and 0 deletions
|
|
@ -1735,6 +1735,7 @@ void main_window::EnableMenus(bool enabled) const
|
|||
ui->toolsRsxDebuggerAct->setEnabled(enabled);
|
||||
ui->toolsStringSearchAct->setEnabled(enabled);
|
||||
ui->actionCreate_RSX_Capture->setEnabled(enabled);
|
||||
ui->actionCreate_Savestate->setEnabled(enabled);
|
||||
}
|
||||
|
||||
void main_window::OnEnableDiscEject(bool enabled) const
|
||||
|
|
@ -2023,6 +2024,12 @@ void main_window::CreateConnects()
|
|||
g_user_asked_for_frame_capture = true;
|
||||
});
|
||||
|
||||
connect(ui->actionCreate_Savestate, &QAction::triggered, this, []()
|
||||
{
|
||||
gui_log.notice("User triggered savestate creation from utilities.");
|
||||
Emu.Kill(false, true);
|
||||
});
|
||||
|
||||
connect(ui->bootSavestateAct, &QAction::triggered, this, &main_window::BootSavestate);
|
||||
|
||||
connect(ui->addGamesAct, &QAction::triggered, this, [this]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue