mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-10 15:49:00 +08:00
Improve DetectFileType for PNG format.
This commit is contained in:
@@ -70,6 +70,8 @@ namespace GameRes.Formats
|
||||
return AudioFormat.Wav;
|
||||
if (0x4D42 == (signature & 0xFFFF)) // 'BM'
|
||||
return ImageFormat.Bmp;
|
||||
if (ImageFormat.Png.Signature == signature)
|
||||
return ImageFormat.Png;
|
||||
var res = FormatCatalog.Instance.LookupSignature (signature);
|
||||
if (!res.Any())
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user