Skip to content

Commit 4c4c72f

Browse files
committed
Only check one section at a time in RenderWare
1 parent 821a853 commit 4c4c72f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

BinaryObjectScanner/GameEngine/RenderWare.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ public class RenderWare : IExecutableCheck<PortableExecutable>
2020
/// <inheritdoc/>
2121
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
2222
{
23+
// TODO: Check if this indicates a specific version, or if these sections are present in multiple.
24+
2325
// Found in Redump entries 20138, 55823, and 102493.
24-
bool rwcsegSection = exe.ContainsSection("_rwcseg", exact: true);
25-
// Found in Redump entry 20138.
26-
bool rwdsegSection = exe.ContainsSection("_rwdseg", exact: true);
26+
if (exe.ContainsSection("_rwcseg", exact: true))
27+
return "RenderWare";
2728

28-
// TODO: Check if this indicates a specific version, or if these sections are present in multiple.
29-
if (rwcsegSection || rwdsegSection)
29+
// Found in Redump entry 20138.
30+
if (exe.ContainsSection("_rwdseg", exact: true))
3031
return "RenderWare";
3132

3233
return null;

0 commit comments

Comments
 (0)