diff options
author | Iskrich | 2016-05-24 22:03:21 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 2de66ee08396ca70bdb75e47867e7bd386c5bb9b (patch) | |
tree | e7e0019830ca226ce212f6f93fec0eb83b4026d1 /engines/director/director.cpp | |
parent | 08641d688dfb003af01a342a27a847f8cf75f192 (diff) | |
download | scummvm-rg350-2de66ee08396ca70bdb75e47867e7bd386c5bb9b.tar.gz scummvm-rg350-2de66ee08396ca70bdb75e47867e7bd386c5bb9b.tar.bz2 scummvm-rg350-2de66ee08396ca70bdb75e47867e7bd386c5bb9b.zip |
DIRECTOR: Add score data loader
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index bf4d4c5f75..a4366b5eee 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -36,9 +36,11 @@ #include "engines/util.h" #include "director/director.h" +#include "director/score.h" #include "director/resource.h" #include "graphics/surface.h" + namespace Director { DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc) { @@ -74,9 +76,12 @@ Common::Error DirectorEngine::run() { Common::SeekableReadStream *pal = riff.getResource(MKTAG('C', 'L', 'U', 'T'), 1025); img.loadPalette(*pal); - Common::SeekableReadStream *dib = riff.getResource(MKTAG('D', 'I', 'B', ' '), 1103); + 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) { |