(MCG): added trace logging.

This commit is contained in:
morkt 2018-05-29 16:32:26 +04:00
parent 317ef8de44
commit c8f696beea

View File

@ -26,11 +26,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.Composition; using System.ComponentModel.Composition;
using System.Diagnostics;
using System.IO; using System.IO;
using System.Windows.Media; using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using GameRes.Formats.Strings; using GameRes.Formats.Strings;
using GameRes.Utility;
namespace GameRes.Formats.FC01 namespace GameRes.Formats.FC01
{ {
@ -240,6 +240,7 @@ namespace GameRes.Formats.FC01
lzss.Unpack(); lzss.Unpack();
if (input.Length - input.Position <= 1) if (input.Length - input.Position <= 1)
{ {
Trace.WriteLine (string.Format ("Found matching key {0:X2}", key), "[MCG]");
m_output = lzss.Data; m_output = lzss.Data;
m_key = (byte)key; m_key = (byte)key;
return; return;