diff options
author | Max Horn | 2010-11-23 22:25:10 +0000 |
---|---|---|
committer | Max Horn | 2010-11-23 22:25:10 +0000 |
commit | 54e0390752b299d739daaf211e6b84b485738ada (patch) | |
tree | b4ebfb49d0921d75b8d0719435607896cfe9d994 /engines/scumm/imuse_digi | |
parent | 55e3ed001624df8b8222a1556a371aec8aab4983 (diff) | |
download | scummvm-rg350-54e0390752b299d739daaf211e6b84b485738ada.tar.gz scummvm-rg350-54e0390752b299d739daaf211e6b84b485738ada.tar.bz2 scummvm-rg350-54e0390752b299d739daaf211e6b84b485738ada.zip |
SCUMM: Replace Common::File uses by SeekableReadStream and SearchMan
svn-id: r54434
Diffstat (limited to 'engines/scumm/imuse_digi')
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_bndmgr.cpp | 2 | ||||
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_bndmgr.h | 2 | ||||
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_sndmgr.cpp | 6 | ||||
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_sndmgr.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/imuse_digi/dimuse_bndmgr.cpp b/engines/scumm/imuse_digi/dimuse_bndmgr.cpp index 3ae6f7e919..f10f17f3d8 100644 --- a/engines/scumm/imuse_digi/dimuse_bndmgr.cpp +++ b/engines/scumm/imuse_digi/dimuse_bndmgr.cpp @@ -157,7 +157,7 @@ BundleMgr::~BundleMgr() { delete _file; } -Common::File *BundleMgr::getFile(const char *filename, int32 &offset, int32 &size) { +Common::SeekableReadStream *BundleMgr::getFile(const char *filename, int32 &offset, int32 &size) { BundleDirCache::IndexNode target; strcpy(target.filename, filename); BundleDirCache::IndexNode *found = (BundleDirCache::IndexNode *)bsearch(&target, _indexTable, _numFiles, diff --git a/engines/scumm/imuse_digi/dimuse_bndmgr.h b/engines/scumm/imuse_digi/dimuse_bndmgr.h index 65360d8ba4..a78697a854 100644 --- a/engines/scumm/imuse_digi/dimuse_bndmgr.h +++ b/engines/scumm/imuse_digi/dimuse_bndmgr.h @@ -101,7 +101,7 @@ public: bool open(const char *filename, bool &compressed, bool errorFlag = false); void close(); - Common::File *getFile(const char *filename, int32 &offset, int32 &size); + Common::SeekableReadStream *getFile(const char *filename, int32 &offset, int32 &size); int32 decompressSampleByName(const char *name, int32 offset, int32 size, byte **compFinal, bool headerOutside); int32 decompressSampleByIndex(int32 index, int32 offset, int32 size, byte **compFinal, int header_size, bool headerOutside); int32 decompressSampleByCurIndex(int32 offset, int32 size, byte **compFinal, int headerSize, bool headerOutside); diff --git a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp index 1d4769a7f5..4054843163 100644 --- a/engines/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/engines/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -93,7 +93,7 @@ void ImuseDigiSndMgr::countElements(byte *ptr, int &numRegions, int &numJumps, i } while (tag != MKID_BE('DATA')); } -void ImuseDigiSndMgr::prepareSoundFromRMAP(Common::File *file, SoundDesc *sound, int32 offset, int32 size) { +void ImuseDigiSndMgr::prepareSoundFromRMAP(Common::SeekableReadStream *file, SoundDesc *sound, int32 offset, int32 size) { int l; file->seek(offset, SEEK_SET); @@ -428,7 +428,7 @@ ImuseDigiSndMgr::SoundDesc *ImuseDigiSndMgr::openSound(int32 soundId, const char char fileName[24]; int32 offset = 0, size = 0; sprintf(fileName, "%s.map", soundName); - Common::File *rmapFile = sound->bundle->getFile(fileName, offset, size); + Common::SeekableReadStream *rmapFile = sound->bundle->getFile(fileName, offset, size); if (!rmapFile) { closeSound(sound); return NULL; @@ -666,7 +666,7 @@ int32 ImuseDigiSndMgr::getDataFromRegion(SoundDesc *soundDesc, int region, byte sprintf(fileName, "%s_reg%03d", soundDesc->name, region); if (scumm_stricmp(fileName, soundDesc->lastFileName) != 0) { int32 offs = 0, len = 0; - Common::File *cmpFile; + Common::SeekableReadStream *cmpFile; uint8 soundMode = 0; sprintf(fileName, "%s_reg%03d.fla", soundDesc->name, region); diff --git a/engines/scumm/imuse_digi/dimuse_sndmgr.h b/engines/scumm/imuse_digi/dimuse_sndmgr.h index 0a667eba9d..aa7a1b77ca 100644 --- a/engines/scumm/imuse_digi/dimuse_sndmgr.h +++ b/engines/scumm/imuse_digi/dimuse_sndmgr.h @@ -113,7 +113,7 @@ private: bool checkForProperHandle(SoundDesc *soundDesc); SoundDesc *allocSlot(); void prepareSound(byte *ptr, SoundDesc *sound); - void prepareSoundFromRMAP(Common::File *file, SoundDesc *sound, int32 offset, int32 size); + void prepareSoundFromRMAP(Common::SeekableReadStream *file, SoundDesc *sound, int32 offset, int32 size); ScummEngine *_vm; byte _disk; |