[Scummvm-cvs-logs] SF.net SVN: scummvm:[52319] scummvm/trunk/engines/sci/detection.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Tue Aug 24 11:05:54 CEST 2010


Revision: 52319
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52319&view=rev
Author:   m_kiewitz
Date:     2010-08-24 09:05:54 +0000 (Tue, 24 Aug 2010)

Log Message:
-----------
SCI: changing maximum slots from 0-999 to 0-99

Modified Paths:
--------------
    scummvm/trunk/engines/sci/detection.cpp

Modified: scummvm/trunk/engines/sci/detection.cpp
===================================================================
--- scummvm/trunk/engines/sci/detection.cpp	2010-08-24 09:00:53 UTC (rev 52318)
+++ scummvm/trunk/engines/sci/detection.cpp	2010-08-24 09:05:54 UTC (rev 52319)
@@ -655,7 +655,7 @@
 		// Obtain the last 3 digits of the filename, since they correspond to the save slot
 		slotNum = atoi(file->c_str() + file->size() - 3);
 
-		if (slotNum >= 0 && slotNum < 999) {
+		if (slotNum >= 0 && slotNum <= 99) {
 			Common::InSaveFile *in = saveFileMan->openForLoading(*file);
 			if (in) {
 				SavegameMetadata meta;
@@ -722,7 +722,7 @@
 	return SaveStateDescriptor();
 }
 
-int SciMetaEngine::getMaximumSaveSlot() const { return 999; }
+int SciMetaEngine::getMaximumSaveSlot() const { return 99; }
 
 void SciMetaEngine::removeSaveState(const char *target, int slot) const {
 	Common::String fileName = Common::String::printf("%s.%03d", target, slot);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list