[Scummvm-cvs-logs] SF.net SVN: scummvm:[43404] scummvm/trunk/backends/fs/psp
joostp at users.sourceforge.net
joostp at users.sourceforge.net
Sat Aug 15 12:44:58 CEST 2009
Revision: 43404
http://scummvm.svn.sourceforge.net/scummvm/?rev=43404&view=rev
Author: joostp
Date: 2009-08-15 10:44:58 +0000 (Sat, 15 Aug 2009)
Log Message:
-----------
Properly implement PSPFilesystemFactory::makeCurrentDirectoryFileNode()
Modified Paths:
--------------
scummvm/trunk/backends/fs/psp/psp-fs-factory.cpp
scummvm/trunk/backends/fs/psp/psp-fs.cpp
Modified: scummvm/trunk/backends/fs/psp/psp-fs-factory.cpp
===================================================================
--- scummvm/trunk/backends/fs/psp/psp-fs-factory.cpp 2009-08-15 10:32:23 UTC (rev 43403)
+++ scummvm/trunk/backends/fs/psp/psp-fs-factory.cpp 2009-08-15 10:44:58 UTC (rev 43404)
@@ -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/trunk/backends/fs/psp/psp-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/psp/psp-fs.cpp 2009-08-15 10:32:23 UTC (rev 43403)
+++ scummvm/trunk/backends/fs/psp/psp-fs.cpp 2009-08-15 10:44:58 UTC (rev 43404)
@@ -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