mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user