From b24a91a57f3180e81b2ce9caf09c77c8e9934957 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 27 Dec 2015 18:38:00 +0400 Subject: [PATCH] (ArcOpener): use ImageFormat.FindByTag shortcut method. --- ArcFormats/ArcMAI.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArcFormats/ArcMAI.cs b/ArcFormats/ArcMAI.cs index 60c23630..fcf5a9b0 100644 --- a/ArcFormats/ArcMAI.cs +++ b/ArcFormats/ArcMAI.cs @@ -102,11 +102,11 @@ namespace GameRes.Formats.MAI var entry = new AutoEntry (Path.Combine (current_folder, name), () => { uint signature = file.View.ReadUInt32 (offset); if (is_mask_arc) - return FormatCatalog.Instance.ImageFormats.FirstOrDefault (x => x.Tag == "MSK/MAI"); + return ImageFormat.FindByTag ("MSK/MAI"); else if (0x4d43 == (signature & 0xffff)) // 'CM' - return FormatCatalog.Instance.ImageFormats.FirstOrDefault (x => x.Tag == "CMP/MAI"); + return ImageFormat.FindByTag ("CMP/MAI"); else if (0x4d41 == (signature & 0xffff)) // 'AM' - return FormatCatalog.Instance.ImageFormats.FirstOrDefault (x => x.Tag == "AM/MAI"); + return ImageFormat.FindByTag ("AM/MAI"); else if (0x4d42 == (signature & 0xffff)) // 'BM' return ImageFormat.Bmp; else if (signature != 0)