[Scummvm-cvs-logs] SF.net SVN: scummvm:[34857] scummvm/trunk/common/file.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Oct 27 03:30:29 CET 2008


Revision: 34857
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34857&view=rev
Author:   lordhoto
Date:     2008-10-27 02:30:29 +0000 (Mon, 27 Oct 2008)

Log Message:
-----------
Fix for bug #2198456 "FS: Cannot add a subfolder to a non-existing folder".

Modified Paths:
--------------
    scummvm/trunk/common/file.cpp

Modified: scummvm/trunk/common/file.cpp
===================================================================
--- scummvm/trunk/common/file.cpp	2008-10-26 19:27:26 UTC (rev 34856)
+++ scummvm/trunk/common/file.cpp	2008-10-27 02:30:29 UTC (rev 34857)
@@ -37,7 +37,8 @@
 }
 
 void File::addDefaultDirectory(const FSNode &dir) {
-	SearchMan.addDirectory(dir.getPath(), dir);
+	if (dir.exists() && dir.isDirectory())
+		SearchMan.addDirectory(dir.getPath(), dir);
 }
 
 File::File()


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