mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
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:
parent
a2a8229abe
commit
d97949857f
@ -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;
|
||||
}
|
||||
|
@ -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"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user