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

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Oct 2 19:52:30 CEST 2008


Revision: 34721
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34721&view=rev
Author:   fingolfin
Date:     2008-10-02 17:52:29 +0000 (Thu, 02 Oct 2008)

Log Message:
-----------
Add the current dir to the global SearchSet, i.e. to SearchMan (this should fix the problems on Windows, and maybe other systems, see 'bug' #2137680)

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

Modified: scummvm/trunk/common/archive.cpp
===================================================================
--- scummvm/trunk/common/archive.cpp	2008-10-02 17:48:01 UTC (rev 34720)
+++ scummvm/trunk/common/archive.cpp	2008-10-02 17:52:29 UTC (rev 34721)
@@ -352,6 +352,10 @@
 	// But we give them a lower priority than the default priority (which is 0),
 	// so that archives added by client code are searched first.
 	g_system->addSysArchivesToSearchSet(*this, -1);
+
+	// Add the current dir as a very last resort.
+	// See also bug #2137680.
+	add(".", ArchivePtr(new FSDirectory(".")), -2);
 }
 
 } // namespace Common


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