[physfs] Unpacked file format with long paths

Francesco Bertolaccini bertolaccinifrancesco at gmail.com
Fri Jun 16 03:12:49 EDT 2017


I will give it a try, thank you.

Il 16 giu 2017 02:56, "Sik" <sik.the.hedgehog at gmail.com> ha scritto:

> 2017-06-15 16:53 GMT-03:00, Ryan C. Gordon <icculus at icculus.org>:
> >      typedef struct
> >      {
> >          char name[64];
> >          PHYSFS_uint32 startPos;
> >          PHYSFS_uint32 size;
> >      } UNPKentry;
>
> Are there arrays of those structs or the like? Because if not (i.e.
> doesn't matter if their size isn't fixed), you could just move name to
> the end and change it to name[0] (or name[1] if it gets nasty), then
> allocate as many extra bytes as needed for holding the name.
>
> Otherwise yeah you'll run into the need for dynamic allocation.
> Meanwhile you could change it to 256, I suppose.
> _______________________________________________
> physfs mailing list
> physfs at icculus.org
> http://icculus.org/mailman/listinfo/physfs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20170616/9bd27c46/attachment.html>


More information about the physfs mailing list