Tweak stats output and input handling

This commit is contained in:
Matt Nadareski
2020-07-23 11:40:45 -07:00
parent c47793fb57
commit e8e84f9762
3 changed files with 20 additions and 6 deletions

View File

@@ -29,7 +29,10 @@ namespace SabreTools.Library.Reports
/// <param name="nodumpCol">True if nodumps should be included in output, false otherwise</param>
public BaseReport(string filename, bool baddumpCol = false, bool nodumpCol = false)
{
_writer = new StreamWriter(FileExtensions.TryCreate(filename));
var fs = FileExtensions.TryCreate(filename);
if (fs != null)
_writer = new StreamWriter(fs);
_baddumpCol = baddumpCol;
_nodumpCol = nodumpCol;
}