aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.h
diff options
context:
space:
mode:
authorDavid Fioramonti2018-05-19 12:46:36 -0700
committerBastien Bouclet2018-05-20 15:17:14 +0200
commit37791c4bd3b33aa042fc966d4ed2b1f5369b0939 (patch)
tree7e367e3ef0f063865ecda19073d08c584e20782b /engines/mohawk/riven.h
parent1606d6688d665eccf7b2535cb42b84d684e98076 (diff)
downloadscummvm-rg350-37791c4bd3b33aa042fc966d4ed2b1f5369b0939.tar.gz
scummvm-rg350-37791c4bd3b33aa042fc966d4ed2b1f5369b0939.tar.bz2
scummvm-rg350-37791c4bd3b33aa042fc966d4ed2b1f5369b0939.zip
MOHAWK: RIVEN: Add Autosave Support
The game will autosave to slot 0 using the save period given in the scummvm config file. Or when the user quits. Autosaves are only allowed when an autosave is in slot 0, there is no save in slot 0, or there is a save, but it is corrupt. This will not override any saves the player has previously put in save slot 0. If there is a save in slot 0 that is not an autosave then there will be no autosaving.
Diffstat (limited to 'engines/mohawk/riven.h')
-rw-r--r--engines/mohawk/riven.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/riven.h b/engines/mohawk/riven.h
index 6ad1208cf3..3dc19c7ee4 100644
--- a/engines/mohawk/riven.h
+++ b/engines/mohawk/riven.h
@@ -121,6 +121,7 @@ private:
RivenStack *_stack;
bool _gameEnded;
+ uint32 _lastSaveTime;
// Variables
void initVars();
@@ -152,6 +153,7 @@ public:
// Save / Load
void runLoadDialog();
void runSaveDialog();
+ void tryAutoSaving();
void loadGameStateAndDisplayError(int slot);
void saveGameStateAndDisplayError(int slot, const Common::String &desc);