(Lazycrew): detect music files.

This commit is contained in:
morkt 2018-09-21 12:15:49 +04:00
parent 10747a4b4d
commit 68dd27a915

View File

@ -145,8 +145,12 @@ namespace GameRes.Formats.Lazycrew
public override Stream OpenEntry (ArcFile arc, Entry entry)
{
if (entry.Type == "audio" && arc.File.View.ReadUInt32 (entry.Offset) == 0)
return OpenAudio (arc, entry);
if (entry.Type == "audio")
{
uint signature = arc.File.View.ReadUInt32 (entry.Offset);
if (signature == 0x10000 || signature == 0)
return OpenAudio (arc, entry);
}
return base.OpenEntry (arc, entry);
}