From d74d569d20f5174df6bc47376da4aa99f122ca65 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 13 Dec 2017 13:28:57 +0400 Subject: [PATCH] (GrpOpener): detect raw WAV and PNG files. --- ArcFormats/Ankh/ArcGRP.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ArcFormats/Ankh/ArcGRP.cs b/ArcFormats/Ankh/ArcGRP.cs index 26937d46..561664c5 100644 --- a/ArcFormats/Ankh/ArcGRP.cs +++ b/ArcFormats/Ankh/ArcGRP.cs @@ -130,6 +130,14 @@ namespace GameRes.Formats.Ankh { 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)) { entry.Type = "audio";