diff options
author | lolbot-iichan | 2019-06-30 21:21:46 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-08-11 22:15:54 +0300 |
commit | 75539407921c660f06b80ed2e242372bee76c5dd (patch) | |
tree | 808856fa499c585c2622ac911ac4eb68cd07f22f | |
parent | f1250dbfcb4fe0c7431c9b928e9f12c2d16aadd2 (diff) | |
download | scummvm-rg350-75539407921c660f06b80ed2e242372bee76c5dd.tar.gz scummvm-rg350-75539407921c660f06b80ed2e242372bee76c5dd.tar.bz2 scummvm-rg350-75539407921c660f06b80ed2e242372bee76c5dd.zip |
COMMON: Add warnings on failed FSNode::createDirectory()
-rw-r--r-- | common/fs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/fs.cpp b/common/fs.cpp index 4b3ab21eb0..d27de48370 100644 --- a/common/fs.cpp +++ b/common/fs.cpp @@ -157,6 +157,11 @@ bool FSNode::createDirectory() const { return false; if (_realNode->exists()) { + if (_realNode->isDirectory()) { + warning("FSNode::createDirectory: '%s' already exists", getName().c_str()); + } else { + warning("FSNode::createDirectory: '%s' is a file", getName().c_str()); + } return false; } |