aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/init.cpp')
-rw-r--r--engines/gob/init.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp
index 8fbbab1628..d1a1ba2a24 100644
--- a/engines/gob/init.cpp
+++ b/engines/gob/init.cpp
@@ -36,6 +36,7 @@
#include "gob/inter.h"
#include "gob/video.h"
#include "gob/videoplayer.h"
+#include "gob/scnplayer.h"
#include "gob/sound/sound.h"
namespace Gob {
@@ -93,6 +94,18 @@ void Init::initGame() {
for (int i = 0; i < 8; i++)
_vm->_draw->_fonts[i] = 0;
+ if (_vm->isSCNDemo()) {
+ // This is a non-interactive demo with a SCN script and VMD videos
+
+ SCNPlayer scnPlayer(_vm);
+
+ bool ret = scnPlayer.play(_vm->_startTot);
+
+ warning("Played: %d", ret);
+
+ return;
+ }
+
handle = _vm->_dataIO->openData("intro.inf");
if (handle < 0) {