Address warnings in code I wrote

This commit is contained in:
Matt Nadareski
2021-01-15 13:06:17 -08:00
parent 32d1c59d64
commit cb947fdf51
5 changed files with 6 additions and 10 deletions

View File

@@ -12,8 +12,8 @@ namespace SabreTools.Core
/// <summary>
/// The current toolset version to be used by all child applications
/// </summary>
public readonly static string Version = $"v1.0.7";
//public readonly static string Version = $"v1.0.7-{File.GetCreationTime(Assembly.GetExecutingAssembly().Location):yyyy-MM-dd HH:mm:ss}";
//public readonly static string Version = $"v1.0.7";
public readonly static string Version = $"v1.0.7-{File.GetCreationTime(Assembly.GetExecutingAssembly().Location):yyyy-MM-dd HH:mm:ss}";
/// <summary>
/// Readies the console and outputs the header

View File

@@ -88,9 +88,9 @@ namespace SabreTools.Core.Tools
}
/// <summary>
/// Finalize the internal hash algorigthm
/// Terminate the internal hash algorigthm
/// </summary>
public void Finalize()
public void Terminate()
{
byte[] emptyBuffer = new byte[0];
switch (HashType)

View File

@@ -204,7 +204,6 @@ namespace SabreTools.DatFiles.Formats
}
// Get the hash field and set final fields
string hash;
switch (_hash)
{
case Hash.CRC:

View File

@@ -399,7 +399,7 @@ namespace SabreTools.FileTypes
// Finalize all hashing helpers
loadBuffer.Finish();
Parallel.ForEach(hashers, Globals.ParallelOptions, h => h.Finalize());
Parallel.ForEach(hashers, Globals.ParallelOptions, h => h.Terminate());
// Get the results
BaseFile baseFile = new BaseFile()

View File

@@ -46,12 +46,9 @@ namespace SabreTools.Filtering
/// <param name="value">Value of the filter</param>
/// <param name="negate">True if negative filter, false otherwise</param>
public void SetFilter(DatHeaderField key, string value, bool negate)
{
switch (key)
{
// TODO: Add DatHeader filters
}
}
#endregion
}