From 7f18aaf8ec92a7ec7cd837db92b93dfada87eef3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 3 Sep 2008 12:56:46 +0000 Subject: Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends svn-id: r34304 --- backends/fs/ps2/ps2-fs.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'backends/fs/ps2') diff --git a/backends/fs/ps2/ps2-fs.cpp b/backends/fs/ps2/ps2-fs.cpp index 65ea86826c..3d7656e9f0 100644 --- a/backends/fs/ps2/ps2-fs.cpp +++ b/backends/fs/ps2/ps2-fs.cpp @@ -23,6 +23,7 @@ */ #include "backends/fs/abstract-fs.h" +#include "backends/fs/stdiostream.h" #include #include #include @@ -98,6 +99,9 @@ public: virtual AbstractFilesystemNode *getChild(const Common::String &n) const; virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFilesystemNode *getParent() const; + + virtual Common::SeekableReadStream *openForReading(); + virtual Common::WriteStream *openForWriting(); }; Ps2FilesystemNode::Ps2FilesystemNode() { @@ -337,3 +341,10 @@ char *Ps2FilesystemNode::getDeviceDescription(const char *path) const { return "Harddisk"; } +Common::SeekableReadStream *Ps2FilesystemNode::openForReading() { + return StdioStream::makeFromPath(getPath().c_str(), false); +} + +Common::WriteStream *Ps2FilesystemNode::openForWriting() { + return StdioStream::makeFromPath(getPath().c_str(), true); +} -- cgit v1.2.3