diff options
author | Matthew Hoops | 2010-01-19 05:01:45 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-01-19 05:01:45 +0000 |
commit | c20df070f35557a8de5fbd3475ee5579abc584bf (patch) | |
tree | 361551f2e166d6fc98778d21ebb3fa782a5419fb /engines/mohawk/riven.cpp | |
parent | 9baa2acdca4a3d9440e836d917f14b5e1cdb6178 (diff) | |
download | scummvm-rg350-c20df070f35557a8de5fbd3475ee5579abc584bf.tar.gz scummvm-rg350-c20df070f35557a8de5fbd3475ee5579abc584bf.tar.bz2 scummvm-rg350-c20df070f35557a8de5fbd3475ee5579abc584bf.zip |
Make the workaround for the Riven intro background music work in the DVD version too.
svn-id: r47371
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 20cf55c398..7cb69b95e1 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -536,6 +536,13 @@ uint16 MohawkEngine_Riven::matchRMAPToCard(uint32 rmapCode) { return index - 1; } +uint32 MohawkEngine_Riven::getCurCardRMAP() { + Common::SeekableReadStream *rmapStream = getRawData(ID_RMAP, 1); + rmapStream->seek(_curCard * 4); + uint32 rmapCode = rmapStream->readUint32BE(); + return rmapCode; +} + void MohawkEngine_Riven::runCardScript(uint16 scriptType) { assert(_cardData.hasData); for (uint16 i = 0; i < _cardData.scripts.size(); i++) |