mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATFromDir] Rename DFDP to DFD since original no longer exists
This commit is contained in:
@@ -70,7 +70,7 @@ namespace SabreTools
|
||||
logger.Start();
|
||||
foreach (string input in inputs)
|
||||
{
|
||||
DATFromDirParallel dfd = new DATFromDirParallel(input, datdata, false /* noMD5 */, false /* noSHA1 */, true /* bare */, false /* archivesAsFiles */,
|
||||
DATFromDir dfd = new DATFromDir(input, datdata, false /* noMD5 */, false /* noSHA1 */, true /* bare */, false /* archivesAsFiles */,
|
||||
true /* enableGzip */, false /* addBlanks */, false /* addDate */, "__temp__" /* tempdir */, 4 /* maxDegreeOfParallelism */, _logger);
|
||||
dfd.Start();
|
||||
DatTools.WriteDatfile(dfd.DatData, "", logger);
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace SabreTools
|
||||
/// <summary>
|
||||
/// Create a DAT file from a specified file, directory, or set thereof
|
||||
/// </summary>
|
||||
public class DATFromDirParallel
|
||||
public class DATFromDir
|
||||
{
|
||||
// Path-related variables
|
||||
private string _basePath;
|
||||
@@ -52,7 +52,7 @@ namespace SabreTools
|
||||
/// <param name="tempDir">Name of the directory to create a temp folder in (blank is current directory)</param>
|
||||
/// <param name="maxDegreeOfParallelism">Integer representing the maximum amount of parallelization to be used</param>
|
||||
/// <param name="logger">Logger object for console and file output</param>
|
||||
public DATFromDirParallel(string basePath, Dat datdata, bool noMD5, bool noSHA1, bool bare, bool archivesAsFiles,
|
||||
public DATFromDir(string basePath, Dat datdata, bool noMD5, bool noSHA1, bool bare, bool archivesAsFiles,
|
||||
bool enableGzip, bool addBlanks, bool addDate, string tempDir, int maxDegreeOfParallelism, Logger logger)
|
||||
{
|
||||
_basePath = Path.GetFullPath(basePath);
|
||||
@@ -134,7 +134,7 @@ namespace SabreTools.Helper
|
||||
_logger.User("Processing files:\n");
|
||||
foreach (string input in _inputs)
|
||||
{
|
||||
DATFromDirParallel dfd = new DATFromDirParallel(input, _datdata, false /* noMD5 */, false /* noSHA1 */, true /* bare */, false /* archivesAsFiles */,
|
||||
DATFromDir dfd = new DATFromDir(input, _datdata, false /* noMD5 */, false /* noSHA1 */, true /* bare */, false /* archivesAsFiles */,
|
||||
true /* enableGzip */, false /* addBlanks */, false /* addDate */, "__temp__" /* tempdir */, 4 /* maxDegreeOfParallelism */, _logger);
|
||||
dfd.Start();
|
||||
_datdata = dfd.DatData;
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<Compile Include="Data\Constants.cs" />
|
||||
<Compile Include="Data\Flags.cs" />
|
||||
<Compile Include="External\OptimizedCRC.cs" />
|
||||
<Compile Include="Objects\DATFromDirParallel.cs" />
|
||||
<Compile Include="Objects\DATFromDir.cs" />
|
||||
<Compile Include="Objects\Generate.cs" />
|
||||
<Compile Include="Objects\GenerateTwo.cs" />
|
||||
<Compile Include="Objects\Headerer.cs" />
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace SabreTools
|
||||
datdata.Files = new Dictionary<string, List<Rom>>();
|
||||
|
||||
string basePath = Path.GetFullPath(path);
|
||||
DATFromDirParallel dfd = new DATFromDirParallel(basePath, datdata, noMD5, noSHA1, bare, archivesAsFiles, enableGzip, addBlanks, addDate, tempDir, maxDegreeOfParallelism, _logger);
|
||||
DATFromDir dfd = new DATFromDir(basePath, datdata, noMD5, noSHA1, bare, archivesAsFiles, enableGzip, addBlanks, addDate, tempDir, maxDegreeOfParallelism, _logger);
|
||||
bool success = dfd.Start();
|
||||
|
||||
// If it was a success, write the DAT out
|
||||
|
||||
Reference in New Issue
Block a user