mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(GrpOpener): detect raw WAV and PNG files.
This commit is contained in:
parent
1f6dad40ff
commit
d74d569d20
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user