Added WabbajackVersion field to Modlists

This commit is contained in:
erri120 2019-10-23 18:13:41 +02:00
parent 1b624b1d9f
commit 50e9c1a07f
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@ using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using VFS;
@ -274,6 +275,7 @@ namespace Wabbajack.Lib
ModList = new ModList
{
GameType = GameRegistry.Games.Values.First(f => f.MO2Name == MO2Ini.General.gameName).Game,
WabbajackVersion = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location),
Archives = SelectedArchives,
Directives = InstallDirectives,
Name = ModListName ?? MO2Profile,

View File

@ -1,6 +1,7 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Compression.BSA;
using VFS;
using Wabbajack.Common;
@ -46,6 +47,11 @@ namespace Wabbajack.Lib
/// </summary>
public Game GameType;
/// <summary>
/// The build version of Wabbajack used when compiling the Modlist
/// </summary>
public FileVersionInfo WabbajackVersion;
/// <summary>
/// Install directives
/// </summary>