mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, Style] Fix statistics output
This commit is contained in:
@@ -5687,7 +5687,11 @@ namespace SabreTools.Library.DatFiles
|
||||
Dictionary<StatDatFormat, StreamWriter> writers = new Dictionary<StatDatFormat, StreamWriter>();
|
||||
foreach (KeyValuePair<StatDatFormat, string> kvp in outputs)
|
||||
{
|
||||
writers.Add(kvp.Key, new StreamWriter(FileTools.TryOpenWrite(kvp.Value)));
|
||||
FileStream fs = FileTools.TryCreate(kvp.Value);
|
||||
if (fs != null)
|
||||
{
|
||||
writers.Add(kvp.Key, new StreamWriter(fs));
|
||||
}
|
||||
}
|
||||
|
||||
// Write the header, if any
|
||||
|
||||
Reference in New Issue
Block a user