Tao.PhysFs SDK Documentation

Fs.PHYSFS_getSearchPath Method 

Get the current search path.

[Visual Basic]
Public Shared Function PHYSFS_getSearchPath() As String()
[C#]
public static string[] PHYSFS_getSearchPath();

Return Value

Null-terminated array of null-terminated strings. NULL if there was a problem (read: OUT OF MEMORY).

Remarks

The default search path is an empty list.

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

            char **i;
            for (i = PHYSFS_getSearchPath(); *i != NULL; i++)
                    printf("[%s] is in the search path.\n", *i);
                

When you are done with the returned information, you may dispose of the resources by calling PHYSFS_freeList with the returned pointer.

Please note that Tao.PhysFs calls PHYSFS_freeList for you.

See Also

Fs Class | Tao.PhysFs Namespace | PHYSFS_addToSearchPath | PHYSFS_removeFromSearchPath