From d66c890b71acf1d31c11e6737233bff43e2010e5 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 12 Sep 2021 16:03:58 -0700 Subject: [PATCH] Combine SafeDisc and Lite --- BurnOutSharp/ProtectionType/SafeDisc.cs | 5 +++- BurnOutSharp/ProtectionType/SafeDiscLite.cs | 31 --------------------- 2 files changed, 4 insertions(+), 32 deletions(-) delete mode 100644 BurnOutSharp/ProtectionType/SafeDiscLite.cs diff --git a/BurnOutSharp/ProtectionType/SafeDisc.cs b/BurnOutSharp/ProtectionType/SafeDisc.cs index e603fcbe..a3955cfc 100644 --- a/BurnOutSharp/ProtectionType/SafeDisc.cs +++ b/BurnOutSharp/ProtectionType/SafeDisc.cs @@ -20,7 +20,7 @@ namespace BurnOutSharp.ProtectionType new PathMatch("CLCD32.DLL", useEndsWith: true), new PathMatch("CLOKSPL.EXE", useEndsWith: true), new PathMatch(".icd", useEndsWith: true), - }, "SafeDisc 1"), + }, "SafeDisc 1/Lite"), new PathMatchSet(new List { @@ -34,6 +34,9 @@ namespace BurnOutSharp.ProtectionType new PathMatchSet(new PathMatch("DPLAYERX.DLL", useEndsWith: true), GetDPlayerXVersion, "SafeDisc (dplayerx.dll)"), new PathMatchSet(new PathMatch("drvmgt.dll", useEndsWith: true), GetDrvmgtVersion, "SafeDisc (drvmgt.dll)"), new PathMatchSet(new PathMatch("secdrv.sys", useEndsWith: true), GetSecdrvVersion, "SafeDisc (secdrv.sys)"), + + new PathMatchSet(new PathMatch("00000001.LT1", useEndsWith: true), "SafeDisc Lite"), + new PathMatchSet(".SafeDiscDVD.bundle", "SafeDisc for Macintosh"), }; diff --git a/BurnOutSharp/ProtectionType/SafeDiscLite.cs b/BurnOutSharp/ProtectionType/SafeDiscLite.cs deleted file mode 100644 index 2a599434..00000000 --- a/BurnOutSharp/ProtectionType/SafeDiscLite.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System.Collections.Concurrent; -using System.Collections.Generic; -using BurnOutSharp.Matching; - -namespace BurnOutSharp.ProtectionType -{ - public class SafeDiscLite : IPathCheck - { - /// - public ConcurrentQueue CheckDirectoryPath(string path, IEnumerable files) - { - var matchers = new List - { - new PathMatchSet(new PathMatch("00000001.LT1", useEndsWith: true), "SafeDisc Lite"), - }; - - return MatchUtil.GetAllMatches(files, matchers, any: true); - } - - /// - public string CheckFilePath(string path) - { - var matchers = new List - { - new PathMatchSet(new PathMatch("00000001.LT1", useEndsWith: true), "SafeDisc Lite"), - }; - - return MatchUtil.GetFirstMatch(path, matchers, any: true); - } - } -}