diff --git a/BurnOutSharp/ProtectionType/AACS.cs b/BurnOutSharp/ProtectionType/AACS.cs index ca282f63..0d3e0436 100644 --- a/BurnOutSharp/ProtectionType/AACS.cs +++ b/BurnOutSharp/ProtectionType/AACS.cs @@ -37,14 +37,14 @@ namespace BurnOutSharp.ProtectionType return MatchUtil.GetFirstMatch(path, matchers, any: true); } - public static string GetVersion(string path, IEnumerable files) + public static string GetVersion(string firstMatchedString, IEnumerable files) { - if (!File.Exists(path)) + if (!File.Exists(firstMatchedString)) return "(Unknown Version)"; try { - using (var fs = File.OpenRead(path)) + using (var fs = File.OpenRead(firstMatchedString)) { fs.Seek(0xB, SeekOrigin.Begin); return fs.ReadByte().ToString();