Merge pull request 'remove trailing slash from eft game path' (#90) from waffle.lord/Installer:fix/eft-path-ending-slash into master

Reviewed-on: SPT/Installer#90
This commit is contained in:
IsWaffle 2024-06-09 14:52:44 +00:00
commit 074ac6e826
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -10,8 +10,8 @@
<PackageIcon>icon.ico</PackageIcon>
<ApplicationIcon>Assets\spt_installer.ico</ApplicationIcon>
<Configurations>Debug;Release;TEST</Configurations>
<AssemblyVersion>2.69</AssemblyVersion>
<FileVersion>2.69</FileVersion>
<AssemblyVersion>2.70</AssemblyVersion>
<FileVersion>2.70</FileVersion>
<Company>SPT</Company>
</PropertyGroup>