Tao.PhysFs SDK Documentation |
|
Fs.PHYSFS_init Method
Initialize the PhysicsFS library.
[Visual Basic]
Public Shared Function PHYSFS_init( _
ByVal
argv0 As
String _
) As
Integer
[C#]
public static
int PHYSFS_init(
string argv0);
Parameters
-
argv0
- the argv[0] string passed to your program's mainline. This may be NULL on most platforms (such as ones without a standard main() function), but you should always try to pass something in here. Unix-like systems such as Linux _need_ to pass argv[0] from main() in here.
Return Value
nonzero on success, zero on error. Specifics of the error can be gleaned from PHYSFS_getLastError.
Remarks
This must be called before any other PhysicsFS function.
This should be called prior to any attempts to change your process's current working directory.
See Also
Fs Class | Tao.PhysFs Namespace | PHYSFS_deinit