From e1fb1c7bcffe60068ba65d499163061dd4ac9c69 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 26 Oct 2020 22:22:46 -0700 Subject: [PATCH] Minor renaming --- BurnOutSharp/ProtectionType/Key2AudioXS.cs | 4 ++-- BurnOutSharp/ProtectionType/XCP.cs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BurnOutSharp/ProtectionType/Key2AudioXS.cs b/BurnOutSharp/ProtectionType/Key2AudioXS.cs index 1df40ed2..5384ad48 100644 --- a/BurnOutSharp/ProtectionType/Key2AudioXS.cs +++ b/BurnOutSharp/ProtectionType/Key2AudioXS.cs @@ -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"; } } diff --git a/BurnOutSharp/ProtectionType/XCP.cs b/BurnOutSharp/ProtectionType/XCP.cs index e84c172a..2120230f 100644 --- a/BurnOutSharp/ProtectionType/XCP.cs +++ b/BurnOutSharp/ProtectionType/XCP.cs @@ -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 {