mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-17 06:01:24 +01:00
Loader: Fix graceful Emu Restart
This wasn't working because GracefulShutdown was guarding the boot
This commit is contained in:
parent
d5bf11703d
commit
ec7f666c6b
|
|
@ -3991,6 +3991,9 @@ game_boot_result Emulator::Restart(bool graceful)
|
|||
m_path = m_path_real;
|
||||
}
|
||||
|
||||
// Allow Boot (guarded by GracefulShutdown, which is the scope of this callback)
|
||||
m_restrict_emu_state_change = 0;
|
||||
|
||||
// Reload with prior configs.
|
||||
if (const auto error = Load(m_title_id); error != game_boot_result::no_errors)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ public:
|
|||
{
|
||||
if (active)
|
||||
{
|
||||
_this->m_restrict_emu_state_change--;
|
||||
_this->m_restrict_emu_state_change.try_dec(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue