Files
BinaryObjectScanner/BurnOutSharp/ProtectionType/Bitpool.cs

31 lines
879 B
C#
Raw Normal View History

2021-03-22 22:23:55 -07:00
using System.Collections.Generic;
using BurnOutSharp.Matching;
namespace BurnOutSharp.ProtectionType
{
2021-02-26 00:32:09 -08:00
public class Bitpool : IPathCheck
{
2021-02-26 00:32:09 -08:00
/// <inheritdoc/>
public List<string> CheckDirectoryPath(string path, IEnumerable<string> files)
{
2021-03-22 22:23:55 -07:00
var matchers = new List<PathMatchSet>
{
new PathMatchSet(new PathMatch("bitpool.rsc", useEndsWith: true), "Bitpool"),
};
return MatchUtil.GetAllMatches(files, matchers, any: true);
}
2021-03-19 15:41:49 -07:00
/// <inheritdoc/>
public string CheckFilePath(string path)
{
2021-03-22 22:23:55 -07:00
var matchers = new List<PathMatchSet>
{
new PathMatchSet(new PathMatch("bitpool.rsc", useEndsWith: true), "Bitpool"),
};
return MatchUtil.GetFirstMatch(path, matchers, any: true);
2021-03-19 15:41:49 -07:00
}
}
}