Browse Source

Delete obsolete methods

master
BahaBulle 8 years ago
parent
commit
9c639e38b2
1 changed files with 1 additions and 43 deletions
  1. +1
    -43
      Hack.Xenosaga/Common/Functions.cs

+ 1
- 43
Hack.Xenosaga/Common/Functions.cs View File

@ -16,7 +16,7 @@ namespace Hack.Xenosaga.Common
Trace.WriteLine(" -p = Pack files from index");
Trace.WriteLine(" -e = Extract text from file");
Trace.WriteLine(" -i = Insert text from file");
Trace.WriteLine(" file : Index file (the first one of each decade : xenosaga.00, xenosaga.10, xenosaga.20...)");
Trace.WriteLine(" file : File to process (-l, -p, -u=Index file (the first one of each decade : xenosaga.00, xenosaga.10, xenosaga.20...) ; -e, -i : filename)");
Trace.WriteLine(" encode : (-e) Encoding of the output/input file (ANSI( default), ASCII, UTF8, UNICODE)");
Trace.WriteLine(" regroup : (-p) true to pack all files in only one (ex: 11, 12, 13 in 11) ; false or empty (default) to keep the same system of increment files");
}
@ -89,47 +89,5 @@ namespace Hack.Xenosaga.Common
return true;
}
public static void ManageListener(bool consoleTrace, bool fileTrace = false, StreamWriter sw = null)
{
string traceFileName = "TraceFile";
string traceConsoleName = "TraceConsole";
for (int i = 0; i < Trace.Listeners.Count; i++)
{
TraceListener trace = Trace.Listeners[i];
if (trace.Name == "Default" || (trace.Name == traceConsoleName && !consoleTrace) || (trace.Name == traceFileName && !fileTrace))
{
Trace.Listeners.Remove(trace);
trace.Dispose();
}
}
if (consoleTrace)
{
ConsoleTraceListener traceConsole = new ConsoleTraceListener();
traceConsole.Name = traceConsoleName;
Trace.Listeners.Add(traceConsole);
}
if (fileTrace)
{
TextWriterTraceListener traceFile = new TextWriterTraceListener(sw);
traceFile.Name = traceFileName;
Trace.Listeners.Add(traceFile);
}
}
public static void Padding(MemoryStream ms)
{
long size = ms.Length;
while (size % 4 != 0)
{
ms.WriteByte(0);
size++;
}
}
}
}

Loading…
Cancel
Save