diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-02-06 03:31:34 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-02-07 22:07:30 +0100 |
| commit | e6ee217a7ce81ffd2e84d978aaf960874ec2a91d (patch) | |
| tree | 9d48ec7921d7d77671331b3c3541fa1297d29c8f /Source/Core/DolphinNoGUI | |
| parent | ca81d8b8a635b58636b3e68b9ce7d7add49cccdf (diff) | |
Core: Move Emulation IOS instance to System.
Diffstat (limited to 'Source/Core/DolphinNoGUI')
| -rw-r--r-- | Source/Core/DolphinNoGUI/Platform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<IOS::HLE::STMEventHookDevice>(stm)->HasHookInstalled()) { - auto& system = Core::System::GetInstance(); system.GetProcessorInterface().PowerButton_Tap(); m_tried_graceful_shutdown.Set(); } |
