aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_state.h
diff options
context:
space:
mode:
authorDavid Fioramonti2018-04-28 06:58:12 -0700
committerBastien Bouclet2018-05-19 17:56:05 +0200
commit719c2b83742495f1619d62088d14f8b63fd50aaa (patch)
tree2125be2de2cbcc9bfe42f87ea467b5bf1fbe488c /engines/mohawk/myst_state.h
parent43babaeef8ff385b1f10be1c2fa917085afd2f88 (diff)
downloadscummvm-rg350-719c2b83742495f1619d62088d14f8b63fd50aaa.tar.gz
scummvm-rg350-719c2b83742495f1619d62088d14f8b63fd50aaa.tar.bz2
scummvm-rg350-719c2b83742495f1619d62088d14f8b63fd50aaa.zip
MOHAWK: MYST: Autosave to Slot 0
The game will autosave to slot 0 using the save period given in the scummvm config file or when the user exits using the GMM. Autosaves are only allowed when an autosave is in slot 0 or there is no save in slot 0. 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/myst_state.h')
-rw-r--r--engines/mohawk/myst_state.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/mohawk/myst_state.h b/engines/mohawk/myst_state.h
index 0eb7d56525..8ff87d1bbc 100644
--- a/engines/mohawk/myst_state.h
+++ b/engines/mohawk/myst_state.h
@@ -47,6 +47,8 @@ struct MystSaveMetadata {
uint32 totalPlayTime;
+ bool autoSave;
+
Common::String saveDescription;
MystSaveMetadata();
@@ -105,7 +107,8 @@ public:
static Common::String querySaveDescription(int slot);
bool load(int slot);
- bool save(int slot, const Common::String &desc);
+ bool save(int slot, const Common::String &desc, bool autoSave);
+ bool isAutoSaveAllowed();
static void deleteSave(int slot);
void addZipDest(uint16 stack, uint16 view);
@@ -340,7 +343,7 @@ private:
bool loadState(int slot);
void loadMetadata(int slot);
bool saveState(int slot);
- void updateMetadateForSaving(const Common::String &desc);
+ void updateMetadateForSaving(const Common::String &desc, bool autoSave);
bool saveMetadata(int slot);
// The values in these regions are lists of VIEW resources