mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix spelling issues
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user