HDB: Use PocketPC platform enum

This commit is contained in:
Eugene Sandulenko 2019-07-30 10:33:42 +02:00
parent 102846becf
commit 52f9e18d43

View File

@ -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