[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.184,1.185

Gregory Montoir cyx at users.sourceforge.net
Wed Nov 23 11:12:03 CET 2005


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28902/sky

Modified Files:
	sky.cpp 
Log Message:
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.

Index: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.184
retrieving revision 1.185
diff -u -d -r1.184 -r1.185
--- sky.cpp	5 Nov 2005 19:00:15 -0000	1.184
+++ sky.cpp	23 Nov 2005 19:11:33 -0000	1.185
@@ -240,7 +240,7 @@
 
 		int32 frameTime = (int32)_system->getMillis();
 
-		if (_system->getMillis() - _lastSaveTime > 5 * 60 * 1000) {
+		if (shouldPerformAutoSave(_lastSaveTime)) {
 			if (_skyControl->loadSaveAllowed()) {
 				_lastSaveTime = _system->getMillis();
 				_skyControl->doAutoSave();





More information about the Scummvm-git-logs mailing list