From 30ad9dbd6a0fea65ca09799d647507968ac3b6cf Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 27 Sep 2018 18:30:50 +0400 Subject: [PATCH] (WestGate): enabled in release. --- Legacy/WestGate/ArcUCA.cs | 7 +++++-- Legacy/WestGate/ArcUSF.cs | 2 -- Legacy/WestGate/ArcUWF.cs | 7 +++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Legacy/WestGate/ArcUCA.cs b/Legacy/WestGate/ArcUCA.cs index c0a05006..b2993972 100644 --- a/Legacy/WestGate/ArcUCA.cs +++ b/Legacy/WestGate/ArcUCA.cs @@ -29,9 +29,7 @@ using System.IO; namespace GameRes.Formats.WestGate { -#if DEBUG [Export(typeof(ArchiveFormat))] -#endif public class UcaOpener : ArchiveFormat { public override string Tag { get { return "UCA"; } } @@ -40,6 +38,11 @@ namespace GameRes.Formats.WestGate public override bool IsHierarchic { get { return false; } } public override bool CanWrite { get { return false; } } + public UcaOpener () + { + Extensions = new[] { "uca", "arc" }; + } + public override ArcFile TryOpen (ArcView file) { if (file.View.ReadUInt32 (0) != 0) diff --git a/Legacy/WestGate/ArcUSF.cs b/Legacy/WestGate/ArcUSF.cs index 1f76ac57..73578987 100644 --- a/Legacy/WestGate/ArcUSF.cs +++ b/Legacy/WestGate/ArcUSF.cs @@ -28,9 +28,7 @@ using System.ComponentModel.Composition; namespace GameRes.Formats.WestGate { -#if DEBUG [Export(typeof(ArchiveFormat))] -#endif public class UsfOpener : ArchiveFormat { public override string Tag { get { return "USF"; } } diff --git a/Legacy/WestGate/ArcUWF.cs b/Legacy/WestGate/ArcUWF.cs index 41a5a2f9..facaa866 100644 --- a/Legacy/WestGate/ArcUWF.cs +++ b/Legacy/WestGate/ArcUWF.cs @@ -29,9 +29,7 @@ using System.IO; namespace GameRes.Formats.WestGate { -#if DEBUG [Export(typeof(ArchiveFormat))] -#endif public class UwfOpener : ArchiveFormat { public override string Tag { get { return "UWF"; } } @@ -40,6 +38,11 @@ namespace GameRes.Formats.WestGate public override bool IsHierarchic { get { return false; } } public override bool CanWrite { get { return false; } } + public UwfOpener () + { + Extensions = new[] { "uwf", "arc" }; + } + public override ArcFile TryOpen (ArcView file) { if (file.MaxOffset <= 0x1500)