aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/detection.cpp
diff options
context:
space:
mode:
authorjohndoe1232013-01-06 22:41:04 +0000
committerWillem Jan Palenstijn2013-05-08 20:47:38 +0200
commit0f1aa64fd0172c374c491bcfba4ac7baa2394d2e (patch)
tree491212c167cf2f25dca8dadab0574701cac7a814 /engines/neverhood/detection.cpp
parent060287a4f85189cce3bb3b1b864b85cd81ee5c2f (diff)
downloadscummvm-rg350-0f1aa64fd0172c374c491bcfba4ac7baa2394d2e.tar.gz
scummvm-rg350-0f1aa64fd0172c374c491bcfba4ac7baa2394d2e.tar.bz2
scummvm-rg350-0f1aa64fd0172c374c491bcfba4ac7baa2394d2e.zip
NEVERHOOD: Add support for the demo version
- Remove debug resource dumping code - Fix Scene1501 (pictures without sound weren't displayed/too fast) - Move main loop to mainLoop method
Diffstat (limited to 'engines/neverhood/detection.cpp')
-rw-r--r--engines/neverhood/detection.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/neverhood/detection.cpp b/engines/neverhood/detection.cpp
index ed7053ac34..c40b9e76c7 100644
--- a/engines/neverhood/detection.cpp
+++ b/engines/neverhood/detection.cpp
@@ -55,6 +55,10 @@ uint16 NeverhoodEngine::getVersion() const {
return _gameDescription->version;
}
+bool NeverhoodEngine::isDemo() const {
+ return _gameDescription->desc.flags & ADGF_DEMO;
+}
+
}
static const PlainGameDescriptor neverhoodGames[] = {
@@ -84,6 +88,23 @@ static const NeverhoodGameDescription gameDescriptions[] = {
0,
},
+ {
+ // Neverhood English demo version
+ {
+ "neverhood",
+ "Demo",
+ AD_ENTRY1s("nevdemo.blb", "05b735cfb1086892bec79b54dca5545b", 22564568),
+ Common::EN_ANY,
+ Common::kPlatformWindows,
+ ADGF_DEMO,
+ GUIO1(GUIO_NONE)
+ },
+ 0,
+ 0,
+ 0,
+ 0,
+ },
+
{ AD_TABLE_END_MARKER, 0, 0, 0, 0 }
};