aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/module.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/module.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/module.cpp')
-rw-r--r--engines/neverhood/module.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/neverhood/module.cpp b/engines/neverhood/module.cpp
index 1cd6c0d0b1..aeeb62f65c 100644
--- a/engines/neverhood/module.cpp
+++ b/engines/neverhood/module.cpp
@@ -24,6 +24,7 @@
#include "neverhood/navigationscene.h"
#include "neverhood/smackerscene.h"
#include "neverhood/module1000.h"
+#include "neverhood/module1500.h"
namespace Neverhood {
@@ -98,6 +99,10 @@ void Module::createStaticScene(uint32 backgroundFileHash, uint32 cursorFileHash)
_childObject = new StaticScene(_vm, this, backgroundFileHash, cursorFileHash);
}
+void Module::createDemoScene() {
+ _childObject = new Scene1501(_vm, this, 0x0009B624, 0, 288, 0);
+}
+
bool Module::updateChild() {
if (_childObject) {
_childObject->handleUpdate();