(QLIE): set ContainedFormats property.

This commit is contained in:
morkt 2018-10-15 23:23:59 +04:00
parent eb04122443
commit 1ffca62364

View File

@ -84,6 +84,7 @@ namespace GameRes.Formats.Qlie
public PackOpener () public PackOpener ()
{ {
Extensions = new string [] { "pack" }; Extensions = new string [] { "pack" };
ContainedFormats = new[] { "ABMP/QLIE", "DPNG", "PNG", "JPEG", "OGG", "WAV" };
} }
/// <summary> /// <summary>
@ -147,7 +148,7 @@ namespace GameRes.Formats.Qlie
if (name_length != index.Read (name_buffer, 0, name_length)) if (name_length != index.Read (name_buffer, 0, name_length))
return null; return null;
var name = enc.DecryptName (name_buffer, name_length); var name = enc.DecryptName (name_buffer, name_length);
var entry = FormatCatalog.Instance.Create<QlieEntry> (name); var entry = Create<QlieEntry> (name);
if (use_pack_keyfile) if (use_pack_keyfile)
entry.RawName = name_buffer.Take (name_length).ToArray(); entry.RawName = name_buffer.Take (name_length).ToArray();