changes
parent
88a1c032aa
commit
ae0744e1f6
|
@ -179,7 +179,7 @@ namespace SharpPhysFS
|
||||||
{
|
{
|
||||||
var strPtr = (IntPtr)Marshal.PtrToStructure(ptr, typeof(IntPtr));
|
var strPtr = (IntPtr)Marshal.PtrToStructure(ptr, typeof(IntPtr));
|
||||||
var str = Marshal.PtrToStringAnsi(strPtr);
|
var str = Marshal.PtrToStringAnsi(strPtr);
|
||||||
if (System.IO.File.Exists(str)) { yield return str; } // the lib seems to be returning directories. boo!
|
if (!IsDirectory(str)) { yield return str; } // the lib seems to be returning directories. boo!
|
||||||
}
|
}
|
||||||
Interop.PHYSFS_freeList(files);
|
Interop.PHYSFS_freeList(files);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,5 @@
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Import Project=".\build\copylibs.targets" />
|
<Import Project=".\targets\copylibs.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<dllmap dll="physfs" os="windows" target="physfs.dll" />
|
||||||
|
<dllmap dll="physfs" os="osx" target="libphysfs.dylib"/>
|
||||||
|
<dllmap dll="physfs" os="linux,freebsd,netbsd" target="libphysfs.so"/>
|
||||||
|
<dllmap dll="physfs" os="openbsd" target="libphysfs.so"/>
|
||||||
|
</configuration>
|
Loading…
Reference in New Issue