mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-14 13:46:03 +00:00
Be consistent with var naming
This commit is contained in:
@@ -37,14 +37,14 @@ namespace BurnOutSharp.ProtectionType
|
||||
return MatchUtil.GetFirstMatch(path, matchers, any: true);
|
||||
}
|
||||
|
||||
public static string GetVersion(string path, IEnumerable<string> files)
|
||||
public static string GetVersion(string firstMatchedString, IEnumerable<string> 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();
|
||||
|
||||
Reference in New Issue
Block a user