diff --git a/RombaSharp/Features/Archive.cs b/RombaSharp/Features/Archive.cs index 023547f7..9feee70b 100644 --- a/RombaSharp/Features/Archive.cs +++ b/RombaSharp/Features/Archive.cs @@ -189,9 +189,12 @@ have a current entry in the DAT index."; } // Create the sorting object to use and rebuild the needed files - need.RebuildGeneric(onlyDirs, _depots.Keys.ToList()[0], false /*quickScan*/, false /*date*/, - false /*delete*/, false /*inverse*/, OutputFormat.TorrentGzipRomba, false /*updateDat*/, - TreatAsFiles.CHDs); + need.RebuildGeneric( + onlyDirs, + outDir: _depots.Keys.ToList()[0], + outputFormat: OutputFormat.TorrentGzipRomba, + updateDat: false, + asFiles: TreatAsFiles.CHDs); } } } diff --git a/RombaSharp/Features/Build.cs b/RombaSharp/Features/Build.cs index 838e39a8..73f1dd5f 100644 --- a/RombaSharp/Features/Build.cs +++ b/RombaSharp/Features/Build.cs @@ -60,9 +60,11 @@ 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 - datFile.RebuildDepot(onlineDepots, outputFolder, false /*date*/, - false /*delete*/, false /*inverse*/, (copy ? OutputFormat.TorrentGzipRomba : OutputFormat.TorrentZip), - false /*updateDat*/); + datFile.RebuildDepot( + onlineDepots, + outDir: outputFolder, + outputFormat: (copy ? OutputFormat.TorrentGzipRomba : OutputFormat.TorrentZip), + updateDat: false); } } } diff --git a/SabreTools.Library/DatFiles/DatFile.cs b/SabreTools.Library/DatFiles/DatFile.cs index 04184ed1..de37756b 100644 --- a/SabreTools.Library/DatFiles/DatFile.cs +++ b/SabreTools.Library/DatFiles/DatFile.cs @@ -1850,12 +1850,12 @@ namespace SabreTools.Library.DatFiles /// True if rebuilding was a success, false otherwise public bool RebuildDepot( List inputs, - string outDir, - bool date, - bool delete, - bool inverse, - OutputFormat outputFormat, - bool updateDat) + string outDir = null, + bool date = false, + bool delete = false, + bool inverse = false, + OutputFormat outputFormat = OutputFormat.Folder, + bool updateDat = true) { #region Perform setup @@ -2026,14 +2026,14 @@ namespace SabreTools.Library.DatFiles /// True if rebuilding was a success, false otherwise public bool RebuildGeneric( List inputs, - string outDir, - bool quickScan, - bool date, - bool delete, - bool inverse, - OutputFormat outputFormat, - bool updateDat, - TreatAsFiles asFiles) + string outDir = null, + bool quickScan = false, + bool date = false, + bool delete = false, + bool inverse = false, + OutputFormat outputFormat = OutputFormat.Folder, + bool updateDat = true, + TreatAsFiles asFiles = 0x00) { #region Perform setup @@ -2489,7 +2489,7 @@ namespace SabreTools.Library.DatFiles /// List of input directories to compare against /// Optional param for output directory /// True if verification was a success, false otherwise - public bool VerifyDepot(List inputs, string outDir) + public bool VerifyDepot(List inputs, string outDir = null) { bool success = true; @@ -2576,7 +2576,13 @@ namespace SabreTools.Library.DatFiles /// TreatAsFiles representing CHD and Archive scanning /// Filter object to be passed to the DatItem level /// True if verification was a success, false otherwise - public bool VerifyGeneric(List inputs, string outDir, bool hashOnly, bool quickScan, TreatAsFiles asFiles, Filter filter) + public bool VerifyGeneric( + List inputs, + string outDir = null, + bool hashOnly = false, + bool quickScan = false, + TreatAsFiles asFiles = 0x00, + Filter filter = null) { // TODO: We want the cross section of what's the folder and what's in the DAT. Right now, it just has what's in the DAT that's not in the folder bool success = true;