From 800ee561c9103793083061588508415bab47e281 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Wed, 21 Aug 2013 11:22:51 +0100 Subject: MORTEVIELLE: Add detection entry for improved German translation I also reworked a bit how detection work so that both the original and the improved German translations can be played. --- engines/mortevielle/detection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/mortevielle/detection.cpp') diff --git a/engines/mortevielle/detection.cpp b/engines/mortevielle/detection.cpp index 8e2eab52b8..ee9cb40c99 100644 --- a/engines/mortevielle/detection.cpp +++ b/engines/mortevielle/detection.cpp @@ -30,6 +30,7 @@ namespace Mortevielle { struct MortevielleGameDescription { ADGameDescription desc; Common::Language originalLanguage; + uint8 dataFeature; }; uint32 MortevielleEngine::getGameFlags() const { return _gameDescription->desc.flags; } @@ -38,6 +39,8 @@ Common::Language MortevielleEngine::getLanguage() const { return _gameDescriptio Common::Language MortevielleEngine::getOriginalLanguage() const { return _gameDescription->originalLanguage; } +bool MortevielleEngine::useOriginalData() const { return _gameDescription->dataFeature == kUseOriginalData; } + } static const PlainGameDescriptor MortevielleGame[] = { @@ -53,6 +56,9 @@ public: MortevielleGame) { _md5Bytes = 512; _singleid = "mortevielle"; + // Use kADFlagUseExtraAsHint to distinguish between original and improved versions + // (i.e. use or not of the game data file). + _flags = kADFlagUseExtraAsHint; } virtual const char *getName() const { return "Mortevielle"; -- cgit v1.2.3