[Scummvm-cvs-logs] SF.net SVN: scummvm:[34969] scummvm/trunk/engines
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sun Nov 9 20:30:09 CET 2008
Revision: 34969
http://scummvm.svn.sourceforge.net/scummvm/?rev=34969&view=rev
Author: thebluegr
Date: 2008-11-09 19:30:09 +0000 (Sun, 09 Nov 2008)
Log Message:
-----------
Added a getMaximumSaveSlot() implementation for sword1 and sword2
Modified Paths:
--------------
scummvm/trunk/engines/sword1/sword1.cpp
scummvm/trunk/engines/sword2/sword2.cpp
Modified: scummvm/trunk/engines/sword1/sword1.cpp
===================================================================
--- scummvm/trunk/engines/sword1/sword1.cpp 2008-11-09 19:14:39 UTC (rev 34968)
+++ scummvm/trunk/engines/sword1/sword1.cpp 2008-11-09 19:30:09 UTC (rev 34969)
@@ -99,6 +99,7 @@
virtual GameDescriptor findGame(const char *gameid) const;
virtual GameList detectGames(const Common::FSList &fslist) const;
virtual SaveStateList listSaves(const char *target) const;
+ virtual int getMaximumSaveSlot() const;
virtual Common::Error createInstance(OSystem *syst, Engine **engine) const;
};
@@ -268,6 +269,8 @@
return saveList;
}
+int SwordMetaEngine::getMaximumSaveSlot() const { return 999; }
+
#if PLUGIN_ENABLED_DYNAMIC(SWORD1)
REGISTER_PLUGIN_DYNAMIC(SWORD1, PLUGIN_TYPE_ENGINE, SwordMetaEngine);
#else
Modified: scummvm/trunk/engines/sword2/sword2.cpp
===================================================================
--- scummvm/trunk/engines/sword2/sword2.cpp 2008-11-09 19:14:39 UTC (rev 34968)
+++ scummvm/trunk/engines/sword2/sword2.cpp 2008-11-09 19:30:09 UTC (rev 34969)
@@ -85,6 +85,7 @@
virtual GameDescriptor findGame(const char *gameid) const;
virtual GameList detectGames(const Common::FSList &fslist) const;
virtual SaveStateList listSaves(const char *target) const;
+ virtual int getMaximumSaveSlot() const;
virtual void removeSaveState(const char *target, int slot) const;
virtual Common::Error createInstance(OSystem *syst, Engine **engine) const;
@@ -201,6 +202,8 @@
return saveList;
}
+int Sword2MetaEngine::getMaximumSaveSlot() const { return 999; }
+
void Sword2MetaEngine::removeSaveState(const char *target, int slot) const {
char extension[6];
snprintf(extension, sizeof(extension), ".%03d", 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