summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/Platform.cpp
diff options
context:
space:
mode:
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();
}