fixed code to work with new resource settings interface.

This commit is contained in:
morkt
2018-01-08 20:04:23 +04:00
parent 2e2e447c42
commit cd4e1174af
56 changed files with 179 additions and 158 deletions

View File

@@ -40,7 +40,7 @@ namespace GameRes.Formats.Abel
}
[Export(typeof(ImageFormat))]
public class GpsFormat : BmpFormat
public class GpsFormat : ImageFormat
{
public override string Tag { get { return "GPS"; } }
public override string Description { get { return "ADVEngine compressed bitmap"; } }
@@ -69,7 +69,7 @@ namespace GameRes.Formats.Abel
using (var stream = OpenGpsStream (file, gps.Compression, 0x54))
using (var input = BinaryStream.FromStream (stream, file.Name))
{
var bmp_info = base.ReadMetaData (input);
var bmp_info = Bmp.ReadMetaData (input);
if (null == bmp_info)
return null;
gps.BPP = bmp_info.BPP;
@@ -83,7 +83,7 @@ namespace GameRes.Formats.Abel
file.Position = 0x29;
using (var stream = OpenGpsStream (file, gps.Compression, gps.UnpackedSize))
using (var input = BinaryStream.FromStream (stream, file.Name))
return base.Read (input, info);
return Bmp.Read (input, info);
}
public override void Write (Stream file, ImageData image)