diff options
author | Iskrich | 2016-05-26 01:16:29 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 11c9bbd9cb78ea4229e9cd64ad1d31e46d32ec41 (patch) | |
tree | 8c43f44c1cda1d1d521a0678d11def7737518be0 /engines/director/director.cpp | |
parent | 2de66ee08396ca70bdb75e47867e7bd386c5bb9b (diff) | |
download | scummvm-rg350-11c9bbd9cb78ea4229e9cd64ad1d31e46d32ec41.tar.gz scummvm-rg350-11c9bbd9cb78ea4229e9cd64ad1d31e46d32ec41.tar.bz2 scummvm-rg350-11c9bbd9cb78ea4229e9cd64ad1d31e46d32ec41.zip |
DIRECTOR: Play score, display DIB sprites
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index a4366b5eee..5c2c7adc6d 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -66,37 +66,13 @@ DirectorEngine::~DirectorEngine() { Common::Error DirectorEngine::run() { debug("Starting v%d Director game", getVersion()); - initGraphics(640, 480, true); - //FIXME - RIFFArchive riff; - riff.openFile("bookshelf_example.mmm"); - Director::DIBDecoder img; - - Common::SeekableReadStream *pal = riff.getResource(MKTAG('C', 'L', 'U', 'T'), 1025); - img.loadPalette(*pal); - - Common::SeekableReadStream *dib = riff.getResource(MKTAG('D', 'I', 'B', ' '), 1026); - img.loadStream(*dib); - - Common::SeekableReadStream *scr = riff.getResource(MKTAG('V','W','S','C'),1024); - Director::Score score = Director::Score(*scr); - - bool stop = false; - - while (!stop) { - Common::Event event; - - while (_eventMan->pollEvent(event)) { - if (event.type == Common::EVENT_QUIT) - stop = true; - } - - g_system->updateScreen(); - g_system->delayMillis(50); - } + _mainArchive = new RIFFArchive(); + _mainArchive->openFile("bookshelf_example.mmm"); - return Common::kNoError; + Common::SeekableReadStream *scr = _mainArchive->getResource(MKTAG('V','W','S','C'), 1024); + Score score(*scr); + score.play(); if (getPlatform() == Common::kPlatformWindows) loadEXE(); |