Slight cleanup of CDS

This commit is contained in:
Matt Nadareski
2022-08-21 20:36:37 -07:00
parent e2492c9e5b
commit 9fa1ef1d2e

View File

@@ -92,7 +92,7 @@ namespace BurnOutSharp.ProtectionType
new PathMatchSet(new PathMatch("wmmp.exe", useEndsWith: true), "Cactus Data Shield 200"),
// Present on CDS-300, as well as SafeDisc. This is likely due to both protections being created by Macrovision.
new PathMatchSet(new PathMatch("00000001.TMP", useEndsWith: true), Get00000001TMPVersion, "Cactus Data Shield 300 (Confirm presence of other CDS-300 files)"),
new PathMatchSet(new PathMatch("00000001.TMP", useEndsWith: true), Get00000001TMPVersion, "Cactus Data Shield 300"),
};
return MatchUtil.GetFirstMatch(path, matchers, any: true);
@@ -109,13 +109,12 @@ namespace BurnOutSharp.ProtectionType
switch (fi.Length)
{
case 2_048:
return "";
return "(Confirm presence of other CDS-300 files)";
default:
return null;
}
}
public static string GetVersion(string firstMatchedString, IEnumerable<string> files)
{
// Find the version.txt file first