public static FoxFile ReadFoxFile(Stream input, FoxLookupTable lookupTable) { FoxFile foxFile = new FoxFile(); foxFile.Read(input); foxFile.CheckForEncryptedNames(); foxFile.ResolveStringLiterals(lookupTable); foxFile.GenerateClasses(); return foxFile; }
public static FoxFile ReadFoxFile(Stream input, FoxLookupTable lookupTable) { FoxFile foxFile = new FoxFile(); foxFile.Read(input); foxFile.CheckForEncryptedNames(); foxFile.ResolveStringLiterals(lookupTable); foxFile.GenerateClasses(); return(foxFile); }
public static void DecompileFox(FoxFile foxFile, Stream output) { var settings = new XmlWriterSettings { Encoding = Encoding.UTF8, Indent = true }; XmlWriter writer = XmlWriter.Create(output, settings); XmlSerializer serializer = new XmlSerializer(typeof (FoxFile)); serializer.Serialize(writer, foxFile); writer.Close(); }