From 444966ea7bf2ab66888dfa06776d97234580c9b1 Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 7 Oct 2019 16:57:13 +0200 Subject: [PATCH] Modlist image will now be included in output --- Wabbajack/Compiler.cs | 3 ++- Wabbajack/ModlistPropertiesWindow.xaml.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Wabbajack/Compiler.cs b/Wabbajack/Compiler.cs index 97018b90..d1cb1111 100644 --- a/Wabbajack/Compiler.cs +++ b/Wabbajack/Compiler.cs @@ -285,9 +285,10 @@ namespace Wabbajack Name = ModListName ?? MO2Profile, Author = ModListAuthor ?? "", Description = ModListDescription ?? "", - Image = ModListImage, + Image = Path.GetFileName(ModListImage), Website = ModListWebsite ?? "" }; + if(File.Exists(ModListImage)) File.Copy(ModListImage, Path.Combine(ModListOutputFolder, Path.GetFileName(ModListImage))); ValidateModlist.RunValidation(ModList); diff --git a/Wabbajack/ModlistPropertiesWindow.xaml.cs b/Wabbajack/ModlistPropertiesWindow.xaml.cs index 987cae4d..2d91279f 100644 --- a/Wabbajack/ModlistPropertiesWindow.xaml.cs +++ b/Wabbajack/ModlistPropertiesWindow.xaml.cs @@ -61,7 +61,7 @@ namespace Wabbajack string modListDescription = ModlistDescriptionProperty.Text; string modListWebsite = ModlistWebsiteProperty.Text; - state.newImagePath = System.IO.Path.GetFileName(newBannerFile); + state.newImagePath = newBannerFile; state.SplashScreenImage = splashScreen; state.SplashScreenModName = modListName; state.SplashScreenSummary = modListDescription;