Added support for SCN-based non-interactive demos

svn-id: r40122
This commit is contained in:
Sven Hesse 2009-04-24 18:23:17 +00:00
parent 7d4618d165
commit 893a3fc7e2
6 changed files with 251 additions and 16 deletions

View file

@ -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) {