0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-12 13:50:43 -05:00

fix core dll version parse

This commit is contained in:
IsWaffle 2024-07-12 15:21:43 -04:00
parent c121b7fee7
commit 1d7c232bb4
2 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ namespace SPT.Launcher
{
var serverVersion = new SPTVersion(ServerManager.GetVersion());
var coreDllVersionInfo = FileVersionInfo.GetVersionInfo(Path.Combine($"{gamePath}/BepinEx/plugins/spt", "spt-core.dll"));
var coreDllVersionInfo = FileVersionInfo.GetVersionInfo(Path.Join(gamePath, @"\BepinEx\plugins\spt", "spt-core.dll"));
var dllVersion = new SPTVersion(coreDllVersionInfo.FileVersion);
LogManager.Instance.Info($"[LaunchGame] spt-core.dll version: {dllVersion}");

View File

@ -38,7 +38,7 @@ namespace SPT.Launcher.Models.SPT
string[] splitVersion = SPTVersion.Split('.');
if (splitVersion.Length == 3)
if (splitVersion.Length >= 3)
{
int.TryParse(splitVersion[0], out Major);
int.TryParse(splitVersion[1], out Minor);