aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-30 02:06:49 +0530
committerEugene Sandulenko2019-09-03 17:17:30 +0200
commit469fbe1c8a431fba8f33f41dcce64c64dc13fdb3 (patch)
tree8cd3da742413fdd5ed5b606ab7388eaad00b896f /engines/hdb/detection.cpp
parent78278af46a4fad3de35caa42d72fb2b8ef38612e (diff)
downloadscummvm-rg350-469fbe1c8a431fba8f33f41dcce64c64dc13fdb3.tar.gz
scummvm-rg350-469fbe1c8a431fba8f33f41dcce64c64dc13fdb3.tar.bz2
scummvm-rg350-469fbe1c8a431fba8f33f41dcce64c64dc13fdb3.zip
HDB: Add isPPC Flag
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index 6587b3c266..d1bd4ea7d5 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -28,6 +28,11 @@
#include "hdb/hdb.h"
namespace HDB {
+
+enum {
+ kPPCFlag = ADGF_DEMO << 1
+};
+
const char *HDBGame::getGameId() const { return _gameDescription->gameId; }
Common::Platform HDBGame::getPlatform() const { return _gameDescription->platform; }
@@ -43,6 +48,10 @@ bool HDBGame::isDemo() const {
return (getGameFlags() & ADGF_DEMO);
}
+bool HDBGame::isPPC() const {
+ return (getGameFlags() & kPPCFlag);
+}
+
} // End of namespace HDB
static const PlainGameDescriptor hdbGames[] = {
@@ -77,7 +86,7 @@ static const ADGameDescription gameDescriptions[] = {
AD_ENTRY1s("hyperspace.msd", "a62468904beb3efe16d4d64f3955a32e", 6825555),
Common::EN_ANY,
Common::kPlatformUnknown, // PPC
- ADGF_NO_FLAGS,
+ kPPCFlag,
GUIO1(GUIO_NONE)
},
@@ -96,7 +105,7 @@ static const ADGameDescription gameDescriptions[] = {
"",
AD_ENTRY1s("hyperdemo.mpc", "f3bc878e179f00b8666a9846f3d9f9f5", 5236568),
Common::EN_ANY,
- Common::kPlatformUnknown, // FIXME
+ Common::kPlatformWindows,
ADGF_DEMO,
GUIO1(GUIO_NONE)
},
@@ -116,7 +125,7 @@ static const ADGameDescription gameDescriptions[] = {
AD_ENTRY1s("hyperdemo.msd", "312525298ca9f5ac904883d1ce19dc0f", 3088651),
Common::EN_ANY,
Common::kPlatformUnknown, // PPC
- ADGF_DEMO,
+ (ADGF_DEMO || kPPCFlag),
GUIO1(GUIO_NONE)
},
{
@@ -125,7 +134,7 @@ static const ADGameDescription gameDescriptions[] = {
AD_ENTRY1s("hyperdemo.msd", "2d4457b284a940b7058b36e5706b9951", 3094241),
Common::EN_ANY,
Common::kPlatformUnknown, // PPC
- ADGF_DEMO,
+ (ADGF_DEMO || kPPCFlag),
GUIO1(GUIO_NONE)
},
AD_TABLE_END_MARKER