mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Move GetDuplicateSuffix to where it's used
This commit is contained in:
@@ -212,24 +212,6 @@ namespace SabreTools.DatItems.Formats
|
||||
_sha256 = other._sha256;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get unique duplicate suffix on name collision
|
||||
/// </summary>
|
||||
/// <returns>String representing the suffix</returns>
|
||||
public override string GetDuplicateSuffix()
|
||||
{
|
||||
if (!_crc.IsNullOrEmpty())
|
||||
return $"_{CRC}";
|
||||
else if (!_md5.IsNullOrEmpty())
|
||||
return $"_{MD5}";
|
||||
else if (!_sha1.IsNullOrEmpty())
|
||||
return $"_{SHA1}";
|
||||
else if (!_sha256.IsNullOrEmpty())
|
||||
return $"_{SHA256}";
|
||||
else
|
||||
return "_1";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns if the File contains any hashes
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user