diff --git a/SPTInstaller/Helpers/PreCheckHelper.cs b/SPTInstaller/Helpers/PreCheckHelper.cs index 15713bf..8180703 100644 --- a/SPTInstaller/Helpers/PreCheckHelper.cs +++ b/SPTInstaller/Helpers/PreCheckHelper.cs @@ -20,7 +20,10 @@ public static class PreCheckHelper ?.GetValue("InstallLocation"); var info = (uninstallStringValue is string key) ? new DirectoryInfo(key) : null; - return info?.FullName; + if (info == null) + return null; + + return Path.TrimEndingDirectorySeparator(info.FullName); } public static Result DetectOriginalGameVersion(string gamePath) diff --git a/SPTInstaller/SPTInstaller.csproj b/SPTInstaller/SPTInstaller.csproj index 5151fb6..cc02ac7 100644 --- a/SPTInstaller/SPTInstaller.csproj +++ b/SPTInstaller/SPTInstaller.csproj @@ -10,8 +10,8 @@ icon.ico Assets\spt_installer.ico Debug;Release;TEST - 2.69 - 2.69 + 2.70 + 2.70 SPT