diff --git a/BurnOutSharp/ProtectionType/TivolaRingProtection.cs b/BurnOutSharp/ProtectionType/TivolaRingProtection.cs new file mode 100644 index 00000000..97bf19d1 --- /dev/null +++ b/BurnOutSharp/ProtectionType/TivolaRingProtection.cs @@ -0,0 +1,34 @@ +using System.Collections.Generic; +using System.IO; +using BurnOutSharp.Matching; + +namespace BurnOutSharp.ProtectionType +{ + /// + /// This protection needs far more research + /// + public class TivolaRingProtection : IPathCheck + { + /// + public List CheckDirectoryPath(string path, IEnumerable files) + { + var matchers = new List + { + new PathMatchSet(Path.Combine("ZDAT", "webmast.dxx"), "Tivola Ring Protection"), + }; + + return MatchUtil.GetAllMatches(files, matchers, any: true); + } + + /// + public string CheckFilePath(string path) + { + var matchers = new List + { + new PathMatchSet(Path.Combine("ZDAT", "webmast.dxx"), "Tivola Ring Protection"), + }; + + return MatchUtil.GetFirstMatch(path, matchers, any: true); + } + } +}