MOHAWK: Re-add saving autosave for Myst on quit

I haven't figured out a good way to an exit on save for all engines,
so I'm re-adding the save autosave on exit that Myst previously had,
to call the new common Engine autosave method
This commit is contained in:
Paul Gilbert 2020-02-05 08:09:11 -08:00 committed by Paul Gilbert
parent a2a8229abe
commit d97949857f
2 changed files with 7 additions and 0 deletions

View File

@ -624,6 +624,11 @@ void MohawkEngine_Myst::doFrame() {
break;
}
break;
case Common::EVENT_QUIT:
case Common::EVENT_RTL:
// Attempt to autosave before exiting
saveAutosaveIfEnabled();
break;
default:
break;
}

View File

@ -310,6 +310,7 @@ void MohawkEngine_Riven::processInput() {
case Common::EVENT_QUIT:
case Common::EVENT_RTL:
// Attempt to autosave before exiting
saveAutosaveIfEnabled();
break;
default:
break;
@ -826,6 +827,7 @@ void MohawkEngine_Riven::runOptionsDialog() {
if (hasGameEnded()) {
// Attempt to autosave before exiting
saveAutosaveIfEnabled();
}
_gfx->setTransitionMode((RivenTransitionMode) _vars["transitionmode"]);