aboutsummaryrefslogtreecommitdiff
path: root/base/engine.h
diff options
context:
space:
mode:
authorGregory Montoir2005-11-23 19:11:33 +0000
committerGregory Montoir2005-11-23 19:11:33 +0000
commitfe9def0ac070252ee55e81236ba78674615d33bb (patch)
tree530f38c5f5cdb69e278dfcfb9d7a4d9cd52eef88 /base/engine.h
parentd7351092a9fa50e6ba9e88947ed2dc6e1b0da0ff (diff)
downloadscummvm-rg350-fe9def0ac070252ee55e81236ba78674615d33bb.tar.gz
scummvm-rg350-fe9def0ac070252ee55e81236ba78674615d33bb.tar.bz2
scummvm-rg350-fe9def0ac070252ee55e81236ba78674615d33bb.zip
Made the autosave period a configuration option and updated the engines using that feature (SCUMM, Queen and Sky). The value is supposed to be in seconds ; if it's set to 0 then autosaving is disabled. See also tracker item #1350187.
svn-id: r19700
Diffstat (limited to 'base/engine.h')
-rw-r--r--base/engine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/engine.h b/base/engine.h
index 474c0c3783..5dafb272bc 100644
--- a/base/engine.h
+++ b/base/engine.h
@@ -44,6 +44,9 @@ protected:
const Common::String _gameDataPath;
Common::SaveFileManager *_saveFileMan;
+private:
+ int _autosavePeriod;
+
public:
Engine(OSystem *syst);
virtual ~Engine();
@@ -72,6 +75,9 @@ public:
/** On some systems, check if the game appears to be run from CD. */
void checkCD();
+
+ /* Indicate if an autosave should be performed */
+ bool shouldPerformAutoSave(int lastSaveTime);
};
extern Engine *g_engine;