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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Jul 27 19:48:40 CEST 2009


Revision: 42845
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42845&view=rev
Author:   lordhoto
Date:     2009-07-27 17:48:40 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
Fix bug #2827459 "ITE: Ingame GUI does not list slots 96-99", by defining in SagaMetaEngine that the last valid save slot for SAGA is slot 95.

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

Modified: scummvm/trunk/engines/saga/detection.cpp
===================================================================
--- scummvm/trunk/engines/saga/detection.cpp	2009-07-27 17:04:06 UTC (rev 42844)
+++ scummvm/trunk/engines/saga/detection.cpp	2009-07-27 17:48:40 UTC (rev 42845)
@@ -204,7 +204,7 @@
 		// Obtain the last 2 digits of the filename, since they correspond to the save slot
 		slotNum = atoi(file->c_str() + file->size() - 2);
 
-		if (slotNum >= 0 && slotNum <= 99) {
+		if (slotNum >= 0 && slotNum < MAX_SAVES) {
 			Common::InSaveFile *in = saveFileMan->openForLoading(*file);
 			if (in) {
 				for (int i = 0; i < 3; i++)
@@ -219,7 +219,7 @@
 	return saveList;
 }
 
-int SagaMetaEngine::getMaximumSaveSlot() const { return 99; }
+int SagaMetaEngine::getMaximumSaveSlot() const { return MAX_SAVES - 1; }
 
 void SagaMetaEngine::removeSaveState(const char *target, int slot) const {
 	char extension[6];


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