summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/Platform.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2024-02-08 08:59:01 -0500
committerGitHub <noreply@github.com>2024-02-08 08:59:01 -0500
commitc61f9d92c789c739de3f76657adc7ce2bb0d985b (patch)
tree9d48ec7921d7d77671331b3c3541fa1297d29c8f /Source/Core/DolphinNoGUI/Platform.cpp
parentca81d8b8a635b58636b3e68b9ce7d7add49cccdf (diff)
parente6ee217a7ce81ffd2e84d978aaf960874ec2a91d (diff)
Merge pull request #12570 from AdmiralCurtiss/system-ios
Core: Move Emulation IOS instance to System.
Diffstat (limited to 'Source/Core/DolphinNoGUI/Platform.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/Platform.cpp4
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();
}