From 7fdaf03521f3cf9f9fec7a9afadc90fcb21b4e6b Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 15 Jul 2015 06:42:14 +0400 Subject: [PATCH] (ArcFile.TryOpen): compare against all extensions. --- GameRes/ArcFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameRes/ArcFile.cs b/GameRes/ArcFile.cs index b05d0032..094ba48a 100644 --- a/GameRes/ArcFile.cs +++ b/GameRes/ArcFile.cs @@ -79,7 +79,7 @@ namespace GameRes var range = FormatCatalog.Instance.LookupSignature (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