diff --git a/RombaSharp/Features/Archive.cs b/RombaSharp/Features/Archive.cs index 79f49093..faf281dc 100644 --- a/RombaSharp/Features/Archive.cs +++ b/RombaSharp/Features/Archive.cs @@ -189,7 +189,7 @@ have a current entry in the DAT index."; } // Create the sorting object to use and rebuild the needed files - DatTool.RebuildGeneric( + Rebuilder.RebuildGeneric( need, onlyDirs, outDir: _depots.Keys.ToList()[0], diff --git a/RombaSharp/Features/Build.cs b/RombaSharp/Features/Build.cs index 614f764a..6d397dfa 100644 --- a/RombaSharp/Features/Build.cs +++ b/RombaSharp/Features/Build.cs @@ -64,7 +64,7 @@ structure according to the original DAT master directory tree structure."; List onlineDepots = _depots.Where(d => d.Value.Item2).Select(d => d.Key).ToList(); // Now scan all of those depots and rebuild - DatTool.RebuildDepot( + Rebuilder.RebuildDepot( datFile, onlineDepots, outDir: outputFolder, diff --git a/SabreTools.DatFiles/DatTool.Rebuilding.cs b/SabreTools.DatFiles/Rebuilder.cs similarity index 99% rename from SabreTools.DatFiles/DatTool.Rebuilding.cs rename to SabreTools.DatFiles/Rebuilder.cs index cef87bce..691e20a9 100644 --- a/SabreTools.DatFiles/DatTool.Rebuilding.cs +++ b/SabreTools.DatFiles/Rebuilder.cs @@ -13,8 +13,17 @@ using SabreTools.Skippers; // This file represents all methods related to rebuilding from a DatFile namespace SabreTools.DatFiles { - public partial class DatTool + public class Rebuilder { + #region Logging + + /// + /// Logging object + /// + private static readonly Logger logger = new Logger(); + + #endregion + /// /// Process the DAT and find all matches in input files and folders assuming they're a depot /// diff --git a/SabreTools/Features/Sort.cs b/SabreTools/Features/Sort.cs index 46cd503c..c5e020ae 100644 --- a/SabreTools/Features/Sort.cs +++ b/SabreTools/Features/Sort.cs @@ -103,9 +103,9 @@ namespace SabreTools.Features // If we have the depot flag, respect it bool success; if (Header.InputDepot?.IsActive ?? false) - success = DatTool.RebuildDepot(datdata, Inputs, Path.Combine(OutputDir, datdata.Header.FileName), date, delete, inverse, outputFormat); + success = Rebuilder.RebuildDepot(datdata, Inputs, Path.Combine(OutputDir, datdata.Header.FileName), date, delete, inverse, outputFormat); else - success = DatTool.RebuildGeneric(datdata, Inputs, Path.Combine(OutputDir, datdata.Header.FileName), quickScan, date, delete, inverse, outputFormat, asFiles); + success = Rebuilder.RebuildGeneric(datdata, Inputs, Path.Combine(OutputDir, datdata.Header.FileName), quickScan, date, delete, inverse, outputFormat, asFiles); // If we have a success and we're updating the DAT, write it out if (success && updateDat) @@ -144,9 +144,9 @@ namespace SabreTools.Features // If we have the depot flag, respect it bool success; if (Header.InputDepot?.IsActive ?? false) - success = DatTool.RebuildDepot(datdata, Inputs, OutputDir, date, delete, inverse, outputFormat); + success = Rebuilder.RebuildDepot(datdata, Inputs, OutputDir, date, delete, inverse, outputFormat); else - success = DatTool.RebuildGeneric(datdata, Inputs, OutputDir, quickScan, date, delete, inverse, outputFormat, asFiles); + success = Rebuilder.RebuildGeneric(datdata, Inputs, OutputDir, quickScan, date, delete, inverse, outputFormat, asFiles); // If we have a success and we're updating the DAT, write it out if (success && updateDat)