Core: Move Emulation IOS instance to System.

This commit is contained in:
Admiral H. Curtiss
2024-02-07 22:07:30 +01:00
parent ca81d8b8a6
commit e6ee217a7c
21 changed files with 65 additions and 51 deletions
@@ -209,7 +209,7 @@ void WiimoteControllersWidget::ConnectWidgets()
void WiimoteControllersWidget::OnBluetoothPassthroughResetPressed()
{
const auto ios = IOS::HLE::GetIOS();
const auto ios = Core::System::GetInstance().GetIOS();
if (!ios)
{
@@ -226,7 +226,7 @@ void WiimoteControllersWidget::OnBluetoothPassthroughResetPressed()
void WiimoteControllersWidget::OnBluetoothPassthroughSyncPressed()
{
const auto ios = IOS::HLE::GetIOS();
const auto ios = Core::System::GetInstance().GetIOS();
if (!ios)
{
@@ -252,7 +252,7 @@ void NetworkWidget::Update()
// needed because there's a race condition on the IOS instance otherwise
Core::CPUThreadGuard guard(Core::System::GetInstance());
auto* ios = IOS::HLE::GetIOS();
auto* ios = guard.GetSystem().GetIOS();
if (!ios)
return;