mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
(Seraph): order known schemes by offset.
This commit is contained in:
parent
2f1ff5e838
commit
91f31c05f0
@ -89,7 +89,7 @@ namespace GameRes.Formats.Seraphim
|
|||||||
if (file.MaxOffset > uint.MaxValue
|
if (file.MaxOffset > uint.MaxValue
|
||||||
|| !VFS.IsPathEqualsToFileName (file.Name, "ArchPac.dat"))
|
|| !VFS.IsPathEqualsToFileName (file.Name, "ArchPac.dat"))
|
||||||
return null;
|
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);
|
var dir = ReadIndex (file, scheme.IndexOffset, file.MaxOffset);
|
||||||
if (dir != null)
|
if (dir != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user