mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
HW/ProcessorInterface: Refactor to class, move to Core::System.
This commit is contained in:
parent
908cec04cb
commit
74e1577a2c
26 changed files with 200 additions and 144 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue