mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(Ail): detect audio and video files.
This commit is contained in:
parent
787cc68192
commit
e09d5ae5df
@ -116,7 +116,7 @@ namespace GameRes.Formats.Ail
|
||||
entry.IsPacked = true;
|
||||
entry.UnpackedSize = file.View.ReadUInt32 (entry.Offset+2);
|
||||
}
|
||||
else if (0 == signature)
|
||||
else if (0 == signature || file.View.AsciiEqual (entry.Offset+4, "OggS"))
|
||||
{
|
||||
extra = 4;
|
||||
}
|
||||
@ -142,9 +142,17 @@ namespace GameRes.Formats.Ail
|
||||
|
||||
static void SetEntryType (Entry entry, uint signature)
|
||||
{
|
||||
var res = AutoEntry.DetectFileType (signature);
|
||||
if (null != res)
|
||||
entry.ChangeType (res);
|
||||
if (0xBA010000 == signature)
|
||||
{
|
||||
entry.Type = "video";
|
||||
entry.Name = Path.ChangeExtension (entry.Name, "mpg");
|
||||
}
|
||||
else
|
||||
{
|
||||
var res = AutoEntry.DetectFileType (signature);
|
||||
if (null != res)
|
||||
entry.ChangeType (res);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user