[DatFile] Fix build errors

This commit is contained in:
Matt Nadareski
2017-02-23 21:34:40 -08:00
parent 9b69ba7539
commit 8038c2cca0
2 changed files with 4 additions and 5 deletions

View File

@@ -906,7 +906,6 @@ namespace SabreTools.Helper.Dats
bool keep, bool keep,
bool clean, bool clean,
bool descAsName) bool descAsName)
)
{ {
// Open a file reader // Open a file reader
Encoding enc = Style.GetEncoding(filename); Encoding enc = Style.GetEncoding(filename);
@@ -967,7 +966,7 @@ namespace SabreTools.Helper.Dats
parsed.Add("DatItem.Size"); parsed.Add("DatItem.Size");
break; break;
case "crc": case "crc":
case "crc hash" case "crc hash":
parsed.Add("DatItem.CRC"); parsed.Add("DatItem.CRC");
break; break;
case "md5": case "md5":
@@ -1021,7 +1020,7 @@ namespace SabreTools.Helper.Dats
case "DatFile.FileName": case "DatFile.FileName":
Filename = (String.IsNullOrEmpty(FileName) ? value : FileName); Filename = (String.IsNullOrEmpty(FileName) ? value : FileName);
break; break;
case "DatFile.Name"): case "DatFile.Name":
Name = (String.IsNullOrEmpty(Name) ? value : Name); Name = (String.IsNullOrEmpty(Name) ? value : Name);
break; break;
case "DatFile.Description": case "DatFile.Description":

View File

@@ -79,7 +79,7 @@ namespace SabreTools.Helper.Dats
case ForcePacking.Zip: case ForcePacking.Zip:
outputFormat = OutputFormat.TorrentZip; outputFormat = OutputFormat.TorrentZip;
break; break;
case ForcePacking.Unzip; case ForcePacking.Unzip:
outputFormat = OutputFormat.Folder; outputFormat = OutputFormat.Folder;
break; break;
} }
@@ -266,7 +266,7 @@ namespace SabreTools.Helper.Dats
case ForcePacking.Zip: case ForcePacking.Zip:
outputFormat = OutputFormat.TorrentZip; outputFormat = OutputFormat.TorrentZip;
break; break;
case ForcePacking.Unzip; case ForcePacking.Unzip:
outputFormat = OutputFormat.Folder; outputFormat = OutputFormat.Folder;
break; break;
} }