Skip to content

Commit a55e490

Browse files
committed
Add Reflexive Arcade path checks
1 parent d316edf commit a55e490

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

BinaryObjectScanner/Packer/ReflexiveArcadeInstaller.cs

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
using System.Collections.Generic;
12
using BinaryObjectScanner.Interfaces;
3+
using SabreTools.Matching;
4+
using SabreTools.Matching.Paths;
25
using SabreTools.Serialization.Wrappers;
36

47
namespace BinaryObjectScanner.Packer
58
{
69
/// <summary>
710
/// Reflexive Arcade Installer
811
/// </summary>
9-
public class ReflexiveArcadeInstaller : IExecutableCheck<PortableExecutable>
12+
public class ReflexiveArcadeInstaller : IExecutableCheck<PortableExecutable>, IPathCheck
1013
{
1114
/// <inheritdoc/>
1215
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
@@ -26,5 +29,27 @@ public class ReflexiveArcadeInstaller : IExecutableCheck<PortableExecutable>
2629

2730
return null;
2831
}
32+
33+
/// <inheritdoc/>
34+
public List<string> CheckDirectoryPath(string path, List<string>? files)
35+
{
36+
var matchers = new List<PathMatchSet>
37+
{
38+
new(new FilePathMatch("ReflexiveArcade.dll"), "Reflexive Arcade Installer"),
39+
};
40+
41+
return MatchUtil.GetAllMatches(files, matchers, any: true);
42+
}
43+
44+
/// <inheritdoc/>
45+
public string? CheckFilePath(string path)
46+
{
47+
var matchers = new List<PathMatchSet>
48+
{
49+
new(new FilePathMatch("ReflexiveArcade.dll"), "Reflexive Arcade Installer"),
50+
};
51+
52+
return MatchUtil.GetFirstMatch(path, matchers, any: true);
53+
}
2954
}
3055
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Below is a list of executable packers detected by BinaryObjectScanner. The three
171171
| PECompact | Yes | No | No | |
172172
| PEtite | Yes | No | No | |
173173
| PKLITE32 | Yes | No | No | |
174-
| Reflexive Arcade Installer | Yes | No | No | |
174+
| Reflexive Arcade Installer | Yes | Yes | No | |
175175
| Setup Factory | Yes | No | No | |
176176
| Shrinker | Yes | No | No | |
177177
| Smart Install Maker | Yes | No | No | |

0 commit comments

Comments
 (0)