From 9b09900a0745a016b0ca13ce88bb9a26ab6e0547 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 17 Jun 2017 13:15:23 -0400 Subject: TITANIC: Minor cleanups, comments, and feature flags to meta engine --- engines/titanic/detection.cpp | 10 ++++------ engines/titanic/titanic.h | 8 +++++++- 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'engines') diff --git a/engines/titanic/detection.cpp b/engines/titanic/detection.cpp index 33bae22312..8c990e2525 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 12a880e6c2..ea664a801f 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; /** -- cgit v1.2.3