Skip to content

Commit

Permalink
Made archiver case-insensitive for Quake 2 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 12, 2003
1 parent 0e334ae commit f3f15ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions archivers/qpak.c
Expand Up @@ -289,7 +289,7 @@ static QPAKdirectory *qpak_findDirectory(QPAKdirectory *root, const char *name)
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 */
Expand All @@ -305,7 +305,7 @@ static QPAKdirectory *qpak_findDirectory(QPAKdirectory *root, const char *name)

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 */
Expand Down Expand Up @@ -387,8 +387,8 @@ static QPAKentry *qpak_findEntry(QPAKdirectory *root, const char *name)

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 */
Expand Down

0 comments on commit f3f15ed

Please sign in to comment.