(ImageMetaData): added FileName property.

This commit is contained in:
morkt 2015-08-14 20:01:45 +04:00
parent d542fe3c59
commit f355288e97
2 changed files with 7 additions and 3 deletions

View File

@ -38,6 +38,7 @@ namespace GameRes
public int OffsetX { get; set; } public int OffsetX { get; set; }
public int OffsetY { get; set; } public int OffsetY { get; set; }
public int BPP { get; set; } public int BPP { get; set; }
public string FileName { get; set; }
} }
public class ImageEntry : Entry public class ImageEntry : Entry
@ -158,7 +159,10 @@ namespace GameRes
file.Position = 0; file.Position = 0;
ImageMetaData metadata = impl.ReadMetaData (file); ImageMetaData metadata = impl.ReadMetaData (file);
if (null != metadata) if (null != metadata)
return new System.Tuple<ImageFormat, ImageMetaData> (impl, metadata); {
metadata.FileName = filename;
return Tuple.Create (impl, metadata);
}
} }
catch { } catch { }
} }

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion ("1.1.5.8")] [assembly: AssemblyVersion ("1.1.6.8")]
[assembly: AssemblyFileVersion ("1.1.5.8")] [assembly: AssemblyFileVersion ("1.1.6.8")]