aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/symbian
diff options
context:
space:
mode:
authorMax Horn2008-09-03 12:56:46 +0000
committerMax Horn2008-09-03 12:56:46 +0000
commit7f18aaf8ec92a7ec7cd837db92b93dfada87eef3 (patch)
treee1510dfc5cd2b50b0d77c5a384307174687c4116 /backends/fs/symbian
parent320a5dc99fa416d63a5fb8ec63c07463c80dc633 (diff)
downloadscummvm-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/symbian')
-rw-r--r--backends/fs/symbian/symbian-fs.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp
index a59f06b9eb..a6f359a4ae 100644
--- a/backends/fs/symbian/symbian-fs.cpp
+++ b/backends/fs/symbian/symbian-fs.cpp
@@ -24,6 +24,7 @@
#if defined (__SYMBIAN32__)
#include "backends/fs/abstract-fs.h"
+#include "backends/fs/stdiostream.h"
#include "backends/platform/symbian/src/SymbianOS.h"
#include <dirent.h>
@@ -76,6 +77,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();
};
/**
@@ -248,4 +252,12 @@ AbstractFilesystemNode *SymbianFilesystemNode::getParent() const {
return p;
}
+Common::SeekableReadStream *SymbianFilesystemNode::openForReading() {
+ return StdioStream::makeFromPath(getPath().c_str(), false);
+}
+
+Common::WriteStream *SymbianFilesystemNode::openForWriting() {
+ return StdioStream::makeFromPath(getPath().c_str(), true);
+}
+
#endif //#if defined (__SYMBIAN32__)