From 13d41dca41982be9a7d56e945d543344b1692c4a Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 30 Sep 2010 12:59:18 +0000 Subject: GOB: Add kFeaturesTrueColor svn-id: r52943 --- engines/gob/detection_tables.h | 12 ++++++------ engines/gob/gob.cpp | 4 ++++ engines/gob/gob.h | 18 ++++++++++-------- 3 files changed, 20 insertions(+), 14 deletions(-) (limited to 'engines/gob') diff --git a/engines/gob/detection_tables.h b/engines/gob/detection_tables.h index 09d2c5e775..93c1cc6d1c 100644 --- a/engines/gob/detection_tables.h +++ b/engines/gob/detection_tables.h @@ -3722,7 +3722,7 @@ static const GOBGameDescription gameDescriptions[] = { GUIO_NOSUBTITLES | GUIO_NOSPEECH }, kGameTypeUrban, - kFeatures640x480, + kFeatures640x480 | kFeaturesTrueColor, 0, 0, 0 }, { // Supplied by gamin in the forums @@ -3736,7 +3736,7 @@ static const GOBGameDescription gameDescriptions[] = { GUIO_NOSUBTITLES | GUIO_NOSPEECH }, kGameTypeUrban, - kFeatures640x480, + kFeatures640x480 | kFeaturesTrueColor, 0, 0, 0 }, { // Supplied by jvprat on #scummvm @@ -3750,7 +3750,7 @@ static const GOBGameDescription gameDescriptions[] = { GUIO_NOSUBTITLES | GUIO_NOSPEECH }, kGameTypeUrban, - kFeatures640x480, + kFeatures640x480 | kFeaturesTrueColor, 0, 0, 0 }, { // Supplied by goodoldgeorg in bug report #2770340 @@ -3764,7 +3764,7 @@ static const GOBGameDescription gameDescriptions[] = { GUIO_NOSUBTITLES | GUIO_NOSPEECH }, kGameTypeUrban, - kFeatures640x480, + kFeatures640x480 | kFeaturesTrueColor, 0, 0, 0 }, { @@ -3783,7 +3783,7 @@ static const GOBGameDescription gameDescriptions[] = { GUIO_NONE }, kGameTypeUrban, - kFeatures640x480 | kFeaturesSCNDemo, + kFeatures640x480 | kFeaturesTrueColor | kFeaturesSCNDemo, 0, 0, 2 }, { @@ -4923,7 +4923,7 @@ static const GOBGameDescription fallbackDescs[] = { GUIO_NOSUBTITLES | GUIO_NOSPEECH }, kGameTypeUrban, - kFeaturesCD, + kFeaturesCD | kFeaturesTrueColor, 0, 0, 0 }, { //13 diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp index 20a9b80bb5..e97dce836c 100644 --- a/engines/gob/gob.cpp +++ b/engines/gob/gob.cpp @@ -229,6 +229,10 @@ bool GobEngine::is800x600() const { return (_features & kFeatures800x600) != 0; } +bool GobEngine::isTrueColor() const { + return (_features & kFeaturesTrueColor) != 0; +} + bool GobEngine::isDemo() const { return (isSCNDemo() || isBATDemo()); } diff --git a/engines/gob/gob.h b/engines/gob/gob.h index 4a8e9364fe..9b07568223 100644 --- a/engines/gob/gob.h +++ b/engines/gob/gob.h @@ -119,14 +119,15 @@ enum GameType { }; enum Features { - kFeaturesNone = 0, - kFeaturesCD = 1 << 0, - kFeaturesEGA = 1 << 1, - kFeaturesAdLib = 1 << 2, - kFeaturesSCNDemo = 1 << 3, - kFeaturesBATDemo = 1 << 4, - kFeatures640x480 = 1 << 5, - kFeatures800x600 = 1 << 6 + kFeaturesNone = 0, + kFeaturesCD = 1 << 0, + kFeaturesEGA = 1 << 1, + kFeaturesAdLib = 1 << 2, + kFeaturesSCNDemo = 1 << 3, + kFeaturesBATDemo = 1 << 4, + kFeatures640x480 = 1 << 5, + kFeatures800x600 = 1 << 6, + kFeaturesTrueColor = 1 << 7 }; enum { @@ -213,6 +214,7 @@ public: bool isBATDemo() const; bool is640x480() const; bool is800x600() const; + bool isTrueColor() const; bool isDemo() const; GobEngine(OSystem *syst); -- cgit v1.2.3