From e6ee217a7ce81ffd2e84d978aaf960874ec2a91d Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 6 Feb 2024 03:31:34 +0100 Subject: Core: Move Emulation IOS instance to System. --- Source/Core/DolphinNoGUI/Platform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinNoGUI/Platform.cpp') diff --git a/Source/Core/DolphinNoGUI/Platform.cpp b/Source/Core/DolphinNoGUI/Platform.cpp index 52321da95c..04319b5da4 100644 --- a/Source/Core/DolphinNoGUI/Platform.cpp +++ b/Source/Core/DolphinNoGUI/Platform.cpp @@ -23,12 +23,12 @@ void Platform::UpdateRunningFlag() { if (m_shutdown_requested.TestAndClear()) { - const auto ios = IOS::HLE::GetIOS(); + auto& system = Core::System::GetInstance(); + const auto ios = system.GetIOS(); const auto stm = ios ? ios->GetDeviceByName("/dev/stm/eventhook") : nullptr; if (!m_tried_graceful_shutdown.IsSet() && stm && std::static_pointer_cast(stm)->HasHookInstalled()) { - auto& system = Core::System::GetInstance(); system.GetProcessorInterface().PowerButton_Tap(); m_tried_graceful_shutdown.Set(); } -- cgit v1.2.3