mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Merge pull request #12828 from JosJuice/unify-state-variables-2
Clean up Core::GetState
This commit is contained in:
@ -159,7 +159,8 @@ void HotkeyScheduler::Run()
|
||||
if (!HotkeyManagerEmu::IsEnabled())
|
||||
continue;
|
||||
|
||||
if (Core::GetState(Core::System::GetInstance()) != Core::State::Stopping)
|
||||
Core::System& system = Core::System::GetInstance();
|
||||
if (Core::GetState(system) != Core::State::Stopping)
|
||||
{
|
||||
// Obey window focus (config permitting) before checking hotkeys.
|
||||
Core::UpdateInputGate(Config::Get(Config::MAIN_FOCUSED_HOTKEYS));
|
||||
@ -187,7 +188,7 @@ void HotkeyScheduler::Run()
|
||||
if (IsHotkey(HK_EXIT))
|
||||
emit ExitHotkey();
|
||||
|
||||
if (!Core::IsRunningAndStarted())
|
||||
if (Core::IsUninitialized(system))
|
||||
{
|
||||
// Only check for Play Recording hotkey when no game is running
|
||||
if (IsHotkey(HK_PLAY_RECORDING))
|
||||
|
Reference in New Issue
Block a user