mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ALL] Convert Dat from a struct to an object
This effectively doesn't do much for the time being since there's only one "Dat type" that's being used. Realistically, this is probably the best bet since a given DAT should not be restricted to an output type as much as an ItemType is bound to its data. This also removes the experimental classes that won't be in use for forever. More work still might need to be done but it is unknown at this point.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace SabreTools
|
||||
private static void InitDir2Dat(List<string> inputs)
|
||||
{
|
||||
// Create a simple Dat output
|
||||
Dat datdata = new Dat()
|
||||
DatFile datdata = new DatFile()
|
||||
{
|
||||
FileName = Path.GetFileName(inputs[0]) + " Dir2Dat",
|
||||
Name = Path.GetFileName(inputs[0]) + " Dir2Dat",
|
||||
@@ -73,7 +73,7 @@ namespace SabreTools
|
||||
DATFromDir dfd = new DATFromDir(input, datdata, false /* noMD5 */, false /* noSHA1 */, true /* bare */, false /* archivesAsFiles */,
|
||||
true /* enableGzip */, false /* addBlanks */, false /* addDate */, "__temp__" /* tempDir */, 4 /* maxDegreeOfParallelism */, _logger);
|
||||
dfd.Start();
|
||||
DatTools.WriteDatfile(dfd.DatData, "", logger);
|
||||
DatFile.WriteDatfile(dfd.DatData, "", logger);
|
||||
}
|
||||
logger.Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user