diff options
author | Matthew Hoops | 2013-03-17 19:46:23 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-16 21:53:18 -0400 |
commit | 2ea09d1191463e471bd6dc5edcf0cb7fed30125d (patch) | |
tree | 7327065b7f5d9d0faa495007b0614719632e2b62 /engines/pegasus/detection.cpp | |
parent | 5727b097b2b22db9c05afbd701a35a5f4af66334 (diff) | |
download | scummvm-rg350-2ea09d1191463e471bd6dc5edcf0cb7fed30125d.tar.gz scummvm-rg350-2ea09d1191463e471bd6dc5edcf0cb7fed30125d.tar.bz2 scummvm-rg350-2ea09d1191463e471bd6dc5edcf0cb7fed30125d.zip |
PEGASUS: Add detection for the new DVD Demo data file
Diffstat (limited to 'engines/pegasus/detection.cpp')
-rw-r--r-- | engines/pegasus/detection.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/engines/pegasus/detection.cpp b/engines/pegasus/detection.cpp index ba631148d5..8f0fa8eea5 100644 --- a/engines/pegasus/detection.cpp +++ b/engines/pegasus/detection.cpp @@ -35,6 +35,10 @@ struct PegasusGameDescription { ADGameDescription desc; }; +enum { + GF_DVD = (1 << 1) +}; + bool PegasusEngine::hasFeature(EngineFeature f) const { return (f == kSupportsRTL) @@ -46,6 +50,14 @@ bool PegasusEngine::isDemo() const { return (_gameDescription->desc.flags & ADGF_DEMO) != 0; } +bool PegasusEngine::isDVD() const { + return (_gameDescription->desc.flags & GF_DVD) != 0; +} + +bool PegasusEngine::isDVDDemo() const { + return isDemo() && isDVD(); +} + } // End of namespace Pegasus static const PlainGameDescriptor pegasusGames[] = { @@ -76,7 +88,19 @@ static const PegasusGameDescription gameDescriptions[] = { AD_ENTRY1s("JMP PP Resources", "d13a602d2498010d720a6534f097f88b", 360129), Common::EN_ANY, Common::kPlatformMacintosh, - ADGF_MACRESFORK|ADGF_DEMO, + ADGF_MACRESFORK | ADGF_DEMO, + GUIO1(GUIO_NOLAUNCHLOAD) + }, + }, + + { + { + "pegasus", + "DVD Demo", + AD_ENTRY1s("JMP PP Resources", "d0fcda50dc75c7a81ae314e6a813f4d2", 93495), + Common::EN_ANY, + Common::kPlatformMacintosh, + ADGF_MACRESFORK | ADGF_DEMO | GF_DVD, GUIO1(GUIO_NOLAUNCHLOAD) }, }, |