From 3a1c476edccbf9236e3ffc55d7e8ef186339c6a6 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 30 Jan 2022 21:07:35 -0800 Subject: [PATCH] Remove StarForce directory checks for now (fixes #77) --- BurnOutSharp/ProtectionType/StarForce.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/BurnOutSharp/ProtectionType/StarForce.cs b/BurnOutSharp/ProtectionType/StarForce.cs index d7a9a369..c88788df 100644 --- a/BurnOutSharp/ProtectionType/StarForce.cs +++ b/BurnOutSharp/ProtectionType/StarForce.cs @@ -67,13 +67,16 @@ namespace BurnOutSharp.ProtectionType /// public ConcurrentQueue CheckDirectoryPath(string path, IEnumerable files) { - var matchers = new List - { - new PathMatchSet(new PathMatch("protect.dll", useEndsWith: true), "StarForce"), - new PathMatchSet(new PathMatch("protect.exe", useEndsWith: true), "StarForce"), - }; + // These have too high of a chance of over-matching by themselves + // var matchers = new List + // { + // // TODO: Re-consolidate these once path matching is improved + // new PathMatchSet(new PathMatch("/protect.dll", useEndsWith: true), "StarForce"), + // new PathMatchSet(new PathMatch("/protect.exe", useEndsWith: true), "StarForce"), + // }; - return MatchUtil.GetAllMatches(files, matchers, any: false); + // return MatchUtil.GetAllMatches(files, matchers, any: false); + return null; } ///