mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed setting image path when no image was null
This commit is contained in:
parent
4560d7b8e6
commit
8ca8ef1d7d
@ -357,7 +357,10 @@ namespace Wabbajack
|
||||
SplashScreenAuthorName = modlist.Author;
|
||||
_nexusSiteURL = modlist.Website;
|
||||
SplashScreenSummary = modlist.Description;
|
||||
//TODO: if(modlist.Image != null) SplashScreenImage = modlist.Image;
|
||||
if(modlist.Image != "")
|
||||
{
|
||||
//TODO: if(modlist.Image != null) SplashScreenImage = modlist.Image;
|
||||
}
|
||||
|
||||
SlideShowElements = modlist.Archives.OfType<NexusMod>().Select(m => new SlideShowItem
|
||||
{
|
||||
|
@ -277,7 +277,8 @@ namespace Wabbajack
|
||||
GatherArchives();
|
||||
BuildPatches();
|
||||
|
||||
if (File.Exists(ModListImage) && !File.Exists(Path.Combine(MO2ProfileDir, Path.GetFileName(ModListImage)))) File.Copy(ModListImage, Path.Combine(MO2ProfileDir, Path.GetFileName(ModListImage)));
|
||||
if(ModList != null)
|
||||
if (File.Exists(ModListImage) && !File.Exists(Path.Combine(MO2ProfileDir, Path.GetFileName(ModListImage)))) File.Copy(ModListImage, Path.Combine(MO2ProfileDir, Path.GetFileName(ModListImage)));
|
||||
|
||||
ModList = new ModList
|
||||
{
|
||||
@ -287,7 +288,7 @@ namespace Wabbajack
|
||||
Name = ModListName ?? MO2Profile,
|
||||
Author = ModListAuthor ?? "",
|
||||
Description = ModListDescription ?? "",
|
||||
Image = Path.Combine("profiles", MO2Profile, Path.GetFileName(ModListImage)),
|
||||
Image = ModListImage != null ? Path.Combine("profiles", MO2Profile, Path.GetFileName(ModListImage)) : "",
|
||||
Website = ModListWebsite ?? ""
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user