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
1 changed files with 1 additions and 2 deletions

View File

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