mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +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);
|
||||
// check formats that match filename extension first
|
||||
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)
|
||||
{
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user