aboutsummaryrefslogtreecommitdiff
path: root/backends/fs
diff options
context:
space:
mode:
authorMax Horn2003-10-08 22:47:41 +0000
committerMax Horn2003-10-08 22:47:41 +0000
commitde74ceb60acb166b61461d9a22d14b42138de416 (patch)
tree3f16e55e16c9ea4a9faf3027a43ac01acb923a6b /backends/fs
parent6e09d35090ab1fa600c5fe1e2f2006ffb0e9c131 (diff)
downloadscummvm-rg350-de74ceb60acb166b61461d9a22d14b42138de416.tar.gz
scummvm-rg350-de74ceb60acb166b61461d9a22d14b42138de416.tar.bz2
scummvm-rg350-de74ceb60acb166b61461d9a22d14b42138de416.zip
fix bug where going up in the root dir would get you back to the (unix) current dir (instead of staying at the root)
svn-id: r10689
Diffstat (limited to 'backends/fs')
-rw-r--r--backends/fs/posix/posix-fs.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index 26b3075436..43574ac818 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -161,10 +161,13 @@ FilesystemNode *POSIXFilesystemNode::parent() const {
const char *end = lastPathComponent(_path);
p->_path = String(start, end - start);
- p->_isValid = true;
- p->_isDirectory = true;
p->_displayName = lastPathComponent(p->_path);
+ } else {
+ p->_path = _path;
+ p->_displayName = _displayName;
}
+ p->_isValid = true;
+ p->_isDirectory = true;
return p;
}