From f6bb4716a620983a9f4b6eea70f2e72ded64b782 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 2 Aug 2014 11:24:00 +0400 Subject: [PATCH] (WriteImageEntry): tweaked linq query syntax. --- ArcFormats/ArcAMI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/ArcAMI.cs b/ArcFormats/ArcAMI.cs index 5c88d328..502ab653 100644 --- a/ArcFormats/ArcAMI.cs +++ b/ArcFormats/ArcAMI.cs @@ -294,7 +294,7 @@ namespace GameRes.Formats uint WriteImageEntry (PackedEntry entry, Stream input, Stream output) { - var grp = FormatCatalog.Instance.LookupExtension ("GRP").FirstOrDefault(); + var grp = FormatCatalog.Instance.ImageFormats.OfType().FirstOrDefault(); if (null == grp) // probably never happens throw new FileFormatException ("GRP image encoder not available"); bool is_grp = grp.Signature == FormatCatalog.ReadSignature (input);