mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
(ArcFile.TryOpen): compare against all extensions.
This commit is contained in:
parent
2a3c4fb005
commit
7fdaf03521
@ -79,7 +79,7 @@ namespace GameRes
|
|||||||
var range = FormatCatalog.Instance.LookupSignature<ArchiveFormat> (signature);
|
var range = FormatCatalog.Instance.LookupSignature<ArchiveFormat> (signature);
|
||||||
// check formats that match filename extension first
|
// check formats that match filename extension first
|
||||||
if (range.Skip(1).Any()) // if range.Count() > 1
|
if (range.Skip(1).Any()) // if range.Count() > 1
|
||||||
range = range.OrderByDescending (f => f.Extensions.Any() && f.Extensions.First() == ext.Value);
|
range = range.OrderByDescending (f => f.Extensions.Any (e => e == ext.Value));
|
||||||
foreach (var impl in range)
|
foreach (var impl in range)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user