Tao.PhysFs SDK Documentation

Fs.PHYSFS_supportedArchiveTypes Method 

Get a list of supported archive types.

[Visual Basic]
Public Shared Function PHYSFS_supportedArchiveTypes() As PHYSFS_ArchiveInfo()
[C#]
public static PHYSFS_ArchiveInfo[] PHYSFS_supportedArchiveTypes();

Return Value

Null-terminated array of READ ONLY structures.

Remarks

Get a list of archive types supported by this implementation of PhysicFS. These are the file formats usable for search path entries. This is for informational purposes only. Note that the extension listed is merely convention: if we list "ZIP", you can open a PkZip-compatible archive with an extension of "XYZ", if you like.

The returned value is an array of pointers to PHYSFS_ArchiveInfo structures, with a NULL entry to signify the end of the list:

            PHYSFS_ArchiveInfo **i;
            for (i = PHYSFS_supportedArchiveTypes(); *i != NULL; i++)
            {
                    printf("Supported archive: [%s], which is [%s].\n",
                        i->extension, i->description);
                }
            

The return values are pointers to static internal memory, and should be considered READ ONLY, and never freed.

See Also

Fs Class | Tao.PhysFs Namespace