Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/Winlock.cs
2021-03-23 13:35:12 -07:00

31 lines
879 B
C#

using System.Collections.Generic;
using BurnOutSharp.Matching;
namespace BurnOutSharp.ProtectionType
{
public class Winlock : IPathCheck
{
/// <inheritdoc/>
public List<string> CheckDirectoryPath(string path, IEnumerable<string> files)
{
var matchers = new List<PathMatchSet>
{
new PathMatchSet(new PathMatch("WinLock.PSX", useEndsWith: true), "Winlock"),
};
return MatchUtil.GetAllMatches(files, matchers, any: true);
}
/// <inheritdoc/>
public string CheckFilePath(string path)
{
var matchers = new List<PathMatchSet>
{
new PathMatchSet(new PathMatch("WinLock.PSX", useEndsWith: true), "Winlock"),
};
return MatchUtil.GetFirstMatch(path, matchers, any: true);
}
}
}