[Scummvm-cvs-logs] SF.net SVN: scummvm:[43405] scummvm/branches/branch-1-0-0/backends/fs/psp
joostp at users.sourceforge.net
joostp at users.sourceforge.net
Sat Aug 15 12:45:51 CEST 2009
Revision: 43405
http://scummvm.svn.sourceforge.net/scummvm/?rev=43405&view=rev
Author: joostp
Date: 2009-08-15 10:45:51 +0000 (Sat, 15 Aug 2009)
Log Message:
-----------
Properly implement PSPFilesystemFactory::makeCurrentDirectoryFileNode()
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs-factory.cpp
scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs.cpp
Modified: scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs-factory.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs-factory.cpp 2009-08-15 10:44:58 UTC (rev 43404)
+++ scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs-factory.cpp 2009-08-15 10:45:51 UTC (rev 43405)
@@ -33,7 +33,8 @@
}
AbstractFSNode *PSPFilesystemFactory::makeCurrentDirectoryFileNode() const {
- return new PSPFilesystemNode();
+ char buf[MAXPATHLEN];
+ return getcwd(buf, MAXPATHLEN) ? new PSPFilesystemNode(buf) : NULL;
}
AbstractFSNode *PSPFilesystemFactory::makeFileNodePath(const Common::String &path) const {
Modified: scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs.cpp 2009-08-15 10:44:58 UTC (rev 43404)
+++ scummvm/branches/branch-1-0-0/backends/fs/psp/psp-fs.cpp 2009-08-15 10:45:51 UTC (rev 43405)
@@ -59,7 +59,7 @@
* @param path Common::String with the path the new node should point to.
* @param verify true if the isValid and isDirectory flags should be verified during the construction.
*/
- PSPFilesystemNode(const Common::String &p, bool verify);
+ PSPFilesystemNode(const Common::String &p, bool verify = true);
virtual bool exists() const { return access(_path.c_str(), F_OK) == 0; }
virtual Common::String getDisplayName() const { return _displayName; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list