mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-06-06 13:39:09 +08:00
(GrpOpener): detect raw WAV and PNG files.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user