Skip to content

Commit

Permalink
Switched version display to show file version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Oct 12, 2020
1 parent d125f5b commit 671d77f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Synthesis.Bethesda.GUI/ViewModels/MainVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Noggog;
using Mutagen.Bethesda;
using Synthesis.Bethesda.Execution.Settings;
using System.Diagnostics;

namespace Synthesis.Bethesda.GUI
{
Expand Down Expand Up @@ -87,8 +88,8 @@ public MainVM()

Task.Run(() => Mutagen.Bethesda.WarmupAll.Init()).FireAndForget();

SynthesisVersion = typeof(Synthesis.Bethesda.Constants).Assembly.GetName().Version!.ToString().TrimEnd(".0").TrimEnd(".0");
MutagenVersion = typeof(FormKey).Assembly.GetName().Version!.ToString().TrimEnd(".0").TrimEnd(".0");
SynthesisVersion = FileVersionInfo.GetVersionInfo(typeof(Synthesis.Bethesda.Constants).Assembly.Location)!.ProductVersion.TrimEnd(".0").TrimEnd(".0");
MutagenVersion = FileVersionInfo.GetVersionInfo(typeof(FormKey).Assembly.Location)!.ProductVersion.TrimEnd(".0").TrimEnd(".0");
}

public void Load(SynthesisGuiSettings? guiSettings, PipelineSettings? pipeSettings)
Expand Down

0 comments on commit 671d77f

Please sign in to comment.