mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Fix bool logic in rebuild
This commit is contained in:
@@ -3859,7 +3859,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
bool inverse, OutputFormat outputFormat, bool romba, bool updateDat, bool? isZip, string headerToCheckAgainst)
|
bool inverse, OutputFormat outputFormat, bool romba, bool updateDat, bool? isZip, string headerToCheckAgainst)
|
||||||
{
|
{
|
||||||
// Set the output value
|
// Set the output value
|
||||||
bool rebuilt = false;
|
bool rebuilt = true;
|
||||||
|
|
||||||
// If the DatItem is a Disk, force rebuilding to a folder except if TGZ
|
// If the DatItem is a Disk, force rebuilding to a folder except if TGZ
|
||||||
if (datItem.Type == ItemType.Disk && outputFormat != OutputFormat.TorrentGzip)
|
if (datItem.Type == ItemType.Disk && outputFormat != OutputFormat.TorrentGzip)
|
||||||
@@ -3893,7 +3893,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// If we don't have any duplicates, continue
|
// If we don't have any duplicates, continue
|
||||||
if (dupes.Count == 0)
|
if (dupes.Count == 0)
|
||||||
{
|
{
|
||||||
return rebuilt;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we have a very specifc TGZ->TGZ case, just copy it accordingly
|
// If we have a very specifc TGZ->TGZ case, just copy it accordingly
|
||||||
@@ -3952,7 +3952,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// If the stream is null, then continue
|
// If the stream is null, then continue
|
||||||
if (fileStream == null)
|
if (fileStream == null)
|
||||||
{
|
{
|
||||||
return rebuilt;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Seek to the beginning of the stream
|
// Seek to the beginning of the stream
|
||||||
@@ -4036,7 +4036,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// If the stream is null, then continue
|
// If the stream is null, then continue
|
||||||
if (fileStream == null)
|
if (fileStream == null)
|
||||||
{
|
{
|
||||||
return rebuilt;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the item from the current file
|
// Get the item from the current file
|
||||||
@@ -4126,7 +4126,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// If the stream is null, then continue
|
// If the stream is null, then continue
|
||||||
if (fileStream == null)
|
if (fileStream == null)
|
||||||
{
|
{
|
||||||
return rebuilt;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check to see if we have a matching header first
|
// Check to see if we have a matching header first
|
||||||
@@ -4154,7 +4154,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// If we don't have any duplicates, continue
|
// If we don't have any duplicates, continue
|
||||||
if (dupes.Count == 0)
|
if (dupes.Count == 0)
|
||||||
{
|
{
|
||||||
return rebuilt;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Globals.Logger.User("Headerless matches found for '{0}', rebuilding accordingly...", Path.GetFileName(datItem.Name));
|
Globals.Logger.User("Headerless matches found for '{0}', rebuilding accordingly...", Path.GetFileName(datItem.Name));
|
||||||
|
|||||||
Reference in New Issue
Block a user