mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +08:00
(Lazycrew): detect music files.
This commit is contained in:
parent
10747a4b4d
commit
68dd27a915
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user