diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-01-04 11:46:45 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-04 11:46:45 +0000 |
| commit | b6b46d8af3f410db819592b699b4922871238b28 (patch) | |
| tree | bbb2f79dd8b779da8415b5d735adeae0931109f1 /Source/Core/DolphinNoGUI/Platform.cpp | |
| parent | 908cec04cb523a7c09db857fe5633e00cac50943 (diff) | |
| parent | 2fdaf0a86e969374a5a7f3e7e748fca9a189e331 (diff) | |
Merge pull request #11404 from AdmiralCurtiss/globals-processor-interface
HW/ProcessorInterface: Refactor to class, move to Core::System.
Diffstat (limited to 'Source/Core/DolphinNoGUI/Platform.cpp')
| -rw-r--r-- | Source/Core/DolphinNoGUI/Platform.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/DolphinNoGUI/Platform.cpp b/Source/Core/DolphinNoGUI/Platform.cpp index d2caa71da8..52321da95c 100644 --- a/Source/Core/DolphinNoGUI/Platform.cpp +++ b/Source/Core/DolphinNoGUI/Platform.cpp @@ -2,14 +2,11 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include "DolphinNoGUI/Platform.h" +#include "Core/HW/ProcessorInterface.h" #include "Core/IOS/IOS.h" #include "Core/IOS/STM/STM.h" #include "Core/State.h" - -namespace ProcessorInterface -{ -void PowerButton_Tap(); -} +#include "Core/System.h" Platform::~Platform() = default; @@ -31,7 +28,8 @@ void Platform::UpdateRunningFlag() if (!m_tried_graceful_shutdown.IsSet() && stm && std::static_pointer_cast<IOS::HLE::STMEventHookDevice>(stm)->HasHookInstalled()) { - ProcessorInterface::PowerButton_Tap(); + auto& system = Core::System::GetInstance(); + system.GetProcessorInterface().PowerButton_Tap(); m_tried_graceful_shutdown.Set(); } else |
