aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/detection.cpp
diff options
context:
space:
mode:
authorThierry Crozat2013-08-21 11:22:51 +0100
committerThierry Crozat2013-08-21 11:22:51 +0100
commit800ee561c9103793083061588508415bab47e281 (patch)
treeae3765e72dec84d77d5f53caa97ad1c6ae38be06 /engines/mortevielle/detection.cpp
parent3ef4222f33bc6e888ff7e4d25f7f8a3b3a7bd5bf (diff)
downloadscummvm-rg350-800ee561c9103793083061588508415bab47e281.tar.gz
scummvm-rg350-800ee561c9103793083061588508415bab47e281.tar.bz2
scummvm-rg350-800ee561c9103793083061588508415bab47e281.zip
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.
Diffstat (limited to 'engines/mortevielle/detection.cpp')
-rw-r--r--engines/mortevielle/detection.cpp6
1 files changed, 6 insertions, 0 deletions
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";