Exemplo n.º 1
0
 /// <summary>
 /// Wrap getting statistics on a DAT or folder of DATs
 /// </summary>
 /// <param name="inputs">List of inputs to be used</param>
 /// <param name="filename">Name of the file to output to, blank for default</param>
 /// <param name="outDir">Output directory for the report files</param>
 /// <param name="single">True to show individual DAT statistics, false otherwise</param>
 /// <param name="baddumpCol">True if baddumps should be included in output, false otherwise</param>
 /// <param name="nodumpCol">True if nodumps should be included in output, false otherwise</param>
 /// <param name="statDatFormat">Set the statistics output format to use</param>
 private static void InitStats(
     List <string> inputs,
     string filename,
     string outDir,
     bool single,
     bool baddumpCol,
     bool nodumpCol,
     StatReportFormat statDatFormat)
 {
     DatFile.OutputStats(inputs, filename, outDir, single, baddumpCol, nodumpCol, statDatFormat);
 }
        /// <summary>
        /// Wrap printing dat stats
        /// </summary>
        /// <param name="inputs">List of input DATs to get stats from</param>
        private static void InitDatStats(List <string> inputs)
        {
            // If we have no inputs listed, we want to use datroot
            if (inputs == null || inputs.Count == 0)
            {
                inputs = new List <string>();
                inputs.Add(Path.GetFullPath(_dats));
            }

            // Now output the stats for all inputs
            DatFile.OutputStats(inputs, "rombasharp-datstats", null /* outDir */, true /* single */, true /* baddumpCol */, true /* nodumpCol */, StatReportFormat.Textfile);
        }