From 52f9e18d433fdb14d3171429837d4c1781fd719f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 30 Jul 2019 10:33:42 +0200 Subject: [PATCH] HDB: Use PocketPC platform enum --- engines/hdb/detection.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp index 31f36b2193e..aa586f9f161 100644 --- a/engines/hdb/detection.cpp +++ b/engines/hdb/detection.cpp @@ -29,10 +29,6 @@ namespace HDB { -enum { - kPPCFlag = ADGF_DEMO << 1 -}; - const char *HDBGame::getGameId() const { return _gameDescription->gameId; } Common::Platform HDBGame::getPlatform() const { return _gameDescription->platform; } @@ -49,7 +45,7 @@ bool HDBGame::isDemo() const { } bool HDBGame::isPPC() const { - return (getGameFlags() & kPPCFlag); + return (getPlatform() & Common::kPlatformPocketPC); } } // End of namespace HDB @@ -85,8 +81,8 @@ static const ADGameDescription gameDescriptions[] = { "", AD_ENTRY1s("hyperspace.msd", "a62468904beb3efe16d4d64f3955a32e", 6825555), Common::EN_ANY, - Common::kPlatformUnknown, // PPC - (uint32)kPPCFlag, + Common::kPlatformPocketPC, + ADGF_NO_FLAGS, GUIO1(GUIO_NONE) }, @@ -124,8 +120,8 @@ static const ADGameDescription gameDescriptions[] = { "", AD_ENTRY1s("hyperdemo.msd", "312525298ca9f5ac904883d1ce19dc0f", 3088651), Common::EN_ANY, - Common::kPlatformUnknown, // PPC - (ADGF_DEMO || (uint32)kPPCFlag), + Common::kPlatformPocketPC, + ADGF_DEMO, GUIO1(GUIO_NONE) }, { @@ -133,8 +129,8 @@ static const ADGameDescription gameDescriptions[] = { "Handango", AD_ENTRY1s("hyperdemo.msd", "2d4457b284a940b7058b36e5706b9951", 3094241), Common::EN_ANY, - Common::kPlatformUnknown, // PPC - (ADGF_DEMO || (uint32)kPPCFlag), + Common::kPlatformPocketPC, + ADGF_DEMO, GUIO1(GUIO_NONE) }, AD_TABLE_END_MARKER