mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 05:36:12 +00:00
DIRECTOR: Add loading shared casts for Director version > 3
This commit is contained in:
parent
7164b1531c
commit
aaf8448cbc
@ -381,17 +381,22 @@ void DirectorEngine::setPalette(byte *palette, uint16 count) {
|
||||
}
|
||||
|
||||
void DirectorEngine::loadSharedCastsFrom(Common::String filename) {
|
||||
Archive *shardcst;
|
||||
|
||||
if (getVersion() < 4) {
|
||||
shardcst = new RIFFArchive();
|
||||
} else {
|
||||
shardcst = new RIFXArchive();
|
||||
}
|
||||
|
||||
//TODO d4 arch
|
||||
RIFFArchive *shardcst = new RIFFArchive();
|
||||
shardcst->openFile(filename);
|
||||
|
||||
Score *castScore = new Score(this);
|
||||
|
||||
Common::SeekableSubReadStreamEndian *castStream = shardcst->getResource(MKTAG('V','W','C','R'), 1024);
|
||||
|
||||
castScore->loadCastData(*castStream);
|
||||
_sharedCasts = castScore->_casts;
|
||||
|
||||
Common::Array<uint16> dib = shardcst->getResourceIDList(MKTAG('D','I','B',' '));
|
||||
|
||||
if (dib.size() != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user