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

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Fri Sep 5 20:28:25 CEST 2008


Revision: 34360
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34360&view=rev
Author:   peres001
Date:     2008-09-05 18:28:25 +0000 (Fri, 05 Sep 2008)

Log Message:
-----------
Made FSDirectory use the default matchPattern implementation.

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

Modified: scummvm/trunk/common/archive.cpp
===================================================================
--- scummvm/trunk/common/archive.cpp	2008-09-05 18:24:41 UTC (rev 34359)
+++ scummvm/trunk/common/archive.cpp	2008-09-05 18:28:25 UTC (rev 34360)
@@ -169,23 +169,7 @@
 		_cached = true;
 	}
 
-	int matches = 0;
-
-	// need to match lowercase key
-	String lowercasePattern = pattern;
-	lowercasePattern.toLowercase();
-
-	// Full *key* match, with path separators (backslashes) considered
-	// as normal characters.
-	NodeCache::iterator it = _fileCache.begin();
-	for ( ; it != _fileCache.end(); it++) {
-		if (matchString((*it)._key.c_str(), lowercasePattern.c_str())) {
-			list.push_back((*it)._key);
-			matches++;
-		}
-	}
-
-	return matches;
+	return Archive::matchPattern(list, pattern);
 }
 
 


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