From 469fbe1c8a431fba8f33f41dcce64c64dc13fdb3 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Tue, 30 Jul 2019 02:06:49 +0530 Subject: HDB: Add isPPC Flag --- engines/hdb/detection.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'engines/hdb/detection.cpp') 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 -- cgit v1.2.3