From ae0744e1f6b97c29dbe1e4b2975d9d09f35595b3 Mon Sep 17 00:00:00 2001 From: Evan Hemsley <2342303+ehemsley@users.noreply.github.com> Date: Fri, 17 Jan 2020 01:45:41 -0800 Subject: [PATCH] changes --- SharpPhysFS/PhysFS.cs | 2 +- SharpPhysFS/SharpPhysFS.csproj | 2 +- SharpPhysFS/app.config | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 SharpPhysFS/app.config diff --git a/SharpPhysFS/PhysFS.cs b/SharpPhysFS/PhysFS.cs index 4c88221..0cd8cb1 100644 --- a/SharpPhysFS/PhysFS.cs +++ b/SharpPhysFS/PhysFS.cs @@ -179,7 +179,7 @@ namespace SharpPhysFS { var strPtr = (IntPtr)Marshal.PtrToStructure(ptr, typeof(IntPtr)); 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); } diff --git a/SharpPhysFS/SharpPhysFS.csproj b/SharpPhysFS/SharpPhysFS.csproj index 83efe1a..e3cc209 100644 --- a/SharpPhysFS/SharpPhysFS.csproj +++ b/SharpPhysFS/SharpPhysFS.csproj @@ -11,5 +11,5 @@ true - + diff --git a/SharpPhysFS/app.config b/SharpPhysFS/app.config new file mode 100644 index 0000000..ae2fcaa --- /dev/null +++ b/SharpPhysFS/app.config @@ -0,0 +1,7 @@ + + + + + + +