1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

Savestates/Menu: Add "Create Savestate" Button

This commit is contained in:
Eladash 2022-10-23 08:58:32 +03:00 committed by Megamouse
parent cc6112cbc4
commit 119b4e4529
2 changed files with 15 additions and 0 deletions

View File

@ -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]()

View File

@ -1145,6 +1145,14 @@
<string>Create RSX Capture</string>
</property>
</action>
<action name="actionCreate_Savestate">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Create Savestate</string>
</property>
</action>
<action name="actionManage_Game_Patches">
<property name="text">
<string>Game Patches</string>