diff options
author | Matthew Hoops | 2010-11-30 15:07:00 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-30 15:07:00 +0000 |
commit | b065e94d2cc5f3e19714209eae2d983d8ae26fb6 (patch) | |
tree | c3062d6ff1109c2224fdaa4088b19167a67f8fea /engines | |
parent | f82478d4c092ba58e2b26179cb37505fdccbf2d8 (diff) | |
download | scummvm-rg350-b065e94d2cc5f3e19714209eae2d983d8ae26fb6.tar.gz scummvm-rg350-b065e94d2cc5f3e19714209eae2d983d8ae26fb6.tar.bz2 scummvm-rg350-b065e94d2cc5f3e19714209eae2d983d8ae26fb6.zip |
MOHAWK: One last getRawData() to getResource() rename
svn-id: r54679
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/myst.cpp | 14 | ||||
-rw-r--r-- | engines/mohawk/myst.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index 103d40b1a1..caf862d266 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -123,7 +123,7 @@ MohawkEngine_Myst::~MohawkEngine_Myst() { } // Uses cached data objects in preference to disk access -Common::SeekableReadStream *MohawkEngine_Myst::getRawData(uint32 tag, uint16 id) { +Common::SeekableReadStream *MohawkEngine_Myst::getResource(uint32 tag, uint16 id) { Common::SeekableReadStream *ret = _cache.search(tag, id); if (ret) @@ -569,7 +569,7 @@ void MohawkEngine_Myst::checkCurrentResource() { void MohawkEngine_Myst::loadCard() { debugC(kDebugView, "Loading Card View:"); - Common::SeekableReadStream *viewStream = getRawData(ID_VIEW, _curCard); + Common::SeekableReadStream *viewStream = getResource(ID_VIEW, _curCard); // Card Flags _view.flags = viewStream->readUint16LE(); @@ -769,7 +769,7 @@ void MohawkEngine_Myst::runInitScript() { debugC(kDebugINIT, "Running INIT script"); - Common::SeekableReadStream *initStream = getRawData(ID_INIT, _view.init); + Common::SeekableReadStream *initStream = getResource(ID_INIT, _view.init); MystScript script = _scriptParser->readScript(initStream, kMystScriptInit); delete initStream; @@ -784,7 +784,7 @@ void MohawkEngine_Myst::runExitScript() { debugC(kDebugEXIT, "Running EXIT script"); - Common::SeekableReadStream *exitStream = getRawData(ID_EXIT, _view.exit); + Common::SeekableReadStream *exitStream = getResource(ID_EXIT, _view.exit); MystScript script = _scriptParser->readScript(exitStream, kMystScriptExit); delete exitStream; @@ -805,7 +805,7 @@ void MohawkEngine_Myst::loadHelp(uint16 id) { debugC(kDebugHelp, "Loading Help System Data"); - Common::SeekableReadStream *helpStream = getRawData(ID_HELP, id); + Common::SeekableReadStream *helpStream = getResource(ID_HELP, id); uint16 count = helpStream->readUint16LE(); uint16 *u0 = new uint16[count]; @@ -847,7 +847,7 @@ void MohawkEngine_Myst::loadCursorHints() { debugC(kDebugHint, "Loading Cursor Hints:"); - Common::SeekableReadStream *hintStream = getRawData(ID_HINT, _curCard); + Common::SeekableReadStream *hintStream = getResource(ID_HINT, _curCard); _cursorHintCount = hintStream->readUint16LE(); debugC(kDebugHint, "Cursor Hint Count: %d", _cursorHintCount); _cursorHints = new MystCursorHint[_cursorHintCount]; @@ -997,7 +997,7 @@ void MohawkEngine_Myst::loadResources() { return; } - Common::SeekableReadStream *rlstStream = getRawData(ID_RLST, _view.rlst); + Common::SeekableReadStream *rlstStream = getResource(ID_RLST, _view.rlst); uint16 resourceCount = rlstStream->readUint16LE(); debugC(kDebugResource, "RLST Resource Count: %d", resourceCount); diff --git a/engines/mohawk/myst.h b/engines/mohawk/myst.h index 63b9c11ef4..31a743cea6 100644 --- a/engines/mohawk/myst.h +++ b/engines/mohawk/myst.h @@ -143,7 +143,7 @@ public: MohawkEngine_Myst(OSystem *syst, const MohawkGameDescription *gamedesc); virtual ~MohawkEngine_Myst(); - Common::SeekableReadStream *getRawData(uint32 tag, uint16 id); + Common::SeekableReadStream *getResource(uint32 tag, uint16 id); Common::String wrapMovieFilename(const Common::String &movieName, uint16 stack); |