CommonHostInterface: Move save state on exit logic to base class

This commit is contained in:
Connor McLaughlin
2021-03-03 01:14:05 +10:00
parent 7645ca3836
commit c58227752d
9 changed files with 25 additions and 35 deletions

View File

@ -550,9 +550,7 @@ static void DoPowerOff()
if (!System::IsValid())
return;
if (g_settings.save_state_on_exit)
s_host_interface->SaveResumeSaveState();
s_host_interface->PowerOffSystem();
s_host_interface->PowerOffSystem(s_host_interface->ShouldSaveResumeState());
ReturnToMainWindow();
});