From 28a4f7ce8228cbbe2346b450c07525d0e1eb7618 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 22 Mar 2021 22:09:35 -0700 Subject: [PATCH] File path should only get first match --- BurnOutSharp/ProtectionType/AACS.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BurnOutSharp/ProtectionType/AACS.cs b/BurnOutSharp/ProtectionType/AACS.cs index 19846671..ca282f63 100644 --- a/BurnOutSharp/ProtectionType/AACS.cs +++ b/BurnOutSharp/ProtectionType/AACS.cs @@ -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 files)