Added initialization method
parent
bef4db48d4
commit
5f1ee154a5
|
@ -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>
|
/// <summary>
|
||||||
/// Get the version of PhysicsFS that is linked against your program
|
/// Get the version of PhysicsFS that is linked against your program
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue