Example #1
0
        public override void ProcessFeatures(Dictionary <string, Feature> features)
        {
            base.ProcessFeatures(features);

            string filename = Header.FileName;

            if (Path.GetFileName(filename) != filename)
            {
                if (string.IsNullOrWhiteSpace(OutputDir))
                {
                    OutputDir = Path.GetDirectoryName(filename);
                }
                else
                {
                    OutputDir = Path.Combine(OutputDir, Path.GetDirectoryName(filename));
                }

                filename = Path.GetFileName(filename);
            }

            ItemDictionary.OutputStats(
                Inputs,
                filename,
                OutputDir,
                GetBoolean(features, IndividualValue),
                GetBoolean(features, BaddumpColumnValue),
                GetBoolean(features, NodumpColumnValue),
                GetStatReportFormat(features));
        }
Example #2
0
        public override void ProcessFeatures(Dictionary <string, Feature> features)
        {
            base.ProcessFeatures(features);

            // If we have no inputs listed, we want to use datroot
            if (Inputs == null || Inputs.Count == 0)
            {
                Inputs = new List <string> {
                    Path.GetFullPath(_dats)
                }
            }
            ;

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