[Scummvm-cvs-logs] SF.net SVN: scummvm:[35008] scummvm/trunk/engines/touche

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Nov 11 18:57:13 CET 2008


Revision: 35008
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35008&view=rev
Author:   thebluegr
Date:     2008-11-11 17:57:13 +0000 (Tue, 11 Nov 2008)

Log Message:
-----------
Added save/load support from the GMM for the touche engine

Modified Paths:
--------------
    scummvm/trunk/engines/touche/detection.cpp
    scummvm/trunk/engines/touche/touche.cpp
    scummvm/trunk/engines/touche/touche.h

Modified: scummvm/trunk/engines/touche/detection.cpp
===================================================================
--- scummvm/trunk/engines/touche/detection.cpp	2008-11-11 17:34:52 UTC (rev 35007)
+++ scummvm/trunk/engines/touche/detection.cpp	2008-11-11 17:57:13 UTC (rev 35008)
@@ -153,7 +153,9 @@
 
 bool Touche::ToucheEngine::hasFeature(EngineFeature f) const {
 	return
-		(f == kSupportsRTL);
+		(f == kSupportsRTL) ||
+		(f == kSupportsLoadingDuringRuntime) ||
+		(f == kSupportsSavingDuringRuntime);
 }
 
 bool ToucheMetaEngine::createInstance(OSystem *syst, Engine **engine, const Common::ADGameDescription *desc) const {

Modified: scummvm/trunk/engines/touche/touche.cpp
===================================================================
--- scummvm/trunk/engines/touche/touche.cpp	2008-11-11 17:34:52 UTC (rev 35007)
+++ scummvm/trunk/engines/touche/touche.cpp	2008-11-11 17:57:13 UTC (rev 35008)
@@ -3286,4 +3286,12 @@
 	_system->setPalette(_paletteBuffer, 0, 256);
 }
 
+bool ToucheEngine::canLoadGameStateCurrently() { 
+	return (_flagsTable[618] == 0 && !_hideInventoryTexts);
+}
+
+bool ToucheEngine::canSaveGameStateCurrently() { 
+	return (_flagsTable[618] == 0 && !_hideInventoryTexts);
+}
+
 } // namespace Touche

Modified: scummvm/trunk/engines/touche/touche.h
===================================================================
--- scummvm/trunk/engines/touche/touche.h	2008-11-11 17:34:52 UTC (rev 35007)
+++ scummvm/trunk/engines/touche/touche.h	2008-11-11 17:57:13 UTC (rev 35008)
@@ -499,6 +499,8 @@
 	void loadGameStateData(Common::ReadStream *stream);
 	Common::Error saveGameState(int num, const char *description);
 	Common::Error loadGameState(int num);
+	bool canLoadGameStateCurrently();
+	bool canSaveGameStateCurrently();
 	void readGameStateDescription(int num, char *description, int len);
 	void generateGameStateFileName(int num, char *dst, int len, bool prefixOnly = false) const;
 	int getGameStateFileSlot(const char *filename) const;


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