mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix incorrect class name
This commit is contained in:
@@ -65,8 +65,8 @@ have a current entry in the DAT index.";
|
|||||||
DatFile df = DatFile.Create();
|
DatFile df = DatFile.Create();
|
||||||
foreach (string dir in onlyDirs)
|
foreach (string dir in onlyDirs)
|
||||||
{
|
{
|
||||||
DirFromDat.PopulateFromDir(df, dir, asFiles: TreatAsFile.NonArchive);
|
DatFromDir.PopulateFromDir(df, dir, asFiles: TreatAsFile.NonArchive);
|
||||||
DirFromDat.PopulateFromDir(df, dir, asFiles: TreatAsFile.All);
|
DatFromDir.PopulateFromDir(df, dir, asFiles: TreatAsFile.All);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create an empty Dat for files that need to be rebuilt
|
// Create an empty Dat for files that need to be rebuilt
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace RombaSharp.Features
|
|||||||
DatFile datfile = DatFile.Create();
|
DatFile datfile = DatFile.Create();
|
||||||
datfile.Header.Name = string.IsNullOrWhiteSpace(name) ? "untitled" : name;
|
datfile.Header.Name = string.IsNullOrWhiteSpace(name) ? "untitled" : name;
|
||||||
datfile.Header.Description = description;
|
datfile.Header.Description = description;
|
||||||
DirFromDat.PopulateFromDir(datfile, source, asFiles: TreatAsFile.NonArchive);
|
DatFromDir.PopulateFromDir(datfile, source, asFiles: TreatAsFile.NonArchive);
|
||||||
Modification.ApplyCleaning(datfile, new Cleaner() { ExcludeFields = Hash.DeepHashes.AsFields() });
|
Modification.ApplyCleaning(datfile, new Cleaner() { ExcludeFields = Hash.DeepHashes.AsFields() });
|
||||||
Writer.Write(datfile, outdat);
|
Writer.Write(datfile, outdat);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ contents of any changed dats.";
|
|||||||
// First get a list of SHA-1's from the input DATs
|
// First get a list of SHA-1's from the input DATs
|
||||||
DatFile datroot = DatFile.Create();
|
DatFile datroot = DatFile.Create();
|
||||||
datroot.Header.Type = "SuperDAT";
|
datroot.Header.Type = "SuperDAT";
|
||||||
DirFromDat.PopulateFromDir(datroot, _dats, asFiles: TreatAsFile.NonArchive);
|
DatFromDir.PopulateFromDir(datroot, _dats, asFiles: TreatAsFile.NonArchive);
|
||||||
datroot.Items.BucketBy(Field.DatItem_SHA1, DedupeType.None);
|
datroot.Items.BucketBy(Field.DatItem_SHA1, DedupeType.None);
|
||||||
|
|
||||||
// Create a List of dat hashes in the database (SHA-1)
|
// Create a List of dat hashes in the database (SHA-1)
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace RombaSharp.Features
|
|||||||
|
|
||||||
// Now rescan the depot itself
|
// Now rescan the depot itself
|
||||||
DatFile depot = DatFile.Create();
|
DatFile depot = DatFile.Create();
|
||||||
DirFromDat.PopulateFromDir(depot, depotname, asFiles: TreatAsFile.NonArchive);
|
DatFromDir.PopulateFromDir(depot, depotname, asFiles: TreatAsFile.NonArchive);
|
||||||
depot.Items.BucketBy(Field.DatItem_SHA1, DedupeType.None);
|
depot.Items.BucketBy(Field.DatItem_SHA1, DedupeType.None);
|
||||||
|
|
||||||
// Set the base queries to use
|
// Set the base queries to use
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace SabreTools.DatFiles
|
|||||||
/// This file represents all methods related to populating a DatFile
|
/// This file represents all methods related to populating a DatFile
|
||||||
/// from a set of files and directories
|
/// from a set of files and directories
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DirFromDat
|
public class DatFromDir
|
||||||
{
|
{
|
||||||
#region Logging
|
#region Logging
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ Reset the internal state: reset();";
|
|||||||
// Assume there could be multiple
|
// Assume there could be multiple
|
||||||
foreach (string input in command.Arguments)
|
foreach (string input in command.Arguments)
|
||||||
{
|
{
|
||||||
DirFromDat.PopulateFromDir(datFile, input);
|
DatFiles.DatFromDir.PopulateFromDir(datFile, input);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: We might not want to remove higher order hashes in the future
|
// TODO: We might not want to remove higher order hashes in the future
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ namespace SabreTools.Features
|
|||||||
datdata.FillHeaderFromPath(basePath, noAutomaticDate);
|
datdata.FillHeaderFromPath(basePath, noAutomaticDate);
|
||||||
|
|
||||||
// Now populate from the path
|
// Now populate from the path
|
||||||
bool success = DirFromDat.PopulateFromDir(
|
bool success = DatFiles.DatFromDir.PopulateFromDir(
|
||||||
datdata,
|
datdata,
|
||||||
basePath,
|
basePath,
|
||||||
asFiles,
|
asFiles,
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ namespace SabreTools.Features
|
|||||||
logger.User("Processing files:\n");
|
logger.User("Processing files:\n");
|
||||||
foreach (string input in Inputs)
|
foreach (string input in Inputs)
|
||||||
{
|
{
|
||||||
DirFromDat.PopulateFromDir(datdata, input, asFiles: asFiles, hashes: quickScan ? Hash.CRC : Hash.Standard);
|
DatFiles.DatFromDir.PopulateFromDir(datdata, input, asFiles: asFiles, hashes: quickScan ? Hash.CRC : Hash.Standard);
|
||||||
}
|
}
|
||||||
|
|
||||||
Verification.VerifyGeneric(datdata, hashOnly);
|
Verification.VerifyGeneric(datdata, hashOnly);
|
||||||
@@ -133,7 +133,7 @@ namespace SabreTools.Features
|
|||||||
logger.User("Processing files:\n");
|
logger.User("Processing files:\n");
|
||||||
foreach (string input in Inputs)
|
foreach (string input in Inputs)
|
||||||
{
|
{
|
||||||
DirFromDat.PopulateFromDir(datdata, input, asFiles: asFiles, hashes: quickScan ? Hash.CRC : Hash.Standard);
|
DatFiles.DatFromDir.PopulateFromDir(datdata, input, asFiles: asFiles, hashes: quickScan ? Hash.CRC : Hash.Standard);
|
||||||
}
|
}
|
||||||
|
|
||||||
Verification.VerifyGeneric(datdata, hashOnly);
|
Verification.VerifyGeneric(datdata, hashOnly);
|
||||||
|
|||||||
Reference in New Issue
Block a user