diff options
author | Max Horn | 2008-09-03 12:56:46 +0000 |
---|---|---|
committer | Max Horn | 2008-09-03 12:56:46 +0000 |
commit | 7f18aaf8ec92a7ec7cd837db92b93dfada87eef3 (patch) | |
tree | e1510dfc5cd2b50b0d77c5a384307174687c4116 /backends/fs/wii/wii-fs.cpp | |
parent | 320a5dc99fa416d63a5fb8ec63c07463c80dc633 (diff) | |
download | scummvm-rg350-7f18aaf8ec92a7ec7cd837db92b93dfada87eef3.tar.gz scummvm-rg350-7f18aaf8ec92a7ec7cd837db92b93dfada87eef3.tar.bz2 scummvm-rg350-7f18aaf8ec92a7ec7cd837db92b93dfada87eef3.zip |
Pushed AbstractFilesystemNode::openForReading() / openForWriting() impls out to backends
svn-id: r34304
Diffstat (limited to 'backends/fs/wii/wii-fs.cpp')
-rw-r--r-- | backends/fs/wii/wii-fs.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/fs/wii/wii-fs.cpp b/backends/fs/wii/wii-fs.cpp index 0d489d3a99..a620df5471 100644 --- a/backends/fs/wii/wii-fs.cpp +++ b/backends/fs/wii/wii-fs.cpp @@ -23,6 +23,7 @@ #if defined(__WII__) #include "backends/fs/abstract-fs.h" +#include "backends/fs/stdiostream.h" #include <sys/dir.h> @@ -67,6 +68,9 @@ public: virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFilesystemNode *getParent() const; + virtual Common::SeekableReadStream *openForReading(); + virtual Common::WriteStream *openForWriting(); + private: virtual void setFlags(); }; @@ -168,5 +172,13 @@ AbstractFilesystemNode *WiiFilesystemNode::getParent() const { return new WiiFilesystemNode(Common::String(start, end - start), true); } +Common::SeekableReadStream *WiiFilesystemNode::openForReading() { + return StdioStream::makeFromPath(getPath().c_str(), false); +} + +Common::WriteStream *WiiFilesystemNode::openForWriting() { + return StdioStream::makeFromPath(getPath().c_str(), true); +} + #endif //#if defined(__WII__) |