diff options
author | Gregory Montoir | 2005-11-23 19:11:33 +0000 |
---|---|---|
committer | Gregory Montoir | 2005-11-23 19:11:33 +0000 |
commit | fe9def0ac070252ee55e81236ba78674615d33bb (patch) | |
tree | 530f38c5f5cdb69e278dfcfb9d7a4d9cd52eef88 /scumm | |
parent | d7351092a9fa50e6ba9e88947ed2dc6e1b0da0ff (diff) | |
download | scummvm-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 'scumm')
-rw-r--r-- | scumm/scumm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 20e5b7b5dc..1e60334657 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -2359,8 +2359,8 @@ int ScummEngine::scummLoop(int delta) { } } - // Trigger autosave all 5 minutes. - if (!_saveLoadFlag && _system->getMillis() > _lastSaveTime + 5 * 60 * 1000) { + // Trigger autosave if necessary. + if (!_saveLoadFlag && shouldPerformAutoSave(_lastSaveTime)) { _saveLoadSlot = 0; sprintf(_saveLoadName, "Autosave %d", _saveLoadSlot); _saveLoadFlag = 1; |