diff options
author | Eugene Sandulenko | 2019-12-24 17:35:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-24 17:35:30 +0100 |
commit | e3f22265503a52331057172b05d27d35341b1a30 (patch) | |
tree | 41fc894a5e4f30634262e5c60fd6b459b78ab5f3 /engines/director/resource.cpp | |
parent | c47c9eaad49974a5dbb59b611dea53f44714d508 (diff) | |
download | scummvm-rg350-e3f22265503a52331057172b05d27d35341b1a30.tar.gz scummvm-rg350-e3f22265503a52331057172b05d27d35341b1a30.tar.bz2 scummvm-rg350-e3f22265503a52331057172b05d27d35341b1a30.zip |
DIRECTOR: Support for arbitrary cast resrouce offsets
Diffstat (limited to 'engines/director/resource.cpp')
-rw-r--r-- | engines/director/resource.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp index 4412d3f61b..b4b160597c 100644 --- a/engines/director/resource.cpp +++ b/engines/director/resource.cpp @@ -275,8 +275,10 @@ void DirectorEngine::loadSharedCastsFrom(Common::String filename) { _sharedScore->loadConfig(*shardcst->getResource(MKTAG('V','W','C','F'), 1024)); - if (getVersion() < 4) - _sharedScore->loadCastDataVWCR(*shardcst->getResource(MKTAG('V','W','C','R'), 1024)); + if (getVersion() < 4) { + _sharedScore->_castIDoffset = shardcst->getResourceIDList(MKTAG('V', 'W', 'C', 'R'))[0]; + _sharedScore->loadCastDataVWCR(*shardcst->getResource(MKTAG('V','W','C','R'), _sharedScore->_castIDoffset)); + } Common::Array<uint16> cast = shardcst->getResourceIDList(MKTAG('C','A','S','t')); if (cast.size() > 0) { |