aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dc/dc-fs.cpp
diff options
context:
space:
mode:
authorMax Horn2009-01-23 03:41:36 +0000
committerMax Horn2009-01-23 03:41:36 +0000
commit8f16458e9ba830fe80f177cc2fc3bcf2af84ebef (patch)
tree36236e2af1589bca848ce28d7606ef6e789431e8 /backends/platform/dc/dc-fs.cpp
parente4b013f616818f6da4cf7a1896f31d1429ef8f04 (diff)
downloadscummvm-rg350-8f16458e9ba830fe80f177cc2fc3bcf2af84ebef.tar.gz
scummvm-rg350-8f16458e9ba830fe80f177cc2fc3bcf2af84ebef.tar.bz2
scummvm-rg350-8f16458e9ba830fe80f177cc2fc3bcf2af84ebef.zip
Renamed FSNode::openForReading / openForWriting to createReadStream / createWriteStream, again to make ownership of the returned stream clear
svn-id: r36014
Diffstat (limited to 'backends/platform/dc/dc-fs.cpp')
-rw-r--r--backends/platform/dc/dc-fs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/platform/dc/dc-fs.cpp b/backends/platform/dc/dc-fs.cpp
index 810eed836c..e21a12fa33 100644
--- a/backends/platform/dc/dc-fs.cpp
+++ b/backends/platform/dc/dc-fs.cpp
@@ -53,8 +53,8 @@ public:
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const { return false; }
virtual AbstractFSNode *getParent() const;
- virtual Common::SeekableReadStream *openForReading();
- virtual Common::WriteStream *openForWriting() { return 0; }
+ virtual Common::SeekableReadStream *createReadStream();
+ virtual Common::WriteStream *createWriteStream() { return 0; }
static AbstractFSNode *makeFileNodePath(const Common::String &path);
};
@@ -67,7 +67,7 @@ public:
virtual bool isDirectory() const { return true; }
virtual AbstractFSNode *getChild(const Common::String &n) const;
virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const;
- virtual Common::SeekableReadStream *openForReading() { return 0; }
+ virtual Common::SeekableReadStream *createReadStream() { return 0; }
};
/* A file/directory which does not exist */
@@ -77,7 +77,7 @@ public:
virtual bool exists() const { return false; }
virtual bool isReadable() const { return false; }
- virtual Common::SeekableReadStream *openForReading() { return 0; }
+ virtual Common::SeekableReadStream *createReadStream() { return 0; }
};
AbstractFSNode *RoninCDFileNode::makeFileNodePath(const Common::String &path) {
@@ -150,7 +150,7 @@ AbstractFSNode *RoninCDFileNode::getParent() const {
}
-Common::SeekableReadStream *RoninCDFileNode::openForReading() {
+Common::SeekableReadStream *RoninCDFileNode::createReadStream() {
return StdioStream::makeFromPath(getPath().c_str(), false);
}