mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Move parsing to new class
This commit is contained in:
@@ -454,6 +454,7 @@ namespace SabreTools.DatFiles
|
||||
/// <returns>List of DatHeader objects representing headers</returns>
|
||||
public List<DatHeader> PopulateUserData(List<ParentablePath> inputs)
|
||||
{
|
||||
DatTool dt = new DatTool();
|
||||
DatFile[] datFiles = new DatFile[inputs.Count];
|
||||
InternalStopwatch watch = new InternalStopwatch("Processing individual DATs");
|
||||
|
||||
@@ -463,7 +464,7 @@ namespace SabreTools.DatFiles
|
||||
var input = inputs[i];
|
||||
logger.User($"Adding DAT: {input.CurrentPath}");
|
||||
datFiles[i] = Create(Header.CloneFiltering());
|
||||
datFiles[i].Parse(input, i, keep: true);
|
||||
dt.ParseInto(datFiles[i], input, i, keep: true);
|
||||
});
|
||||
|
||||
watch.Stop();
|
||||
|
||||
Reference in New Issue
Block a user