mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Core::GetState: Avoid Global System Accessor
This commit is contained in:
@ -42,7 +42,8 @@
|
||||
|
||||
- (void)togglePause
|
||||
{
|
||||
if (Core::GetState() == Core::State::Running)
|
||||
auto& system = Core::System::GetInstance();
|
||||
if (Core::GetState(system) == Core::State::Running)
|
||||
Core::SetState(Core::State::Paused);
|
||||
else
|
||||
Core::SetState(Core::State::Running);
|
||||
@ -263,8 +264,10 @@ void PlatformMacOS::ProcessEvents()
|
||||
{
|
||||
m_window_focus = true;
|
||||
if (Config::Get(Config::MAIN_SHOW_CURSOR) == Config::ShowCursor::Never &&
|
||||
Core::GetState() != Core::State::Paused)
|
||||
Core::GetState(Core::System::GetInstance()) != Core::State::Paused)
|
||||
{
|
||||
[NSCursor unhide];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user