diff --git a/ArcFormats/AudioVAW.cs b/ArcFormats/AudioVAW.cs index 3be0032b..4f8963da 100644 --- a/ArcFormats/AudioVAW.cs +++ b/ArcFormats/AudioVAW.cs @@ -44,7 +44,6 @@ namespace GameRes.Formats.BlackCyc Extensions = new string[] { "vaw", "wgq" }; } - static readonly Lazy WavFormat = new Lazy (() => FormatCatalog.Instance.AudioFormats.FirstOrDefault (x => x.Tag == "WAV")); static readonly Lazy OggFormat = new Lazy (() => FormatCatalog.Instance.AudioFormats.FirstOrDefault (x => x.Tag == "OGG")); public override SoundInput TryOpen (Stream file) @@ -60,7 +59,7 @@ namespace GameRes.Formats.BlackCyc return null; if (!Binary.AsciiEqual (header.Bytes, "RIFF")) return null; - format = WavFormat.Value; + format = Wav; offset = 0x40; } else if (2 == header.PackType) diff --git a/ArcFormats/ImageDWQ.cs b/ArcFormats/ImageDWQ.cs index a076a3ee..3aa01d3a 100644 --- a/ArcFormats/ImageDWQ.cs +++ b/ArcFormats/ImageDWQ.cs @@ -87,14 +87,6 @@ namespace GameRes.Formats.BlackCyc }; } - static ImageFormat GetFormat (string tag) - { - return FormatCatalog.Instance.ImageFormats.FirstOrDefault (x => x.Tag == tag); - } - - static readonly Lazy JpegFormat = new Lazy (() => GetFormat ("JPEG")); - static readonly Lazy PngFormat = new Lazy (() => GetFormat ("PNG")); - public override ImageMetaData ReadMetaData (Stream stream) { var header = ResourceHeader.Read (stream); @@ -142,10 +134,10 @@ namespace GameRes.Formats.BlackCyc switch (meta.PackType) { case 5: // JPEG - return JpegFormat.Value.Read (input, info); + return Jpeg.Read (input, info); case 8: // PNG - return PngFormat.Value.Read (input, info); + return Png.Read (input, info); case 0: // BMP case 2: // BMP+MASK