mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-20 15:55:15 +00:00
File path should only get first match
This commit is contained in:
@@ -18,7 +18,7 @@ namespace BurnOutSharp.ProtectionType
|
||||
new PathMatchSet(Path.Combine("AACS", "MKBROM.AACS"), GetVersion, "AACS"),
|
||||
};
|
||||
|
||||
var matches = MatchUtil.GetAllMatches(files, matchers, any: true);
|
||||
var matches = MatchUtil.GetFirstMatch(files, matchers, any: true);
|
||||
return string.Join(", ", matches);
|
||||
}
|
||||
|
||||
@@ -34,8 +34,7 @@ namespace BurnOutSharp.ProtectionType
|
||||
new PathMatchSet("MKBROM.AACS", GetVersion, "AACS"),
|
||||
};
|
||||
|
||||
var matches = MatchUtil.GetAllMatches(path, matchers, any: true);
|
||||
return string.Join(", ", matches);
|
||||
return MatchUtil.GetFirstMatch(path, matchers, any: true);
|
||||
}
|
||||
|
||||
public static string GetVersion(string path, IEnumerable<string> files)
|
||||
|
||||
Reference in New Issue
Block a user