mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Core::GetState: Avoid Global System Accessor
This commit is contained in:
@ -239,7 +239,8 @@ void NetworkWidget::Update()
|
||||
if (!isVisible())
|
||||
return;
|
||||
|
||||
if (Core::GetState() != Core::State::Paused)
|
||||
auto& system = Core::System::GetInstance();
|
||||
if (Core::GetState(system) != Core::State::Paused)
|
||||
{
|
||||
m_socket_table->setDisabled(true);
|
||||
m_ssl_table->setDisabled(true);
|
||||
@ -250,9 +251,9 @@ void NetworkWidget::Update()
|
||||
m_ssl_table->setDisabled(false);
|
||||
|
||||
// needed because there's a race condition on the IOS instance otherwise
|
||||
Core::CPUThreadGuard guard(Core::System::GetInstance());
|
||||
const Core::CPUThreadGuard guard(system);
|
||||
|
||||
auto* ios = guard.GetSystem().GetIOS();
|
||||
auto* ios = system.GetIOS();
|
||||
if (!ios)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user