Tao.PhysFs SDK Documentation

Fs.PHYSFS_addToSearchPath Method 

Add an archive or directory to the search path.

[Visual Basic]
Public Shared Function PHYSFS_addToSearchPath( _
   ByVal newDir As String, _
   ByVal appendToPath As Integer _
) As Integer
[C#]
public static int PHYSFS_addToSearchPath(
   string newDir,
   int appendToPath
);

Parameters

newDir
directory or archive to add to the path, in platform-dependent notation.
appendToPath
nonzero to append to search path, zero to prepend.

Return Value

nonzero if added to path, zero on failure (bogus archive, dir missing, etc). Specifics of the error can be gleaned from PHYSFS_getLastError.

Remarks

If this is a duplicate, the entry is not added again, even though the function succeeds.

See Also

Fs Class | Tao.PhysFs Namespace | PHYSFS_removeFromSearchPath | PHYSFS_getSearchPath