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/amigaos4 | |
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/amigaos4')
-rw-r--r-- | backends/fs/amigaos4/amigaos4-fs.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/backends/fs/amigaos4/amigaos4-fs.cpp b/backends/fs/amigaos4/amigaos4-fs.cpp index 4f6bce39b3..816fb34679 100644 --- a/backends/fs/amigaos4/amigaos4-fs.cpp +++ b/backends/fs/amigaos4/amigaos4-fs.cpp @@ -36,8 +36,9 @@ #endif #include "common/util.h" -#include "engines/engine.h" +#include "engines/engine.h" // FIXME: Why is this here???? #include "backends/fs/abstract-fs.h" +#include "backends/fs/stdiostream.h" #define ENTER() /* debug(6, "Enter") */ #define LEAVE() /* debug(6, "Leave") */ @@ -107,6 +108,9 @@ public: virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; virtual AbstractFilesystemNode *getParent() const; + virtual Common::SeekableReadStream *openForReading(); + virtual Common::WriteStream *openForWriting(); + /** * Creates a list with all the volumes present in the root node. */ @@ -566,4 +570,12 @@ AbstractFSList AmigaOSFilesystemNode::listVolumes() const { return myList; } +Common::SeekableReadStream *AmigaOSFilesystemNode::openForReading() { + return StdioStream::makeFromPath(getPath().c_str(), false); +} + +Common::WriteStream *AmigaOSFilesystemNode::openForWriting() { + return StdioStream::makeFromPath(getPath().c_str(), true); +} + #endif //defined(__amigaos4__) |