Added initialization method

pull/2/head
Francesco Bertolaccini 2016-01-28 08:25:23 +01:00
parent bef4db48d4
commit 5f1ee154a5
1 changed files with 16 additions and 0 deletions

View File

@ -124,6 +124,22 @@ namespace PhysFS
}
}
/// <summary>
/// Sets up the library callbacks for use.
/// </summary>
/// <para>
/// This method will dynamically load the right library according to the
/// current platform, whether it is Windows of *nix
/// </para>
/// <para>
/// This method must be called before any other method in this class is available.
/// Not doing so will result in NullReferenceException
/// </para>
public static void InitializeCallbacks()
{
Interop.SetUpInterop();
}
/// <summary>
/// Get the version of PhysicsFS that is linked against your program
/// </summary>