mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12: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->toolsRsxDebuggerAct->setEnabled(enabled);
|
||||||
ui->toolsStringSearchAct->setEnabled(enabled);
|
ui->toolsStringSearchAct->setEnabled(enabled);
|
||||||
ui->actionCreate_RSX_Capture->setEnabled(enabled);
|
ui->actionCreate_RSX_Capture->setEnabled(enabled);
|
||||||
|
ui->actionCreate_Savestate->setEnabled(enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
void main_window::OnEnableDiscEject(bool enabled) const
|
void main_window::OnEnableDiscEject(bool enabled) const
|
||||||
|
@ -2023,6 +2024,12 @@ void main_window::CreateConnects()
|
||||||
g_user_asked_for_frame_capture = true;
|
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->bootSavestateAct, &QAction::triggered, this, &main_window::BootSavestate);
|
||||||
|
|
||||||
connect(ui->addGamesAct, &QAction::triggered, this, [this]()
|
connect(ui->addGamesAct, &QAction::triggered, this, [this]()
|
||||||
|
|
|
@ -1145,6 +1145,14 @@
|
||||||
<string>Create RSX Capture</string>
|
<string>Create RSX Capture</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</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">
|
<action name="actionManage_Game_Patches">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Game Patches</string>
|
<string>Game Patches</string>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue