Remove StarForce directory checks for now (fixes #77)

This commit is contained in:
Matt Nadareski
2022-01-30 21:07:35 -08:00
parent 0d62d5336c
commit 3a1c476edc

View File

@@ -67,13 +67,16 @@ namespace BurnOutSharp.ProtectionType
/// <inheritdoc/>
public ConcurrentQueue<string> CheckDirectoryPath(string path, IEnumerable<string> files)
{
var matchers = new List<PathMatchSet>
{
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<PathMatchSet>
// {
// // 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;
}
/// <inheritdoc/>