diff options
author | Max Horn | 2009-01-23 04:45:44 +0000 |
---|---|---|
committer | Max Horn | 2009-01-23 04:45:44 +0000 |
commit | 14c5bbbccf30f333b92092ca55063b338335c3a5 (patch) | |
tree | 80cfc99351a2333461bbbb6e9437780921ad2edb /engines/parallaction | |
parent | 9861afd8fde386ffc740ab12fad26f2d41213821 (diff) | |
download | scummvm-rg350-14c5bbbccf30f333b92092ca55063b338335c3a5.tar.gz scummvm-rg350-14c5bbbccf30f333b92092ca55063b338335c3a5.tar.bz2 scummvm-rg350-14c5bbbccf30f333b92092ca55063b338335c3a5.zip |
Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/disk_br.cpp | 4 | ||||
-rw-r--r-- | engines/parallaction/disk_ns.cpp | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index 1bb4023010..0dca43a55c 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -101,7 +101,7 @@ Common::SeekableReadStream *Disk_br::openFile_internal(bool errorOnNotFound, con lookup = name + ext; } - Common::SeekableReadStream *stream = _sset.openFile(lookup); + Common::SeekableReadStream *stream = _sset.createReadStreamForMember(lookup); if (stream) { return stream; } @@ -116,7 +116,7 @@ Common::SeekableReadStream *Disk_br::openFile_internal(bool errorOnNotFound, con lookup.deleteLastChar(); } lookup += ext; - stream = _sset.openFile(lookup); + stream = _sset.createReadStreamForMember(lookup); } } diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp index a526facaad..94d9f8482b 100644 --- a/engines/parallaction/disk_ns.cpp +++ b/engines/parallaction/disk_ns.cpp @@ -78,7 +78,7 @@ public: NSArchive(Common::SeekableReadStream *stream, Common::Platform platform, uint32 features); ~NSArchive(); - Common::SeekableReadStream *openFile(const Common::String &name) const; + Common::SeekableReadStream *createReadStreamForMember(const Common::String &name) const; bool hasFile(const Common::String &name); int listMembers(Common::ArchiveMemberList &list); Common::ArchiveMemberPtr getMember(const Common::String &name); @@ -127,8 +127,8 @@ uint32 NSArchive::lookup(const char *name) const { return i; } -Common::SeekableReadStream *NSArchive::openFile(const Common::String &name) const { - debugC(3, kDebugDisk, "NSArchive::openFile(%s)", name.c_str()); +Common::SeekableReadStream *NSArchive::createReadStreamForMember(const Common::String &name) const { + debugC(3, kDebugDisk, "NSArchive::createReadStreamForMember(%s)", name.c_str()); if (name.empty()) return 0; @@ -136,7 +136,7 @@ Common::SeekableReadStream *NSArchive::openFile(const Common::String &name) cons uint32 index = lookup(name.c_str()); if (index == _numFiles) return 0; - debugC(9, kDebugDisk, "NSArchive::openFile: '%s' found in slot %i", name.c_str(), index); + debugC(9, kDebugDisk, "NSArchive::createReadStreamForMember: '%s' found in slot %i", name.c_str(), index); int offset = _archiveOffsets[index]; int endOffset = _archiveOffsets[index] + _archiveLenghts[index]; @@ -195,7 +195,7 @@ Common::SeekableReadStream *Disk_ns::openFile(const char *filename) { void Disk_ns::addArchive(const Common::String& name, int priority) { - Common::SeekableReadStream *stream = _sset.openFile(name); + Common::SeekableReadStream *stream = _sset.createReadStreamForMember(name); if (!stream) error("Disk_ns::addArchive() couldn't find archive '%s'", name.c_str()); @@ -257,13 +257,13 @@ void DosDisk_ns::init() { Common::SeekableReadStream *DosDisk_ns::tryOpenFile(const char* name) { debugC(3, kDebugDisk, "DosDisk_ns::tryOpenFile(%s)", name); - Common::SeekableReadStream *stream = _sset.openFile(name); + Common::SeekableReadStream *stream = _sset.createReadStreamForMember(name); if (stream) return stream; char path[PATH_LEN]; sprintf(path, "%s.pp", name); - return _sset.openFile(path); + return _sset.createReadStreamForMember(path); } @@ -896,18 +896,18 @@ GfxObj* AmigaDisk_ns::loadStatic(const char* name) { Common::SeekableReadStream *AmigaDisk_ns::tryOpenFile(const char* name) { debugC(3, kDebugDisk, "AmigaDisk_ns::tryOpenFile(%s)", name); - Common::SeekableReadStream *stream = _sset.openFile(name); + Common::SeekableReadStream *stream = _sset.createReadStreamForMember(name); if (stream) return stream; char path[PATH_LEN]; sprintf(path, "%s.pp", name); - stream = _sset.openFile(path); + stream = _sset.createReadStreamForMember(path); if (stream) return new PowerPackerStream(*stream); sprintf(path, "%s.dd", name); - stream = _sset.openFile(path); + stream = _sset.createReadStreamForMember(path); if (stream) return new PowerPackerStream(*stream); |