[DATFromDir] Rename DFDP to DFD since original no longer exists

This commit is contained in:
Matt Nadareski
2016-09-14 14:54:41 -07:00
parent 4cb13d473a
commit bbac7f0866
5 changed files with 6 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ namespace SabreTools
logger.Start(); logger.Start();
foreach (string input in inputs) 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); true /* enableGzip */, false /* addBlanks */, false /* addDate */, "__temp__" /* tempdir */, 4 /* maxDegreeOfParallelism */, _logger);
dfd.Start(); dfd.Start();
DatTools.WriteDatfile(dfd.DatData, "", logger); DatTools.WriteDatfile(dfd.DatData, "", logger);

View File

@@ -11,7 +11,7 @@ namespace SabreTools
/// <summary> /// <summary>
/// Create a DAT file from a specified file, directory, or set thereof /// Create a DAT file from a specified file, directory, or set thereof
/// </summary> /// </summary>
public class DATFromDirParallel public class DATFromDir
{ {
// Path-related variables // Path-related variables
private string _basePath; 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="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="maxDegreeOfParallelism">Integer representing the maximum amount of parallelization to be used</param>
/// <param name="logger">Logger object for console and file output</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) bool enableGzip, bool addBlanks, bool addDate, string tempDir, int maxDegreeOfParallelism, Logger logger)
{ {
_basePath = Path.GetFullPath(basePath); _basePath = Path.GetFullPath(basePath);

View File

@@ -134,7 +134,7 @@ namespace SabreTools.Helper
_logger.User("Processing files:\n"); _logger.User("Processing files:\n");
foreach (string input in _inputs) 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); true /* enableGzip */, false /* addBlanks */, false /* addDate */, "__temp__" /* tempdir */, 4 /* maxDegreeOfParallelism */, _logger);
dfd.Start(); dfd.Start();
_datdata = dfd.DatData; _datdata = dfd.DatData;

View File

@@ -87,7 +87,7 @@
<Compile Include="Data\Constants.cs" /> <Compile Include="Data\Constants.cs" />
<Compile Include="Data\Flags.cs" /> <Compile Include="Data\Flags.cs" />
<Compile Include="External\OptimizedCRC.cs" /> <Compile Include="External\OptimizedCRC.cs" />
<Compile Include="Objects\DATFromDirParallel.cs" /> <Compile Include="Objects\DATFromDir.cs" />
<Compile Include="Objects\Generate.cs" /> <Compile Include="Objects\Generate.cs" />
<Compile Include="Objects\GenerateTwo.cs" /> <Compile Include="Objects\GenerateTwo.cs" />
<Compile Include="Objects\Headerer.cs" /> <Compile Include="Objects\Headerer.cs" />

View File

@@ -153,7 +153,7 @@ namespace SabreTools
datdata.Files = new Dictionary<string, List<Rom>>(); datdata.Files = new Dictionary<string, List<Rom>>();
string basePath = Path.GetFullPath(path); 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(); bool success = dfd.Start();
// If it was a success, write the DAT out // If it was a success, write the DAT out