[physfs] Unpacked file format with long paths
Sik
sik.the.hedgehog at gmail.com
Thu Jun 15 20:56:15 EDT 2017
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.
More information about the physfs
mailing list