[Scummvm-cvs-logs] SF.net SVN: scummvm: [22302] scummvm/trunk/backends/fs/posix/posix-fs.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed May 3 04:37:04 CEST 2006


Revision: 22302
Author:   fingolfin
Date:     2006-05-03 04:36:07 -0700 (Wed, 03 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22302&view=rev

Log Message:
-----------
Disabled evil getcwd hack in POSIXFilesystemNode

Modified Paths:
--------------
    scummvm/trunk/backends/fs/posix/posix-fs.cpp
Modified: scummvm/trunk/backends/fs/posix/posix-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/posix/posix-fs.cpp	2006-05-03 11:14:29 UTC (rev 22301)
+++ scummvm/trunk/backends/fs/posix/posix-fs.cpp	2006-05-03 11:36:07 UTC (rev 22302)
@@ -83,7 +83,13 @@
 }
 
 POSIXFilesystemNode::POSIXFilesystemNode() {
-#ifndef __DC__
+/*  The Browser code now saves the last browsed directory into the config file.
+    Hence the need to start at the "current" directory is far less, and we can
+    remove this hack for now. Still, there may be some need to obtain a ref
+    to the "current" directory. See the TODO list for some thoughts on this.
+    
+    I am leaving this code in here for the time being, to be used as reference.
+
 	// FIXME: It is evil & slow to always call getcwd here.
 	// The intention behind this hack was/is to be more user friendly
 	// in our save/load dialogs: Instead of starting at the FS root,
@@ -97,10 +103,10 @@
 	_path = buf;
 	_displayName = lastPathComponent(_path);
 	_path += '/';
-#else
+*/
+	// The root dir.
 	_path = "/";
 	_displayName = _path;
-#endif
 	_isValid = true;
 	_isDirectory = true;
 }


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