Merge pull request #12449 from lioncash/uicommon

UICommon: Remove global system accessor in TriggerSTMPowerEvent()
This commit is contained in:
OatmealDome 2023-12-18 20:10:23 -05:00 committed by GitHub
commit 475c142e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,8 +492,7 @@ bool TriggerSTMPowerEvent()
return false; return false;
Core::DisplayMessage("Shutting down", 30000); Core::DisplayMessage("Shutting down", 30000);
auto& system = Core::System::GetInstance(); ios->GetSystem().GetProcessorInterface().PowerButton_Tap();
system.GetProcessorInterface().PowerButton_Tap();
return true; return true;
} }