mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Address warnings in code I wrote
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -204,7 +204,6 @@ namespace SabreTools.DatFiles.Formats
|
||||
}
|
||||
|
||||
// Get the hash field and set final fields
|
||||
string hash;
|
||||
switch (_hash)
|
||||
{
|
||||
case Hash.CRC:
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user