Fix spelling issues

This commit is contained in:
Matt Nadareski
2024-07-19 15:14:30 -04:00
parent 5351ea47f0
commit c31d235319
7 changed files with 12 additions and 6 deletions

View File

@@ -93,8 +93,9 @@ namespace SabreTools.DatTools
logger.User(totalSize, currentSize); logger.User(totalSize, currentSize);
foreach (string item in files) foreach (string item in files)
{ {
CheckFileForHashes(datFile, item, basePath, asFiles, skipFileType, addBlanks, hashes);
currentSize += new FileInfo(item).Length; currentSize += new FileInfo(item).Length;
CheckFileForHashes(datFile, item, basePath, asFiles, skipFileType, addBlanks, hashes);
logger.User(totalSize, currentSize, item); logger.User(totalSize, currentSize, item);
} }

View File

@@ -251,7 +251,7 @@ namespace SabreTools.FileTypes.Archives
gzstream!.Dispose(); gzstream!.Dispose();
} }
// Fill in comon details and add to the list // Fill in common details and add to the list
gzipEntryRom.Parent = gamename; gzipEntryRom.Parent = gamename;
_children.Add(gzipEntryRom); _children.Add(gzipEntryRom);
} }

View File

@@ -217,7 +217,7 @@ namespace SabreTools.FileTypes.Archives
rarEntryRom = GetInfo(entryStream, size: entry.Size, hashes: this.AvailableHashTypes); rarEntryRom = GetInfo(entryStream, size: entry.Size, hashes: this.AvailableHashTypes);
} }
// Fill in comon details and add to the list // Fill in common details and add to the list
rarEntryRom.Filename = entry.Key; rarEntryRom.Filename = entry.Key;
rarEntryRom.Parent = gamename; rarEntryRom.Parent = gamename;
rarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd hh:mm:ss"); rarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd hh:mm:ss");

View File

@@ -328,7 +328,7 @@ namespace SabreTools.FileTypes.Archives
zipEntryRom = GetInfo(readStream, size: (long)zf.GetLocalFile(i).UncompressedSize, hashes: this.AvailableHashTypes, keepReadOpen: true); zipEntryRom = GetInfo(readStream, size: (long)zf.GetLocalFile(i).UncompressedSize, hashes: this.AvailableHashTypes, keepReadOpen: true);
} }
// Fill in comon details and add to the list // Fill in common details and add to the list
zipEntryRom.Filename = zf.GetLocalFile(i).Filename; zipEntryRom.Filename = zf.GetLocalFile(i).Filename;
zipEntryRom.Parent = gamename; zipEntryRom.Parent = gamename;
found.Add(zipEntryRom); found.Add(zipEntryRom);

View File

@@ -210,7 +210,7 @@ namespace SabreTools.FileTypes.Archives
tarEntryRom = GetInfo(entryStream, size: entry.Size, hashes: this.AvailableHashTypes); tarEntryRom = GetInfo(entryStream, size: entry.Size, hashes: this.AvailableHashTypes);
} }
// Fill in comon details and add to the list // Fill in common details and add to the list
tarEntryRom.Filename = entry.Key; tarEntryRom.Filename = entry.Key;
tarEntryRom.Parent = gamename; tarEntryRom.Parent = gamename;
tarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd hh:mm:ss"); tarEntryRom.Date = entry.LastModifiedTime?.ToString("yyyy/MM/dd hh:mm:ss");

View File

@@ -228,7 +228,7 @@ namespace SabreTools.FileTypes.Archives
xzStream.Dispose(); xzStream.Dispose();
} }
// Fill in comon details and add to the list // Fill in common details and add to the list
xzEntryRom.Parent = gamename; xzEntryRom.Parent = gamename;
_children.Add(xzEntryRom); _children.Add(xzEntryRom);
} }

View File

@@ -368,9 +368,14 @@ namespace SabreTools.FileTypes
// Deal with the input stream // Deal with the input stream
if (!keepReadOpen) if (!keepReadOpen)
{
input.Close();
input.Dispose(); input.Dispose();
}
else else
{
input.SeekIfPossible(); input.SeekIfPossible();
}
return baseFile; return baseFile;
} }