aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorNicola Mettifogo2008-09-05 18:28:25 +0000
committerNicola Mettifogo2008-09-05 18:28:25 +0000
commit5c6e286c6880dc4515c4242dcc881a6773719a10 (patch)
tree6e790343e187505cb0ec3756ee13b3daa68ec772 /common
parent87d67be832d1fe3288033604d2cf391bef3af5cf (diff)
downloadscummvm-rg350-5c6e286c6880dc4515c4242dcc881a6773719a10.tar.gz
scummvm-rg350-5c6e286c6880dc4515c4242dcc881a6773719a10.tar.bz2
scummvm-rg350-5c6e286c6880dc4515c4242dcc881a6773719a10.zip
Made FSDirectory use the default matchPattern implementation.
svn-id: r34360
Diffstat (limited to 'common')
-rw-r--r--common/archive.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/common/archive.cpp b/common/archive.cpp
index 18c918f914..8ec80938bc 100644
--- a/common/archive.cpp
+++ b/common/archive.cpp
@@ -169,23 +169,7 @@ int FSDirectory::matchPattern(StringList &list, const String &pattern) {
_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);
}