Skip to content

Commit 82412fc

Browse files
committed
Add more ProtectCD/DVD checks (fixes #387)
1 parent 1a67dec commit 82412fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

BinaryObjectScanner/Protection/ProtectDISC.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Text;
44
using BinaryObjectScanner.Interfaces;
55
using SabreTools.IO;
6+
using SabreTools.IO.Extensions;
67
using SabreTools.IO.Matching;
78
using SabreTools.Serialization.Wrappers;
89

@@ -93,6 +94,18 @@ public class ProtectDISC : IExecutableCheck<PortableExecutable>, IPathCheck
9394
if (exe.ContainsSection(".vob.pcd", exact: true))
9495
return "VOB ProtectCD";
9596

97+
string? name = exe.FileDescription;
98+
99+
// Found in a0016.exe
100+
if (name.OptionalEquals("ProtectCD/DVD Core"))
101+
return "VOB ProtectCD/DVD";
102+
103+
name = exe.AssemblyDescription;
104+
105+
// Found in a0016.exe
106+
if (name.OptionalEquals("SoftShield ProtectCD Localization Helper DLL"))
107+
return "VOB ProtectCD/DVD";
108+
96109
return null;
97110
}
98111

0 commit comments

Comments
 (0)