Move parsing to new class

This commit is contained in:
Matt Nadareski
2020-12-10 10:58:00 -08:00
parent 34b9005e58
commit 2ee6d13a77
16 changed files with 206 additions and 165 deletions

View File

@@ -50,11 +50,14 @@ namespace RombaSharp.Features
return;
}
// Get the DatTool for parsing
DatTool dt = new DatTool();
// Create the encapsulating datfile
DatFile datfile = DatFile.CreateAndParse(olddat);
DatFile datfile = dt.CreateAndParse(olddat);
// Diff against the new datfile
DatFile intDat = DatFile.CreateAndParse(newdat);
DatFile intDat = dt.CreateAndParse(newdat);
datfile.DiffAgainst(intDat, false);
intDat.Write(outdat);
}