Exemplo n.º 1
0
 public override void Dump(Dump_Settings settings)
 {
     if (settings.Deep)
     {
         Dump(settings.OutputDirectory, File.Archive.Reader);
     }
     else
     {
         base.Dump(settings);
     }
 }
Exemplo n.º 2
0
        private void ShallowDump(Dump_Settings settings)
        {
            if (File == null)
            {
                return;
            }
            var buffer = LoadBuffer();

            if (buffer == null)
            {
                return;
            }
            var outputDir = settings.OutputDirectory;

            outputDir = Path.Combine(outputDir ?? string.Empty, File.Directory.FullName);
            if (!string.IsNullOrEmpty(outputDir) && !Directory.Exists(outputDir))
            {
                Directory.CreateDirectory(outputDir);
            }
            System.IO.File.WriteAllBytes(Path.Combine(outputDir, File.Name), buffer);
        }
Exemplo n.º 3
0
 public void Dump(Dump_Settings settings)
 {
     Root.Dump(settings);
 }
Exemplo n.º 4
0
 public virtual void Dump(Dump_Settings settings)
 {
     ShallowDump(settings);
 }