mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Convert DAT type to a key
This commit is contained in:
@@ -102,7 +102,9 @@ namespace SabreTools.DatTools
|
||||
|
||||
// If the output type isn't set already, get the internal output type
|
||||
DatFormat currentPathFormat = GetDatFormat(currentPath);
|
||||
datFile.Header.DatFormat = datFile.Header.DatFormat == 0 ? currentPathFormat : datFile.Header.DatFormat;
|
||||
datFile.Header.SetFieldValue<DatFormat>(DatHeader.DatFormatKey, datFile.Header.GetFieldValue<DatFormat>(DatHeader.DatFormatKey) == 0
|
||||
? currentPathFormat
|
||||
: datFile.Header.GetFieldValue<DatFormat>(DatHeader.DatFormatKey));
|
||||
datFile.Items.SetBucketedBy(ItemKey.CRC); // Setting this because it can reduce issues later
|
||||
|
||||
InternalStopwatch watch = new($"Parsing '{currentPath}' into internal DAT");
|
||||
|
||||
Reference in New Issue
Block a user