diff options
author | Iskrich | 2016-05-16 20:08:13 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | acc0d70054f34f8acd2cc2e4647156c238cd2181 (patch) | |
tree | a6bdd1d14910a6f2f312e95d80408e7f7fbb598d /engines/director | |
parent | 1ebb5d2b072e7347dee3308cb1c50f6079bc5847 (diff) | |
download | scummvm-rg350-acc0d70054f34f8acd2cc2e4647156c238cd2181.tar.gz scummvm-rg350-acc0d70054f34f8acd2cc2e4647156c238cd2181.tar.bz2 scummvm-rg350-acc0d70054f34f8acd2cc2e4647156c238cd2181.zip |
DIRECTOR: Add bookshelf example
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/director.cpp | 9 | ||||
-rw-r--r-- | engines/director/module.mk | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 5d30ea7133..e06459144b 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -50,6 +50,15 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam const Common::FSNode gameDataDir(ConfMan.get("path")); SearchMan.addSubDirectoryMatching(gameDataDir, "data"); SearchMan.addSubDirectoryMatching(gameDataDir, "install"); + + //FIXME + RIFFArchive riff; + riff.openFile("bookshelf_example.mmm"); + Common::SeekableReadStream *dib = riff.getResource(1145651744, 1103); + Common::SeekableReadStream *pal = riff.getResource(1129076052, 1025); + Director::DIBDecoder img; + img.loadPalette(*pal); + img.loadStream(*dib); } DirectorEngine::~DirectorEngine() { diff --git a/engines/director/module.mk b/engines/director/module.mk index dbb60ee824..2e0dd04203 100644 --- a/engines/director/module.mk +++ b/engines/director/module.mk @@ -2,9 +2,9 @@ MODULE := engines/director MODULE_OBJS = \ detection.o \ + dib.o \ director.o \ - resource.o \ - dib.o + resource.o # This module can be built as a plugin ifeq ($(ENABLE_DIRECTOR), DYNAMIC_PLUGIN) PLUGIN := 1 |