mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Core::GetState: Avoid Global System Accessor
This commit is contained in:
@ -432,9 +432,10 @@ void Init()
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (Core::GetState() != Core::State::Uninitialized && Core::GetState() != Core::State::Starting)
|
||||
auto& system = Core::System::GetInstance();
|
||||
if (const Core::State state = Core::GetState(system);
|
||||
state != Core::State::Uninitialized && state != Core::State::Starting)
|
||||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& core_timing = system.GetCoreTiming();
|
||||
if ((core_timing.GetTicks() - s_last_init) < system.GetSystemTimers().GetTicksPerSecond())
|
||||
return;
|
||||
|
Reference in New Issue
Block a user