Loader: Fix graceful Emu Restart

This wasn't working because GracefulShutdown was guarding the boot
This commit is contained in:
Megamouse 2026-01-12 01:37:54 +01:00
parent d5bf11703d
commit ec7f666c6b
2 changed files with 4 additions and 1 deletions

View file

@ -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)
{

View file

@ -394,7 +394,7 @@ public:
{
if (active)
{
_this->m_restrict_emu_state_change--;
_this->m_restrict_emu_state_change.try_dec(0);
}
}