mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-23 15:24:45 +00:00
Remove over-matching TAGES check
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user