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

@ -374,11 +374,7 @@ void AndroidHostInterface::EmulationThreadEntryPoint(JNIEnv* env, jobject emulat
{
// System is ready to go.
EmulationThreadLoop(env);
if (g_settings.save_state_on_exit)
SaveResumeSaveState();
PowerOffSystem();
PowerOffSystem(ShouldSaveResumeState());
}
// Drain any callbacks so we don't leave things in a screwed-up state for next boot.