From 67be3bfd63dbca32d33b88ab406bacddccce95dd Mon Sep 17 00:00:00 2001 From: Francesco Bertolaccini Date: Thu, 28 Jan 2016 18:38:10 +0100 Subject: [PATCH 1/2] Fix SupportedArchiveTypes bug --- SharpPhysFS/PhysFS.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SharpPhysFS/PhysFS.cs b/SharpPhysFS/PhysFS.cs index 145b1c5..48f0f3a 100644 --- a/SharpPhysFS/PhysFS.cs +++ b/SharpPhysFS/PhysFS.cs @@ -293,15 +293,13 @@ namespace PhysFS public static IEnumerable SupportedArchiveTypes() { IntPtr archives = Interop.PHYSFS_supportedArchiveTypes(); - IntPtr i; - for (i = archives; Marshal.ReadIntPtr(i) != IntPtr.Zero; i = IntPtr.Add(i, 1)) + IntPtr i = archives; + for (i = archives; Marshal.ReadIntPtr(i) != IntPtr.Zero; i = IntPtr.Add(i, IntPtr.Size)) { IntPtr ptr = Marshal.ReadIntPtr(i); - var info = new ArchiveInfo(); - info = FromPtr(ptr); + var info = FromPtr(ptr); yield return info; } - Interop.PHYSFS_freeList(archives); } /// From 974feee6a8827c2c115a2c066a7e0bf689e7c75c Mon Sep 17 00:00:00 2001 From: Francesco Bertolaccini Date: Thu, 28 Jan 2016 18:46:28 +0100 Subject: [PATCH 2/2] Add version and copyright info --- SharpPhysFS/Properties/AssemblyInfo.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SharpPhysFS/Properties/AssemblyInfo.cs b/SharpPhysFS/Properties/AssemblyInfo.cs index ebf71f0..e34b015 100644 --- a/SharpPhysFS/Properties/AssemblyInfo.cs +++ b/SharpPhysFS/Properties/AssemblyInfo.cs @@ -6,11 +6,11 @@ using System.Runtime.InteropServices; // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("SharpPhysFS")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyDescription("Managed wrapper around PhysFS")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyCompany("Francesco Bertolaccini")] [assembly: AssemblyProduct("SharpPhysFS")] -[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyCopyright("Copyright © 2015 Francesco Bertolaccini")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("0.0.1.0")] +[assembly: AssemblyFileVersion("0.0.1.0")]