mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Core::GetState: Avoid Global System Accessor
This commit is contained in:
@ -113,7 +113,7 @@ static void HandleFrameStepHotkeys()
|
||||
|
||||
if ((frame_step_count == 0 || frame_step_count == FRAME_STEP_DELAY) && !frame_step_hold)
|
||||
{
|
||||
Core::DoFrameStep();
|
||||
Core::DoFrameStep(Core::System::GetInstance());
|
||||
frame_step_hold = true;
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ void HotkeyScheduler::Run()
|
||||
if (!HotkeyManagerEmu::IsEnabled())
|
||||
continue;
|
||||
|
||||
if (Core::GetState() != Core::State::Stopping)
|
||||
if (Core::GetState(Core::System::GetInstance()) != Core::State::Stopping)
|
||||
{
|
||||
// Obey window focus (config permitting) before checking hotkeys.
|
||||
Core::UpdateInputGate(Config::Get(Config::MAIN_FOCUSED_HOTKEYS));
|
||||
|
Reference in New Issue
Block a user