A useful utility function...
Adam D. Moss
adam at gimp.org
Sun Oct 5 11:38:22 EDT 2003
This function can be used from an application in a similar
manner to PHYSFS_addToSearchPath(), with some useful differences:
* The string it takes is in system-independant (more specifically,
unix-like) format, including suitable munging for '..' and
successive slashes.
* The paths it adds are relative to the program's *base*
directory (as returned by PHYSFS_getBaseDir()) rather than the
user/process's current working directory. (If you supply a path
preceded by a '/' then the path is relative to the cwd as usual
for physfs, but is still system-independant.)
This was useful for me. Hope it's useful to someone else.
--Adam
--
Adam D. Moss . ,,^^ adam at gimp.org http://www.foxbox.org/ co:3
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binrel.txt
URL: <http://icculus.org/pipermail/physfs/attachments/20031005/f2a11631/attachment.txt>
More information about the physfs
mailing list