Made archiver case-insensitive for Quake 2 compatibility.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 12 Mar 2003 09:02:02 +0000
changeset 543 90607e53b9b2
parent 542 deea78d247ea
child 544 ad0390602ec3
Made archiver case-insensitive for Quake 2 compatibility.
archivers/qpak.c
--- a/archivers/qpak.c	Wed Mar 12 06:24:26 2003 +0000
+++ b/archivers/qpak.c	Wed Mar 12 09:02:02 2003 +0000
@@ -289,7 +289,7 @@
         QPAKdirectory *thisDir = root->dirs;
         while (thisDir != NULL)
         {
-            if (strcmp(thisDir->name, name) == 0)
+            if (__PHYSFS_platformStricmp(thisDir->name, name) == 0)
                 return(thisDir);
             thisDir = thisDir->next;
         } /* while */
@@ -305,7 +305,7 @@
 
         while (thisDir != NULL)
         {
-            if (strcmp(thisDir->name, temp) == 0)
+            if (__PHYSFS_platformStricmp(thisDir->name, temp) == 0)
                 return(qpak_findDirectory(thisDir, p + 1));
             thisDir = thisDir->next;
         } /* while */
@@ -387,8 +387,8 @@
 
     while (thisFile != NULL)
     {
-        if (strcmp(thisFile->name, t) == 0)
-            return(thisFile->entry);
+        if (__PHYSFS_platformStricmp(thisFile->name, t) == 0)
+           return(thisFile->entry);
 
         thisFile = thisFile->next;
     } /* while */