diff options
author | Max Horn | 2005-05-10 22:56:25 +0000 |
---|---|---|
committer | Max Horn | 2005-05-10 22:56:25 +0000 |
commit | b75c969e666b9f262a05e0d1e54d56f7d3e45441 (patch) | |
tree | e4868d14ac249a63e01f905472ec9be69f04a028 /scumm/imuse_digi | |
parent | 55c37c18ceed916eb3744666d3d10783b0cf8783 (diff) | |
download | scummvm-rg350-b75c969e666b9f262a05e0d1e54d56f7d3e45441.tar.gz scummvm-rg350-b75c969e666b9f262a05e0d1e54d56f7d3e45441.tar.bz2 scummvm-rg350-b75c969e666b9f262a05e0d1e54d56f7d3e45441.zip |
Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r-- | scumm/imuse_digi/dimuse_bndmgr.cpp | 4 | ||||
-rw-r--r-- | scumm/imuse_digi/dimuse_bndmgr.h | 4 | ||||
-rw-r--r-- | scumm/imuse_digi/dimuse_sndmgr.cpp | 6 | ||||
-rw-r--r-- | scumm/imuse_digi/dimuse_sndmgr.h | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/scumm/imuse_digi/dimuse_bndmgr.cpp b/scumm/imuse_digi/dimuse_bndmgr.cpp index b94a2f44b6..1c4a1d40f4 100644 --- a/scumm/imuse_digi/dimuse_bndmgr.cpp +++ b/scumm/imuse_digi/dimuse_bndmgr.cpp @@ -71,7 +71,7 @@ int BundleDirCache::matchFile(const char *filename) { } if (!found) { - File file; + Common::File file; if (file.open(filename) == false) { warning("BundleDirCache::matchFile() Can't open bundle file: %s", filename); @@ -135,7 +135,7 @@ BundleMgr::~BundleMgr() { close(); } -File *BundleMgr::getFile(const char *filename, int32 &offset, int32 &size) { +Common::File *BundleMgr::getFile(const char *filename, int32 &offset, int32 &size) { for (int i = 0; i < _numFiles; i++) { if (!scumm_stricmp(filename, _bundleTable[i].filename)) { _file.seek(_bundleTable[i].offset, SEEK_SET); diff --git a/scumm/imuse_digi/dimuse_bndmgr.h b/scumm/imuse_digi/dimuse_bndmgr.h index 5457ae20b8..be551b2e33 100644 --- a/scumm/imuse_digi/dimuse_bndmgr.h +++ b/scumm/imuse_digi/dimuse_bndmgr.h @@ -67,7 +67,7 @@ private: int _numFiles; int _numCompItems; int _curSample; - File _file; + Common::File _file; bool _compTableLoaded; int _fileBundleId; byte _compOutput[0x2000]; @@ -84,7 +84,7 @@ public: bool open(const char *filename, bool &compressed); void close(); - File *getFile(const char *filename, int32 &offset, int32 &size); + Common::File *getFile(const char *filename, int32 &offset, int32 &size); int32 decompressSampleByName(const char *name, int32 offset, int32 size, byte **comp_final, bool header_outside); int32 decompressSampleByIndex(int32 index, int32 offset, int32 size, byte **comp_final, int header_size, bool header_outside); int32 decompressSampleByCurIndex(int32 offset, int32 size, byte **comp_final, int header_size, bool header_outside); diff --git a/scumm/imuse_digi/dimuse_sndmgr.cpp b/scumm/imuse_digi/dimuse_sndmgr.cpp index 238aeb2e91..af8aafefd9 100644 --- a/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -84,7 +84,7 @@ void ImuseDigiSndMgr::countElements(byte *ptr, int &numRegions, int &numJumps, i } while (tag != MKID_BE('DATA')); } -void ImuseDigiSndMgr::prepareSoundFromRMAP(File *file, soundStruct *sound, int32 offset, int32 size) { +void ImuseDigiSndMgr::prepareSoundFromRMAP(Common::File *file, soundStruct *sound, int32 offset, int32 size) { int l; file->seek(offset, SEEK_SET); @@ -368,7 +368,7 @@ ImuseDigiSndMgr::soundStruct *ImuseDigiSndMgr::openSound(int32 soundId, const ch char fileName[24]; int32 offset = 0, size = 0; sprintf(fileName, "%s.map", soundName); - File *rmapFile = sound->bundle->getFile(fileName, offset, size); + Common::File *rmapFile = sound->bundle->getFile(fileName, offset, size); if (!rmapFile) { closeSound(sound); return NULL; @@ -577,7 +577,7 @@ int32 ImuseDigiSndMgr::getDataFromRegion(soundStruct *soundHandle, int region, b sprintf(fileName, "%s_reg%03d", soundHandle->name, region); if (scumm_stricmp(fileName, soundHandle->lastFileName) != 0) { int32 offs = 0, len = 0; - File *cmpFile; + Common::File *cmpFile; bool oggMode = false; sprintf(fileName, "%s_reg%03d.mp3", soundHandle->name, region); cmpFile = soundHandle->bundle->getFile(fileName, offs, len); diff --git a/scumm/imuse_digi/dimuse_sndmgr.h b/scumm/imuse_digi/dimuse_sndmgr.h index 3e6713a290..4b4d5c488d 100644 --- a/scumm/imuse_digi/dimuse_sndmgr.h +++ b/scumm/imuse_digi/dimuse_sndmgr.h @@ -96,7 +96,7 @@ private: bool checkForProperHandle(soundStruct *soundHandle); soundStruct *allocSlot(); void prepareSound(byte *ptr, soundStruct *sound); - void prepareSoundFromRMAP(File *file, soundStruct *sound, int32 offset, int32 size); + void prepareSoundFromRMAP(Common::File *file, soundStruct *sound, int32 offset, int32 size); ScummEngine *_vm; byte _disk; |