aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2013-03-17 19:46:23 -0400
committerMatthew Hoops2013-04-16 21:53:18 -0400
commit2ea09d1191463e471bd6dc5edcf0cb7fed30125d (patch)
tree7327065b7f5d9d0faa495007b0614719632e2b62 /engines
parent5727b097b2b22db9c05afbd701a35a5f4af66334 (diff)
downloadscummvm-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')
-rw-r--r--engines/pegasus/detection.cpp26
-rw-r--r--engines/pegasus/pegasus.h2
2 files changed, 27 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)
},
},
diff --git a/engines/pegasus/pegasus.h b/engines/pegasus/pegasus.h
index 246414a9d0..e544517d53 100644
--- a/engines/pegasus/pegasus.h
+++ b/engines/pegasus/pegasus.h
@@ -95,6 +95,8 @@ public:
// Misc.
bool isDemo() const;
+ bool isDVD() const;
+ bool isDVDDemo() const;
void addIdler(Idler *idler);
void removeIdler(Idler *idler);
void addTimeBase(TimeBase *timeBase);