Remove over-matching TAGES check

This commit is contained in:
Matt Nadareski
2021-10-27 23:08:16 -07:00
parent 9a2f2e6f17
commit 6f6755b218

View File

@@ -68,9 +68,8 @@ namespace BurnOutSharp.ProtectionType
{
var protections = new ConcurrentQueue<string>();
// TODO: Verify if these are OR or AND
if (files.Any(f => Path.GetFileName(f).Equals("Tages.dll", StringComparison.OrdinalIgnoreCase))
|| files.Any(f => Path.GetFileName(f).Equals("Wave.aif", StringComparison.OrdinalIgnoreCase)))
// "Wave.aif" was a former check here, but it over-matched
if (files.Any(f => Path.GetFileName(f).Equals("Tages.dll", StringComparison.OrdinalIgnoreCase)))
{
protections.Enqueue("TAGES");
}
@@ -99,8 +98,8 @@ namespace BurnOutSharp.ProtectionType
/// <inheritdoc/>
public string CheckFilePath(string path)
{
if (Path.GetFileName(path).Equals("Tages.dll", StringComparison.OrdinalIgnoreCase)
|| Path.GetFileName(path).Equals("Wave.aif", StringComparison.OrdinalIgnoreCase))
// "Wave.aif" was a former check here, but it over-matched
if (Path.GetFileName(path).Equals("Tages.dll", StringComparison.OrdinalIgnoreCase))
{
return "TAGES";
}