[Scummvm-cvs-logs] CVS: scummvm/backends/fs/posix posix-fs.cpp,1.14,1.15
Max Horn
fingolfin at users.sourceforge.net
Wed Oct 8 15:48:05 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/fs/posix
In directory sc8-pr-cvs1:/tmp/cvs-serv15458
Modified Files:
posix-fs.cpp
Log Message:
fix bug where going up in the root dir would get you back to the (unix) current dir (instead of staying at the root)
Index: posix-fs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/fs/posix/posix-fs.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- posix-fs.cpp 2 Oct 2003 17:42:58 -0000 1.14
+++ posix-fs.cpp 8 Oct 2003 22:47:41 -0000 1.15
@@ -161,10 +161,13 @@
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;
}
More information about the Scummvm-git-logs
mailing list