[Scummvm-cvs-logs] SF.net SVN: scummvm:[53837] scummvm/trunk/engines/sword25

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Oct 26 00:41:48 CEST 2010


Revision: 53837
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53837&view=rev
Author:   fingolfin
Date:     2010-10-25 22:41:48 +0000 (Mon, 25 Oct 2010)

Log Message:
-----------
SWORD25: 'Implement' RTL support & add TODOs about missing feature support

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

Modified: scummvm/trunk/engines/sword25/detection.cpp
===================================================================
--- scummvm/trunk/engines/sword25/detection.cpp	2010-10-25 22:41:34 UTC (rev 53836)
+++ scummvm/trunk/engines/sword25/detection.cpp	2010-10-25 22:41:48 UTC (rev 53837)
@@ -113,6 +113,7 @@
 	}
 
 	virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
+	virtual bool hasFeature(MetaEngineFeature f) const;
 };
 
 bool Sword25MetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
@@ -122,6 +123,22 @@
 	return desc != 0;
 }
 
+bool Sword25MetaEngine::hasFeature(MetaEngineFeature f) const {
+	return false;
+	// TODO: Implement some of these features!?
+#if 0
+	return
+		(f == kSupportsListSaves) ||
+		(f == kSupportsLoadingDuringStartup) ||
+		(f == kSupportsDeleteSave) ||
+		(f == kSavesSupportMetaInfo) ||
+		(f == kSavesSupportThumbnail) ||
+		(f == kSavesSupportCreationDate) ||
+		(f == kSavesSupportPlayTime);
+#endif
+}
+
+
 #if PLUGIN_ENABLED_DYNAMIC(SWORD25)
 	REGISTER_PLUGIN_DYNAMIC(SWORD25, PLUGIN_TYPE_ENGINE, Sword25MetaEngine);
 #else

Modified: scummvm/trunk/engines/sword25/sword25.cpp
===================================================================
--- scummvm/trunk/engines/sword25/sword25.cpp	2010-10-25 22:41:34 UTC (rev 53836)
+++ scummvm/trunk/engines/sword25/sword25.cpp	2010-10-25 22:41:48 UTC (rev 53837)
@@ -182,4 +182,17 @@
 	return true;
 }
 
+bool Sword25Engine::hasFeature(EngineFeature f) const {
+	return
+		(f == kSupportsRTL);
+	// TODO: Implement more of these features?!
+#if 0
+	return
+		(f == kSupportsSubtitleOptions) ||
+		(f == kSupportsRTL) ||
+		(f == kSupportsLoadingDuringRuntime) ||
+		(f == kSupportsSavingDuringRuntime);
+#endif
+}
+
 } // End of namespace Sword25

Modified: scummvm/trunk/engines/sword25/sword25.h
===================================================================
--- scummvm/trunk/engines/sword25/sword25.h	2010-10-25 22:41:34 UTC (rev 53836)
+++ scummvm/trunk/engines/sword25/sword25.h	2010-10-25 22:41:48 UTC (rev 53837)
@@ -72,6 +72,14 @@
 
 protected:
 	virtual Common::Error run();
+	bool hasFeature(EngineFeature f) const;
+// 	void pauseEngineIntern(bool pause);	// TODO: Implement this!!!
+// 	void syncSoundSettings();	// TODO: Implement this!!!
+// 	Common::Error loadGameState(int slot);	// TODO: Implement this?
+// 	Common::Error saveGameState(int slot, const char *desc);	// TODO: Implement this?
+// 	bool canLoadGameStateCurrently();	// TODO: Implement this?
+// 	bool canSaveGameStateCurrently();	// TODO: Implement this?
+
 	void shutdown();
 
 public:


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