Skip to content

Commit

Permalink
Try the DIR archiver first, since there's no sense in trying to open a
Browse files Browse the repository at this point in the history
 directory as a file in all the other archivers first.
  • Loading branch information
icculus committed Mar 31, 2007
1 parent a8de536 commit 60dfcae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.txt
Expand Up @@ -2,7 +2,10 @@
* CHANGELOG.
*/

03312007 - Added a quick'n'dirty unpack utility to the extras directory.
03312007 - Added a quick'n'dirty unpack utility to the extras directory. Moved
DIR archiver to start of the list, so we don't have to have every
other archiver fail to open a directory as a file before mounting
it.
03282007 - Logic bug in MVL/HOG/GRP archivers: only enumerated files when
looking in a directory other than the root, instead of enumerating
only for the root (thanks, Chris!). Minor fix for compilers that
Expand Down
2 changes: 1 addition & 1 deletion physfs.c
Expand Up @@ -96,6 +96,7 @@ static const PHYSFS_ArchiveInfo *supported_types[] =

static const PHYSFS_Archiver *archivers[] =
{
&__PHYSFS_Archiver_DIR,
#if (defined PHYSFS_SUPPORTS_ZIP)
&__PHYSFS_Archiver_ZIP,
#endif
Expand All @@ -117,7 +118,6 @@ static const PHYSFS_Archiver *archivers[] =
#if (defined PHYSFS_SUPPORTS_WAD)
&__PHYSFS_Archiver_WAD,
#endif
&__PHYSFS_Archiver_DIR,
NULL
};

Expand Down

0 comments on commit 60dfcae

Please sign in to comment.