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;