aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2010-09-30 12:59:18 +0000
committerSven Hesse2010-09-30 12:59:18 +0000
commit13d41dca41982be9a7d56e945d543344b1692c4a (patch)
tree48f9e3292baf9ffd4eb8bae6439c1159f0d619d4 /engines/gob
parent3cb3b1e692c818c0d81691823b6a61fc243ad597 (diff)
downloadscummvm-rg350-13d41dca41982be9a7d56e945d543344b1692c4a.tar.gz
scummvm-rg350-13d41dca41982be9a7d56e945d543344b1692c4a.tar.bz2
scummvm-rg350-13d41dca41982be9a7d56e945d543344b1692c4a.zip
GOB: Add kFeaturesTrueColor
svn-id: r52943
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/detection_tables.h12
-rw-r--r--engines/gob/gob.cpp4
-rw-r--r--engines/gob/gob.h18
3 files changed, 20 insertions, 14 deletions
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);