mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +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);
|
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user