[Scummvm-git-logs] scummvm master -> 9b09900a0745a016b0ca13ce88bb9a26ab6e0547

dreammaster dreammaster at scummvm.org
Sat Jun 17 19:15:37 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9b09900a07 TITANIC: Minor cleanups, comments, and feature flags to meta engine


Commit: 9b09900a0745a016b0ca13ce88bb9a26ab6e0547
    https://github.com/scummvm/scummvm/commit/9b09900a0745a016b0ca13ce88bb9a26ab6e0547
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-06-17T13:15:23-04:00

Commit Message:
TITANIC: Minor cleanups, comments, and feature flags to meta engine

Changed paths:
    engines/titanic/detection.cpp
    engines/titanic/titanic.h


diff --git a/engines/titanic/detection.cpp b/engines/titanic/detection.cpp
index 33bae22..8c990e2 100644
--- a/engines/titanic/detection.cpp
+++ b/engines/titanic/detection.cpp
@@ -45,10 +45,6 @@ uint32 TitanicEngine::getFeatures() const {
 	return _gameDescription->desc.flags;
 }
 
-bool TitanicEngine::isDemo() const {
-	return (bool)(_gameDescription->desc.flags & ADGF_DEMO);
-}
-
 Common::Language TitanicEngine::getLanguage() const {
 	return _gameDescription->desc.language;
 }
@@ -73,7 +69,7 @@ public:
 	}
 
 	virtual const char *getOriginalCopyright() const {
-		return "Titanic Engine (c)";
+		return "Titanic Engine (c) The Digital Village";
 	}
 
 	virtual bool hasFeature(MetaEngineFeature f) const;
@@ -86,10 +82,12 @@ public:
 
 bool TitanicMetaEngine::hasFeature(MetaEngineFeature f) const {
 	return
-	    (f == kSupportsListSaves) ||
+		(f == kSupportsListSaves) ||
 		(f == kSupportsLoadingDuringStartup) ||
 		(f == kSupportsDeleteSave) ||
 		(f == kSavesSupportMetaInfo) ||
+		(f == kSavesSupportCreationDate) ||
+		(f == kSavesSupportPlayTime) ||
 		(f == kSavesSupportThumbnail) ||
 		(f == kSimpleSavesNames);
 }
diff --git a/engines/titanic/titanic.h b/engines/titanic/titanic.h
index 12a880e..ea664a8 100644
--- a/engines/titanic/titanic.h
+++ b/engines/titanic/titanic.h
@@ -149,8 +149,14 @@ public:
 	 */
 	virtual Common::Error saveGameState(int slot, const Common::String &desc);
 
+	/**
+	 * Gets the game features
+	 */
 	uint32 getFeatures() const;
-	bool isDemo() const;
+
+	/**
+	 * Returns the language for the game
+	 */
 	Common::Language getLanguage() const;
 
 	/**





More information about the Scummvm-git-logs mailing list