Tao.PhysFs SDK Documentation

Fs.PHYSFS_getUserDir Method 

Get the path where user's home directory resides.

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

Return Value

string of user dir in platform-dependent notation.

Remarks

Helper function.

Get the "user dir". This is meant to be a suggestion of where a specific user of the system can store files. On Unix, this is her home directory. On systems with no concept of multiple home directories (MacOS, win95), this will default to something like "C:\mybasedir\users\username" where "username" will either be the login name, or "default" if the platform doesn't support multiple users, either.

You should probably use the user dir as the basis for your write dir, and also put it near the beginning of your search path.

See Also

Fs Class | Tao.PhysFs Namespace | PHYSFS_getBaseDir