aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/chroot
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-25 16:49:17 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit17fc40a94436f970af75d6717c7a63c70eafcb12 (patch)
tree601c414c39ffa3b4ad66a91b58b6cb646a09c817 /backends/fs/chroot
parentae8e7f39f5b3e4f647a29d39d19cce7626528bb1 (diff)
downloadscummvm-rg350-17fc40a94436f970af75d6717c7a63c70eafcb12.tar.gz
scummvm-rg350-17fc40a94436f970af75d6717c7a63c70eafcb12.tar.bz2
scummvm-rg350-17fc40a94436f970af75d6717c7a63c70eafcb12.zip
CLOUD: Add AbstractFSNode::create() backends stubs
Diffstat (limited to 'backends/fs/chroot')
-rw-r--r--backends/fs/chroot/chroot-fs.cpp5
-rw-r--r--backends/fs/chroot/chroot-fs.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/backends/fs/chroot/chroot-fs.cpp b/backends/fs/chroot/chroot-fs.cpp
index 2cbb4af9d6..f5f7c84570 100644
--- a/backends/fs/chroot/chroot-fs.cpp
+++ b/backends/fs/chroot/chroot-fs.cpp
@@ -108,6 +108,11 @@ Common::WriteStream *ChRootFilesystemNode::createWriteStream() {
return _realNode->createWriteStream();
}
+bool ChRootFilesystemNode::create(bool isDirectory) {
+ error("Not supported");
+ return false;
+}
+
Common::String ChRootFilesystemNode::addPathComponent(const Common::String &path, const Common::String &component) {
const char sep = '/';
if (path.lastChar() == sep && component.firstChar() == sep) {
diff --git a/backends/fs/chroot/chroot-fs.h b/backends/fs/chroot/chroot-fs.h
index 9ff913be31..e0ecc1c47e 100644
--- a/backends/fs/chroot/chroot-fs.h
+++ b/backends/fs/chroot/chroot-fs.h
@@ -49,6 +49,7 @@ public:
virtual Common::SeekableReadStream *createReadStream();
virtual Common::WriteStream *createWriteStream();
+ virtual bool create(bool isDirectory);
private:
static Common::String addPathComponent(const Common::String &path, const Common::String &component);