mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-12 17:30:42 -05:00
fix core dll version parse
This commit is contained in:
parent
c121b7fee7
commit
1d7c232bb4
@ -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}");
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user