(GrpOpener): detect raw WAV and PNG files.

This commit is contained in:
morkt 2017-12-13 13:28:57 +04:00
parent 1f6dad40ff
commit d74d569d20

View File

@ -130,6 +130,14 @@ namespace GameRes.Formats.Ankh
{ {
entry.ChangeType (ImageFormat.Bmp); entry.ChangeType (ImageFormat.Bmp);
} }
else if (file.View.AsciiEqual (entry.Offset, "RIFF"))
{
entry.ChangeType (AudioFormat.Wav);
}
else if (file.View.AsciiEqual (entry.Offset, "\x89PNG"))
{
entry.ChangeType (ImageFormat.Png);
}
else if (entry.Size > 0x16 && IsAudioEntry (file, entry)) else if (entry.Size > 0x16 && IsAudioEntry (file, entry))
{ {
entry.Type = "audio"; entry.Type = "audio";