diff options
author | Max Horn | 2009-01-23 03:41:36 +0000 |
---|---|---|
committer | Max Horn | 2009-01-23 03:41:36 +0000 |
commit | 8f16458e9ba830fe80f177cc2fc3bcf2af84ebef (patch) | |
tree | 36236e2af1589bca848ce28d7606ef6e789431e8 /backends/fs/ds | |
parent | e4b013f616818f6da4cf7a1896f31d1429ef8f04 (diff) | |
download | scummvm-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/fs/ds')
-rw-r--r-- | backends/fs/ds/ds-fs.cpp | 8 | ||||
-rw-r--r-- | backends/fs/ds/ds-fs.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp index 3ab1c90038..79f10fdb62 100644 --- a/backends/fs/ds/ds-fs.cpp +++ b/backends/fs/ds/ds-fs.cpp @@ -196,11 +196,11 @@ AbstractFSNode* DSFileSystemNode::getParent() const { return p; } -Common::SeekableReadStream *DSFileSystemNode::openForReading() { +Common::SeekableReadStream *DSFileSystemNode::createReadStream() { return StdioStream::makeFromPath(getPath().c_str(), false); } -Common::WriteStream *DSFileSystemNode::openForWriting() { +Common::WriteStream *DSFileSystemNode::createWriteStream() { return StdioStream::makeFromPath(getPath().c_str(), true); } @@ -372,7 +372,7 @@ AbstractFSNode* GBAMPFileSystemNode::getParent() const { return p; } -Common::SeekableReadStream *GBAMPFileSystemNode::openForReading() { +Common::SeekableReadStream *GBAMPFileSystemNode::createReadStream() { // consolePrintf("Opening: %s\n", getPath().c_str()); if (!strncmp(getPath().c_str(), "mp:/", 4)) { @@ -382,7 +382,7 @@ Common::SeekableReadStream *GBAMPFileSystemNode::openForReading() { } } -Common::WriteStream *GBAMPFileSystemNode::openForWriting() { +Common::WriteStream *GBAMPFileSystemNode::createWriteStream() { return StdioStream::makeFromPath(getPath().c_str(), true); } diff --git a/backends/fs/ds/ds-fs.h b/backends/fs/ds/ds-fs.h index 24d51d9d71..beea422a14 100644 --- a/backends/fs/ds/ds-fs.h +++ b/backends/fs/ds/ds-fs.h @@ -90,8 +90,8 @@ public: virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFSNode *getParent() const; - virtual Common::SeekableReadStream *openForReading(); - virtual Common::WriteStream *openForWriting(); + virtual Common::SeekableReadStream *createReadStream(); + virtual Common::WriteStream *createWriteStream(); /** * Returns the zip file this node points to. @@ -155,8 +155,8 @@ public: virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFSNode *getParent() const; - virtual Common::SeekableReadStream *openForReading(); - virtual Common::WriteStream *openForWriting(); + virtual Common::SeekableReadStream *createReadStream(); + virtual Common::WriteStream *createWriteStream(); }; struct fileHandle { |