mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Use DAT flags for rebuild if not overridden
This commit is contained in:
@@ -71,6 +71,20 @@ namespace SabreTools.Helper.Dats
|
||||
FileTools.CleanDirectory(tempDir);
|
||||
}
|
||||
|
||||
// Now we want to get forcepack flag if it's not overridden
|
||||
if (outputFormat == OutputFormat.Folder && ForcePacking != ForcePacking.None)
|
||||
{
|
||||
switch (ForcePacking)
|
||||
{
|
||||
case ForcePacking.Zip:
|
||||
outputFormat = OutputFormat.TorrentZip;
|
||||
break;
|
||||
case ForcePacking.Unzip;
|
||||
outputFormat = OutputFormat.Folder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Preload the Skipper list
|
||||
int listcount = Skipper.List.Count;
|
||||
|
||||
@@ -244,6 +258,20 @@ namespace SabreTools.Helper.Dats
|
||||
FileTools.CleanDirectory(tempDir);
|
||||
}
|
||||
|
||||
// Now we want to get forcepack flag if it's not overridden
|
||||
if (outputFormat == OutputFormat.Folder && ForcePacking != ForcePacking.None)
|
||||
{
|
||||
switch (ForcePacking)
|
||||
{
|
||||
case ForcePacking.Zip:
|
||||
outputFormat = OutputFormat.TorrentZip;
|
||||
break;
|
||||
case ForcePacking.Unzip;
|
||||
outputFormat = OutputFormat.Folder;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Preload the Skipper list
|
||||
int listcount = Skipper.List.Count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user