mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Changed version type to string
This commit is contained in:
parent
b42c2fcd3c
commit
9515947734
@ -34,7 +34,7 @@ namespace Wabbajack.Lib
|
|||||||
|
|
||||||
public string MO2Profile;
|
public string MO2Profile;
|
||||||
public string ModListName, ModListAuthor, ModListDescription, ModListWebsite, ModListImage, ModListReadme;
|
public string ModListName, ModListAuthor, ModListDescription, ModListWebsite, ModListImage, ModListReadme;
|
||||||
public FileVersionInfo WabbajackVersionInfo;
|
public string WabbajackVersion;
|
||||||
|
|
||||||
public Compiler(string mo2_folder)
|
public Compiler(string mo2_folder)
|
||||||
{
|
{
|
||||||
@ -276,7 +276,7 @@ namespace Wabbajack.Lib
|
|||||||
ModList = new ModList
|
ModList = new ModList
|
||||||
{
|
{
|
||||||
GameType = GameRegistry.Games.Values.First(f => f.MO2Name == MO2Ini.General.gameName).Game,
|
GameType = GameRegistry.Games.Values.First(f => f.MO2Name == MO2Ini.General.gameName).Game,
|
||||||
WabbajackVersion = WabbajackVersionInfo,
|
WabbajackVersion = WabbajackVersion,
|
||||||
Archives = SelectedArchives,
|
Archives = SelectedArchives,
|
||||||
Directives = InstallDirectives,
|
Directives = InstallDirectives,
|
||||||
Name = ModListName ?? MO2Profile,
|
Name = ModListName ?? MO2Profile,
|
||||||
|
@ -50,7 +50,7 @@ namespace Wabbajack.Lib
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The build version of Wabbajack used when compiling the Modlist
|
/// The build version of Wabbajack used when compiling the Modlist
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public FileVersionInfo WabbajackVersion;
|
public string WabbajackVersion;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Install directives
|
/// Install directives
|
||||||
|
@ -47,7 +47,7 @@ namespace Wabbajack.Lib
|
|||||||
public void Build(Compiler c, ModList lst)
|
public void Build(Compiler c, ModList lst)
|
||||||
{
|
{
|
||||||
Text($"### {lst.Name} by {lst.Author} - Installation Summary");
|
Text($"### {lst.Name} by {lst.Author} - Installation Summary");
|
||||||
Text($"Build with Wabbajack Version {lst.WabbajackVersion.FileVersion}");
|
Text($"Build with Wabbajack Version {lst.WabbajackVersion}");
|
||||||
Text(lst.Description);
|
Text(lst.Description);
|
||||||
Text($"#### Website:");
|
Text($"#### Website:");
|
||||||
NoWrapText($"[{lst.Website}]({lst.Website})");
|
NoWrapText($"[{lst.Website}]({lst.Website})");
|
||||||
|
@ -34,7 +34,7 @@ namespace Wabbajack
|
|||||||
{
|
{
|
||||||
public SlideShow Slideshow { get; }
|
public SlideShow Slideshow { get; }
|
||||||
|
|
||||||
public readonly FileVersionInfo WabbajackVersionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location);
|
public readonly string WabbajackVersion = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).FileVersion;
|
||||||
|
|
||||||
private string _mo2Folder;
|
private string _mo2Folder;
|
||||||
|
|
||||||
@ -295,15 +295,15 @@ namespace Wabbajack
|
|||||||
HTMLReport = this.ModList.ReportHTML;
|
HTMLReport = this.ModList.ReportHTML;
|
||||||
Location = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
Location = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||||
|
|
||||||
var currentWJVersion = new Version(WabbajackVersionInfo.FileVersion);
|
var currentWJVersion = new Version(WabbajackVersion);
|
||||||
var modlistWJVersion = new Version(modlist.WabbajackVersion.FileVersion);
|
var modlistWJVersion = new Version(modlist.WabbajackVersion);
|
||||||
|
|
||||||
if (currentWJVersion > modlistWJVersion)
|
if (currentWJVersion > modlistWJVersion)
|
||||||
{
|
{
|
||||||
MessageBox.Show(
|
MessageBox.Show(
|
||||||
"The selected Modlist was build with an earlier version of Wabbajack. " +
|
"The selected Modlist was build with an earlier version of Wabbajack. " +
|
||||||
$"Current Version: {WabbajackVersionInfo.FileVersion}, " +
|
$"Current Version: {WabbajackVersion}, " +
|
||||||
$"Version used to build the Modlist: {modlist.WabbajackVersion.FileVersion}",
|
$"Version used to build the Modlist: {modlist.WabbajackVersion}",
|
||||||
"Information",
|
"Information",
|
||||||
MessageBoxButton.OK);
|
MessageBoxButton.OK);
|
||||||
}
|
}
|
||||||
@ -311,8 +311,8 @@ namespace Wabbajack
|
|||||||
{
|
{
|
||||||
MessageBox.Show(
|
MessageBox.Show(
|
||||||
"The selected Modlist was build with a newer version of Wabbajack. " +
|
"The selected Modlist was build with a newer version of Wabbajack. " +
|
||||||
$"Current Version: {WabbajackVersionInfo.FileVersion}, " +
|
$"Current Version: {WabbajackVersion}, " +
|
||||||
$"Version used to build the Modlist: {modlist.WabbajackVersion.FileVersion}",
|
$"Version used to build the Modlist: {modlist.WabbajackVersion}",
|
||||||
"Information",
|
"Information",
|
||||||
MessageBoxButton.OK);
|
MessageBoxButton.OK);
|
||||||
}
|
}
|
||||||
@ -375,7 +375,7 @@ namespace Wabbajack
|
|||||||
ModListImage = ChangedProperties ? newImagePath : null,
|
ModListImage = ChangedProperties ? newImagePath : null,
|
||||||
ModListWebsite = ChangedProperties ? this.Slideshow.NexusSiteURL : null,
|
ModListWebsite = ChangedProperties ? this.Slideshow.NexusSiteURL : null,
|
||||||
ModListReadme = ChangedProperties ? readmePath : null,
|
ModListReadme = ChangedProperties ? readmePath : null,
|
||||||
WabbajackVersionInfo = WabbajackVersionInfo
|
WabbajackVersion = WabbajackVersion
|
||||||
};
|
};
|
||||||
var th = new Thread(() =>
|
var th = new Thread(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user