mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
More library defaults
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,9 +60,11 @@ structure according to the original DAT master directory tree structure.";
|
||||
List<string> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1850,12 +1850,12 @@ namespace SabreTools.Library.DatFiles
|
||||
/// <returns>True if rebuilding was a success, false otherwise</returns>
|
||||
public bool RebuildDepot(
|
||||
List<string> 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
|
||||
/// <returns>True if rebuilding was a success, false otherwise</returns>
|
||||
public bool RebuildGeneric(
|
||||
List<string> 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
|
||||
/// <param name="inputs">List of input directories to compare against</param>
|
||||
/// <param name="outDir">Optional param for output directory</param>
|
||||
/// <returns>True if verification was a success, false otherwise</returns>
|
||||
public bool VerifyDepot(List<string> inputs, string outDir)
|
||||
public bool VerifyDepot(List<string> inputs, string outDir = null)
|
||||
{
|
||||
bool success = true;
|
||||
|
||||
@@ -2576,7 +2576,13 @@ namespace SabreTools.Library.DatFiles
|
||||
/// <param name="asFiles">TreatAsFiles representing CHD and Archive scanning</param>
|
||||
/// <param name="filter">Filter object to be passed to the DatItem level</param>
|
||||
/// <returns>True if verification was a success, false otherwise</returns>
|
||||
public bool VerifyGeneric(List<string> inputs, string outDir, bool hashOnly, bool quickScan, TreatAsFiles asFiles, Filter filter)
|
||||
public bool VerifyGeneric(
|
||||
List<string> 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;
|
||||
|
||||
Reference in New Issue
Block a user