System: Mark the VM as Stopping in ShutdownSystem unconditionally

Fixes an issue where Discord RPC didn't revert to "No Game Running"
on shutdown.
This commit is contained in:
Silent 2023-12-23 15:27:10 +01:00
parent d08a40bcd8
commit 8d491d3faa
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 2 additions and 3 deletions

View File

@ -4138,9 +4138,8 @@ void System::ShutdownSystem(bool save_resume_state)
if (save_resume_state)
SaveResumeState();
if (s_system_executing)
s_state = State::Stopping;
else
s_state = State::Stopping;
if (!s_system_executing)
DestroySystem();
}