mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Qt: spawn Confirmation Dialog on when booting games while Emu is running
This commit is contained in:
parent
5f9b441dd7
commit
daee2a27a3
5 changed files with 29 additions and 0 deletions
|
|
@ -270,6 +270,19 @@ void main_window::OnPlayOrPause()
|
|||
|
||||
void main_window::Boot(const std::string& path, bool direct, bool add_only)
|
||||
{
|
||||
if (!Emu.IsStopped())
|
||||
{
|
||||
int result;
|
||||
guiSettings->ShowConfirmationBox(tr("Close Running Game?"),
|
||||
tr("Booting another game will close the current game.\nDo you really want to boot another game?\n\nAny unsaved progress will be lost!\n"),
|
||||
gui::ib_confirm_boot, &result, this);
|
||||
|
||||
if (result != QMessageBox::Yes)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
SetAppIconFromPath(path);
|
||||
Emu.SetForceBoot(true);
|
||||
Emu.Stop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue