(Seraph): order known schemes by offset.

This commit is contained in:
morkt 2019-03-04 04:03:22 +04:00
parent 2f1ff5e838
commit 91f31c05f0

View File

@ -89,7 +89,7 @@ namespace GameRes.Formats.Seraphim
if (file.MaxOffset > uint.MaxValue
|| !VFS.IsPathEqualsToFileName (file.Name, "ArchPac.dat"))
return null;
foreach (var scheme in KnownSchemes.Values.Where (s => s.IndexOffset < file.MaxOffset))
foreach (var scheme in KnownSchemes.Values.Where (s => s.IndexOffset < file.MaxOffset).OrderBy (s => s.IndexOffset))
{
var dir = ReadIndex (file, scheme.IndexOffset, file.MaxOffset);
if (dir != null)