Merge pull request #1 from DaZombieKiller/libname

Allow user to specify library name for Interop
pull/2/head
Francesco Bertolaccini 2017-05-20 16:21:41 +02:00 committed by GitHub
commit 430b888112
1 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,12 @@ namespace SharpPhysFS
Init(argv0);
}
public PhysFS(string argv0, string libname)
{
interop = new Interop(libname);
Init(argv0);
}
static T FromPtr<T>(IntPtr ptr)
{
return (T)Marshal.PtrToStructure(ptr, typeof(T));