[physfs] PHYSFS_enumerateFilesCallback: possible issue with Quake II .pak archives
Ryan C. Gordon
icculus at icculus.org
Tue Aug 15 02:54:52 EDT 2017
As a followup, all of this code got rewritten, and _should_ fix this bug.
--ryan.
On 2/18/17 8:09 AM, Jay Dolan wrote:
> Hi there,
>
> I'm seeing an issue where PHYSFS_enumerateFilesCallback fails to fully
> process .pak archives. A good test case is the pak0.pak that comes with
> Threewave CTF for Quake II. Internally, this pak file is not
> alphabetically sorted (maybe the code makes some assumptions about that?).
>
> If you ask PHYSFS_enumerateFilesCallback to enumerate the "maps"
> directory, you'll only see maps/q2ctf7.bsp, skipping the 6 other entries
> in the pak. In stepping through the code, it looks like the enumerator
> finds "maps.list" and then bails, without iterating the remaining
> maps/*.bsp entries.
>
> I hope I've explained this clearly..
>
> Thanks!
>
> --
> Jay Dolan
> 508-415-1866
>
>
> _______________________________________________
> physfs mailing list
> physfs at icculus.org
> http://icculus.org/mailman/listinfo/physfs
>
More information about the physfs
mailing list