From 6f6755b21883506f7045270dfa94587d8264163c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 27 Oct 2021 23:08:16 -0700 Subject: [PATCH] Remove over-matching TAGES check --- BurnOutSharp/ProtectionType/Tages.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/BurnOutSharp/ProtectionType/Tages.cs b/BurnOutSharp/ProtectionType/Tages.cs index cb7b827b..3ca09810 100644 --- a/BurnOutSharp/ProtectionType/Tages.cs +++ b/BurnOutSharp/ProtectionType/Tages.cs @@ -68,9 +68,8 @@ namespace BurnOutSharp.ProtectionType { var protections = new ConcurrentQueue(); - // 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 /// 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"; }