(WestGate): enabled in release.

This commit is contained in:
morkt 2018-09-27 18:30:50 +04:00
parent a3addf7420
commit 30ad9dbd6a
3 changed files with 10 additions and 6 deletions

View File

@ -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)

View File

@ -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"; } }

View File

@ -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)