diff options
author | Sven Hesse | 2009-04-24 22:29:17 +0000 |
---|---|---|
committer | Sven Hesse | 2009-04-24 22:29:17 +0000 |
commit | 383a2b332226acdd8eb69535837965bb723bfc68 (patch) | |
tree | 67bf660d5963f9c0130f31832d656b333bc0045e /engines/gob/init.cpp | |
parent | d8972c3f2cc9a28e750dcaee38d6cf84380d95eb (diff) | |
download | scummvm-rg350-383a2b332226acdd8eb69535837965bb723bfc68.tar.gz scummvm-rg350-383a2b332226acdd8eb69535837965bb723bfc68.tar.bz2 scummvm-rg350-383a2b332226acdd8eb69535837965bb723bfc68.zip |
Added supported for BAT-based non-interactive demos, namely the Inca2 one
svn-id: r40129
Diffstat (limited to 'engines/gob/init.cpp')
-rw-r--r-- | engines/gob/init.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/gob/init.cpp b/engines/gob/init.cpp index 93b141b1ce..fcc24875cd 100644 --- a/engines/gob/init.cpp +++ b/engines/gob/init.cpp @@ -37,6 +37,7 @@ #include "gob/video.h" #include "gob/videoplayer.h" #include "gob/scnplayer.h" +#include "gob/batplayer.h" #include "gob/sound/sound.h" namespace Gob { @@ -101,9 +102,17 @@ void Init::initGame() { SCNPlayer scnPlayer(_vm); - bool ret = scnPlayer.play(_vm->_startTot); + scnPlayer.play(_vm->_startTot); - warning("Played: %d", ret); + return; + } + + if (_vm->isBATDemo()) { + // This is a non-interactive demo with a BAT script and videos + + BATPlayer batPlayer(_vm); + + batPlayer.play(_vm->_startTot); return; } |