mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Rename Create to CreateReport for consistency
This commit is contained in:
@@ -532,7 +532,7 @@ namespace SabreTools.DatTools
|
||||
/// <param name="statReportFormat">Format of the Statistics Report to be created</param>
|
||||
/// <param name="statsList">List of statistics objects to set</param>
|
||||
/// <returns>BaseReport of the specific internal type that corresponds to the inputs</returns>
|
||||
public static BaseReport? Create(StatReportFormat statReportFormat, List<DatStatistics> statsList)
|
||||
public static BaseReport? CreateReport(StatReportFormat statReportFormat, List<DatStatistics> statsList)
|
||||
{
|
||||
return statReportFormat switch
|
||||
{
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace SabreTools.DatTools
|
||||
string outfile = outfiles[reportFormat];
|
||||
try
|
||||
{
|
||||
Parser.Create(reportFormat, stats)?.WriteToFile(outfile, baddumpCol, nodumpCol, throwOnError);
|
||||
Parser.CreateReport(reportFormat, stats)?.WriteToFile(outfile, baddumpCol, nodumpCol, throwOnError);
|
||||
}
|
||||
catch (Exception ex) when (!throwOnError)
|
||||
{
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace SabreTools.DatTools
|
||||
[
|
||||
datFile.DatStatistics,
|
||||
];
|
||||
var consoleOutput = Parser.Create(StatReportFormat.None, statsList);
|
||||
var consoleOutput = Parser.CreateReport(StatReportFormat.None, statsList);
|
||||
consoleOutput!.WriteToFile(null, true, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user