Remove unnecessary trims

This commit is contained in:
Matt Nadareski
2021-09-10 13:59:35 -07:00
parent e03808fbc5
commit 1e70d960ba
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ namespace BurnOutSharp.ProtectionType
if (sections == null)
return null;
string name = Utilities.GetFileDescription(pex)?.Trim();
string name = Utilities.GetFileDescription(pex);
if (!string.IsNullOrWhiteSpace(name) && name.StartsWith("DVM Library", StringComparison.OrdinalIgnoreCase))
return $"SolidShield {Utilities.GetFileVersion(pex)}";
else if (!string.IsNullOrWhiteSpace(name) && name.StartsWith("Solidshield Activation Library", StringComparison.OrdinalIgnoreCase))

View File

@@ -28,7 +28,7 @@ namespace BurnOutSharp.ProtectionType
return $"StarForce {Utilities.GetFileVersion(pex)}";
// TODO: Find what fvinfo field actually maps to this
name = Utilities.GetFileDescription(pex).Trim();
name = Utilities.GetFileDescription(pex);
if (!string.IsNullOrWhiteSpace(name) && name.Contains("Protected Module"))
return $"StarForce 5";

View File

@@ -413,7 +413,7 @@ namespace BurnOutSharp
#endregion
}
}
catch
catch (Exception ex)
{
Utilities.AppendToDictionary(protections, file, "[Exception opening file, please try again]");
}