From 8dd43f4bc425bc70be3ed471258bb0aeb346e481 Mon Sep 17 00:00:00 2001 From: Benjamin Moir Date: Sat, 20 May 2017 22:21:17 +1000 Subject: [PATCH] Allow user to specify library name for Interop --- SharpPhysFS/PhysFS.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SharpPhysFS/PhysFS.cs b/SharpPhysFS/PhysFS.cs index a9c5e72..5331f5f 100644 --- a/SharpPhysFS/PhysFS.cs +++ b/SharpPhysFS/PhysFS.cs @@ -32,6 +32,12 @@ namespace SharpPhysFS Init(argv0); } + public PhysFS(string argv0, string libname) + { + interop = new Interop(libname); + Init(argv0); + } + static T FromPtr(IntPtr ptr) { return (T)Marshal.PtrToStructure(ptr, typeof(T));