using System.Collections.Generic; using BurnOutSharp.Matching; namespace BurnOutSharp.ProtectionType { public class Key2AudioXS : IPathCheck { /// public List CheckDirectoryPath(string path, IEnumerable files) { // TODO: Verify if these are OR or AND var matchers = new List { new PathMatchSet(new PathMatch("SDKHM.EXE", useEndsWith: true), "key2AudioXS"), new PathMatchSet(new PathMatch("SDKHM.DLL", useEndsWith: true), "key2AudioXS"), }; return MatchUtil.GetAllMatches(files, matchers, any: true); } /// public string CheckFilePath(string path) { var matchers = new List { new PathMatchSet(new PathMatch("SDKHM.EXE", useEndsWith: true), "key2AudioXS"), new PathMatchSet(new PathMatch("SDKHM.DLL", useEndsWith: true), "key2AudioXS"), }; return MatchUtil.GetFirstMatch(path, matchers, any: true); } } }