diff options
author | Cameron Cawley | 2019-07-01 17:59:27 +0100 |
---|---|---|
committer | Filippos Karapetis | 2019-08-06 07:17:29 +0300 |
commit | db445bfc87600d0f87bdeeb8b3bf40a3a935f097 (patch) | |
tree | 55fc8fd3c04cdb54f7da17c9f12aa27de895782e /backends/fs/ds | |
parent | 66ef50cfebbcd650a6b57d896a9ba057a23cea35 (diff) | |
download | scummvm-rg350-db445bfc87600d0f87bdeeb8b3bf40a3a935f097.tar.gz scummvm-rg350-db445bfc87600d0f87bdeeb8b3bf40a3a935f097.tar.bz2 scummvm-rg350-db445bfc87600d0f87bdeeb8b3bf40a3a935f097.zip |
BACKENDS: Improve AbstractFSNode::createDirectory() stubs
Diffstat (limited to 'backends/fs/ds')
-rw-r--r-- | backends/fs/ds/ds-fs.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp index 8498a77751..64430f3fe5 100644 --- a/backends/fs/ds/ds-fs.cpp +++ b/backends/fs/ds/ds-fs.cpp @@ -212,8 +212,7 @@ Common::WriteStream *DSFileSystemNode::createWriteStream() { } bool DSFileSystemNode::createDirectory() { - error("Not supported"); - return false; + return _isValid && _isDirectory; } ////////////////////////////////////////////////////////////////////////// @@ -399,8 +398,8 @@ Common::WriteStream *GBAMPFileSystemNode::createWriteStream() { } bool GBAMPFileSystemNode::createDirectory() { - error("Not supported"); - return false; + warning("GBAMPFileSystemNode::createDirectory(): Not supported"); + return _isValid && _isDirectory; } |