diff options
author | Matthew Hoops | 2010-11-20 23:53:14 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-20 23:53:14 +0000 |
commit | 0f2bcd2f9fcc6d5c8ba67b75f625290db126d231 (patch) | |
tree | be048742e6c46d4706ea895393f998c89bc7fdaa /engines/mohawk/riven_scripts.cpp | |
parent | d886c037dd43aa76550c8dcea7b59f8f53f1c6fa (diff) | |
download | scummvm-rg350-0f2bcd2f9fcc6d5c8ba67b75f625290db126d231.tar.gz scummvm-rg350-0f2bcd2f9fcc6d5c8ba67b75f625290db126d231.tar.bz2 scummvm-rg350-0f2bcd2f9fcc6d5c8ba67b75f625290db126d231.zip |
MOHAWK: Cleanup resource handling
- Renamed getRawData() to getResource()
- Add a getResource() and hasResource() function for named resources
- Other minor formatting changes
svn-id: r54396
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r-- | engines/mohawk/riven_scripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp index e70de75bd2..d4eb944660 100644 --- a/engines/mohawk/riven_scripts.cpp +++ b/engines/mohawk/riven_scripts.cpp @@ -557,7 +557,7 @@ void RivenScript::activateMLSTAndPlay(uint16 op, uint16 argc, uint16 *argv) { // Command 43: activate BLST record (card hotspot enabling lists) void RivenScript::activateBLST(uint16 op, uint16 argc, uint16 *argv) { - Common::SeekableReadStream* blst = _vm->getRawData(ID_BLST, _vm->getCurCard()); + Common::SeekableReadStream* blst = _vm->getResource(ID_BLST, _vm->getCurCard()); uint16 recordCount = blst->readUint16BE(); for (uint16 i = 0; i < recordCount; i++) { @@ -576,7 +576,7 @@ void RivenScript::activateBLST(uint16 op, uint16 argc, uint16 *argv) { // Command 44: activate FLST record (information on which SFXE resource this card should use) void RivenScript::activateFLST(uint16 op, uint16 argc, uint16 *argv) { - Common::SeekableReadStream* flst = _vm->getRawData(ID_FLST, _vm->getCurCard()); + Common::SeekableReadStream* flst = _vm->getResource(ID_FLST, _vm->getCurCard()); uint16 recordCount = flst->readUint16BE(); for (uint16 i = 0; i < recordCount; i++) { |