mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Fix Emulation boot recursion
This commit is contained in:
parent
378a69ea85
commit
07df91d4e8
4 changed files with 85 additions and 4 deletions
|
|
@ -195,13 +195,17 @@ void gui_settings::ShowInfoBox(const QString& title, const QString& text, const
|
|||
|
||||
bool gui_settings::GetBootConfirmation(QWidget* parent, const gui_save& gui_save_entry)
|
||||
{
|
||||
auto info = Emu.GetEmulationIdentifier();
|
||||
// Ensure no game has booted inbetween
|
||||
const auto guard = Emu.MakeEmulationStateGuard();
|
||||
|
||||
const auto info = Emu.GetEmulationIdentifier();
|
||||
const auto old_status = Emu.GetStatus(false);
|
||||
|
||||
qt_events_aware_op(16, [&]()
|
||||
{
|
||||
if (Emu.GetStatus(false) != system_state::stopping)
|
||||
{
|
||||
ensure(info == Emu.GetEmulationIdentifier());
|
||||
ensure(info == Emu.GetEmulationIdentifier(old_status == system_state::stopping ? true : false));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue