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
|
// Create the sorting object to use and rebuild the needed files
|
||||||
need.RebuildGeneric(onlyDirs, _depots.Keys.ToList()[0], false /*quickScan*/, false /*date*/,
|
need.RebuildGeneric(
|
||||||
false /*delete*/, false /*inverse*/, OutputFormat.TorrentGzipRomba, false /*updateDat*/,
|
onlyDirs,
|
||||||
TreatAsFiles.CHDs);
|
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();
|
List<string> onlineDepots = _depots.Where(d => d.Value.Item2).Select(d => d.Key).ToList();
|
||||||
|
|
||||||
// Now scan all of those depots and rebuild
|
// Now scan all of those depots and rebuild
|
||||||
datFile.RebuildDepot(onlineDepots, outputFolder, false /*date*/,
|
datFile.RebuildDepot(
|
||||||
false /*delete*/, false /*inverse*/, (copy ? OutputFormat.TorrentGzipRomba : OutputFormat.TorrentZip),
|
onlineDepots,
|
||||||
false /*updateDat*/);
|
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>
|
/// <returns>True if rebuilding was a success, false otherwise</returns>
|
||||||
public bool RebuildDepot(
|
public bool RebuildDepot(
|
||||||
List<string> inputs,
|
List<string> inputs,
|
||||||
string outDir,
|
string outDir = null,
|
||||||
bool date,
|
bool date = false,
|
||||||
bool delete,
|
bool delete = false,
|
||||||
bool inverse,
|
bool inverse = false,
|
||||||
OutputFormat outputFormat,
|
OutputFormat outputFormat = OutputFormat.Folder,
|
||||||
bool updateDat)
|
bool updateDat = true)
|
||||||
{
|
{
|
||||||
#region Perform setup
|
#region Perform setup
|
||||||
|
|
||||||
@@ -2026,14 +2026,14 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <returns>True if rebuilding was a success, false otherwise</returns>
|
/// <returns>True if rebuilding was a success, false otherwise</returns>
|
||||||
public bool RebuildGeneric(
|
public bool RebuildGeneric(
|
||||||
List<string> inputs,
|
List<string> inputs,
|
||||||
string outDir,
|
string outDir = null,
|
||||||
bool quickScan,
|
bool quickScan = false,
|
||||||
bool date,
|
bool date = false,
|
||||||
bool delete,
|
bool delete = false,
|
||||||
bool inverse,
|
bool inverse = false,
|
||||||
OutputFormat outputFormat,
|
OutputFormat outputFormat = OutputFormat.Folder,
|
||||||
bool updateDat,
|
bool updateDat = true,
|
||||||
TreatAsFiles asFiles)
|
TreatAsFiles asFiles = 0x00)
|
||||||
{
|
{
|
||||||
#region Perform setup
|
#region Perform setup
|
||||||
|
|
||||||
@@ -2489,7 +2489,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <param name="inputs">List of input directories to compare against</param>
|
/// <param name="inputs">List of input directories to compare against</param>
|
||||||
/// <param name="outDir">Optional param for output directory</param>
|
/// <param name="outDir">Optional param for output directory</param>
|
||||||
/// <returns>True if verification was a success, false otherwise</returns>
|
/// <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;
|
bool success = true;
|
||||||
|
|
||||||
@@ -2576,7 +2576,13 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <param name="asFiles">TreatAsFiles representing CHD and Archive scanning</param>
|
/// <param name="asFiles">TreatAsFiles representing CHD and Archive scanning</param>
|
||||||
/// <param name="filter">Filter object to be passed to the DatItem level</param>
|
/// <param name="filter">Filter object to be passed to the DatItem level</param>
|
||||||
/// <returns>True if verification was a success, false otherwise</returns>
|
/// <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
|
// 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;
|
bool success = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user