Modlist image will now be included in output

This commit is contained in:
erri120 2019-10-07 16:57:13 +02:00
parent bcf4705816
commit 444966ea7b
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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;