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>
|
/// <summary>
|
||||||
/// The current toolset version to be used by all child applications
|
/// The current toolset version to be used by all child applications
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly static string Version = $"v1.0.7";
|
//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-{File.GetCreationTime(Assembly.GetExecutingAssembly().Location):yyyy-MM-dd HH:mm:ss}";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Readies the console and outputs the header
|
/// Readies the console and outputs the header
|
||||||
|
|||||||
@@ -88,9 +88,9 @@ namespace SabreTools.Core.Tools
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finalize the internal hash algorigthm
|
/// Terminate the internal hash algorigthm
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Finalize()
|
public void Terminate()
|
||||||
{
|
{
|
||||||
byte[] emptyBuffer = new byte[0];
|
byte[] emptyBuffer = new byte[0];
|
||||||
switch (HashType)
|
switch (HashType)
|
||||||
|
|||||||
@@ -204,7 +204,6 @@ namespace SabreTools.DatFiles.Formats
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the hash field and set final fields
|
// Get the hash field and set final fields
|
||||||
string hash;
|
|
||||||
switch (_hash)
|
switch (_hash)
|
||||||
{
|
{
|
||||||
case Hash.CRC:
|
case Hash.CRC:
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ namespace SabreTools.FileTypes
|
|||||||
|
|
||||||
// Finalize all hashing helpers
|
// Finalize all hashing helpers
|
||||||
loadBuffer.Finish();
|
loadBuffer.Finish();
|
||||||
Parallel.ForEach(hashers, Globals.ParallelOptions, h => h.Finalize());
|
Parallel.ForEach(hashers, Globals.ParallelOptions, h => h.Terminate());
|
||||||
|
|
||||||
// Get the results
|
// Get the results
|
||||||
BaseFile baseFile = new BaseFile()
|
BaseFile baseFile = new BaseFile()
|
||||||
|
|||||||
@@ -47,10 +47,7 @@ namespace SabreTools.Filtering
|
|||||||
/// <param name="negate">True if negative filter, false otherwise</param>
|
/// <param name="negate">True if negative filter, false otherwise</param>
|
||||||
public void SetFilter(DatHeaderField key, string value, bool negate)
|
public void SetFilter(DatHeaderField key, string value, bool negate)
|
||||||
{
|
{
|
||||||
switch (key)
|
// TODO: Add DatHeader filters
|
||||||
{
|
|
||||||
// TODO: Add DatHeader filters
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user