Case insensitive matching for .uqm/.zip/.rmp. Also fixes an error in the regexp used before.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3090 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2008-10-15 17:45:17 +00:00
parent 060acd4518
commit 72e31c75db
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.7: Changes towards version 0.7:
- Case insensitive matching when looking for .zip/.uqm/.rmp files - SvdB
- Added read-ahead buffering when reading zip index files. - SvdB - Added read-ahead buffering when reading zip index files. - SvdB
- Added support for packed ani and font files - Mika - Added support for packed ani and font files - Mika
- DrawTracedText abstraction (bug #1029), from Nic - DrawTracedText abstraction (bug #1029), from Nic
+2 -2
View File
@@ -408,7 +408,7 @@ mountDirZips (uio_MountHandle *contentHandle, uio_DirHandle *dirHandle, const ch
static uio_AutoMount *autoMount[] = { NULL }; static uio_AutoMount *autoMount[] = { NULL };
uio_DirList *dirList; uio_DirList *dirList;
dirList = uio_getDirList (dirHandle, "", ".(zip|uqm)$", dirList = uio_getDirList (dirHandle, "", "\\.([zZ][iI][pP]|[uU][qQ][mM])$",
match_MATCH_REGEX); match_MATCH_REGEX);
if (dirList != NULL) if (dirList != NULL)
{ {
@@ -435,7 +435,7 @@ loadIndices (uio_DirHandle *dir)
uio_DirList *indices; uio_DirList *indices;
int numLoaded = 0; int numLoaded = 0;
indices = uio_getDirList (dir, "", ".rmp$", indices = uio_getDirList (dir, "", "\\.[rR][mM][pP]$",
match_MATCH_REGEX); match_MATCH_REGEX);
if (indices != NULL) if (indices != NULL)