From a909013a8622677d85fc08906030b0bde30a201f Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Sun, 9 Jun 2024 10:43:43 -0400 Subject: [PATCH] remove trailing slash from eft game path --- SPTInstaller/Helpers/PreCheckHelper.cs | 5 ++++- SPTInstaller/SPTInstaller.csproj | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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