From c8fda8d99d41f3f6a0085f78aa53a370432cb1a3 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 12 Jan 2025 21:30:21 -0500 Subject: [PATCH] Slight rename for readability --- SabreTools.DatFiles/Parser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SabreTools.DatFiles/Parser.cs b/SabreTools.DatFiles/Parser.cs index 7fa8308c..0d8c61ee 100644 --- a/SabreTools.DatFiles/Parser.cs +++ b/SabreTools.DatFiles/Parser.cs @@ -97,9 +97,9 @@ namespace SabreTools.DatFiles : datFile.Header.GetStringFieldValue(DatHeader.FileNameKey)); // If the output type isn't set already, get the internal output type - DatFormat currentPathFormat = GetDatFormat(currentPath); + DatFormat datFormat = GetDatFormat(currentPath); datFile.Header.SetFieldValue(DatHeader.DatFormatKey, datFile.Header.GetFieldValue(DatHeader.DatFormatKey) == 0 - ? currentPathFormat + ? datFormat : datFile.Header.GetFieldValue(DatHeader.DatFormatKey)); datFile.Items.SetBucketedBy(ItemKey.CRC); // Setting this because it can reduce issues later @@ -108,7 +108,7 @@ namespace SabreTools.DatFiles // Now parse the correct type of DAT try { - DatFile parsingDatFile = DatFileTool.CreateDatFile(currentPathFormat, datFile); + DatFile parsingDatFile = DatFileTool.CreateDatFile(datFormat, datFile); parsingDatFile.ParseFile(currentPath, indexId, keep, statsOnly: statsOnly, throwOnError: throwOnError); } catch (Exception ex) when (!throwOnError)