Minor renaming

This commit is contained in:
Matt Nadareski
2020-10-26 22:22:46 -07:00
parent 095de1441d
commit e1fb1c7bcf
2 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ namespace BurnOutSharp.ProtectionType
if (files.Any(f => Path.GetFileName(f).Equals("SDKHM.EXE", StringComparison.OrdinalIgnoreCase))
|| files.Any(f => Path.GetFileName(f).Equals("SDKHM.DLL", StringComparison.OrdinalIgnoreCase)))
{
return "Key2Audio XS";
return "key2AudioXS";
}
}
else
@@ -23,7 +23,7 @@ namespace BurnOutSharp.ProtectionType
if (Path.GetFileName(path).Equals("SDKHM.EXE", StringComparison.OrdinalIgnoreCase)
|| Path.GetFileName(path).Equals("SDKHM.DLL", StringComparison.OrdinalIgnoreCase))
{
return "Key2Audio XS";
return "key2AudioXS";
}
}

View File

@@ -33,10 +33,10 @@ namespace BurnOutSharp.ProtectionType
if (isDirectory)
{
// INI-like file that can be parsed out
string xcpDatPath = files.FirstOrDefault(f => Path.GetFileName(f).Equals("VERSION.DAT", StringComparison.OrdinalIgnoreCase));
if (!string.IsNullOrWhiteSpace(xcpDatPath))
string versionDatPath = files.FirstOrDefault(f => Path.GetFileName(f).Equals("VERSION.DAT", StringComparison.OrdinalIgnoreCase));
if (!string.IsNullOrWhiteSpace(versionDatPath))
{
string xcpVersion = GetXCPVersion(xcpDatPath);
string xcpVersion = GetDatVersion(versionDatPath);
if (!string.IsNullOrWhiteSpace(xcpVersion))
return xcpVersion;
}
@@ -54,7 +54,7 @@ namespace BurnOutSharp.ProtectionType
// INI-like file that can be parsed out
if (Path.GetFileName(path).Equals("VERSION.DAT", StringComparison.OrdinalIgnoreCase))
{
string xcpVersion = GetXCPVersion(path);
string xcpVersion = GetDatVersion(path);
if (!string.IsNullOrWhiteSpace(xcpVersion))
return xcpVersion;
}
@@ -70,7 +70,7 @@ namespace BurnOutSharp.ProtectionType
return null;
}
private static string GetXCPVersion(string path)
private static string GetDatVersion(string path)
{
try
{