Create overloads for CreateDatFile

This commit is contained in:
Matt Nadareski
2025-01-09 04:04:07 -05:00
parent 8dfbde6136
commit 632628e0f9
3 changed files with 20 additions and 4 deletions

View File

@@ -112,8 +112,8 @@ namespace SabreTools.DatFiles
// Now parse the correct type of DAT
try
{
var parsingDatFile = DatFileTool.CreateDatFile(currentPathFormat, datFile, quotes);
parsingDatFile?.ParseFile(currentPath, indexId, keep, statsOnly: statsOnly, throwOnError: throwOnError);
DatFile parsingDatFile = DatFileTool.CreateDatFile(currentPathFormat, datFile, quotes);
parsingDatFile.ParseFile(currentPath, indexId, keep, statsOnly: statsOnly, throwOnError: throwOnError);
}
catch (Exception ex) when (!throwOnError)
{