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:
@ -357,7 +357,10 @@ namespace Wabbajack
|
|||||||
SplashScreenAuthorName = modlist.Author;
|
SplashScreenAuthorName = modlist.Author;
|
||||||
_nexusSiteURL = modlist.Website;
|
_nexusSiteURL = modlist.Website;
|
||||||
SplashScreenSummary = modlist.Description;
|
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
|
SlideShowElements = modlist.Archives.OfType<NexusMod>().Select(m => new SlideShowItem
|
||||||
{
|
{
|
||||||
|
@ -277,7 +277,8 @@ namespace Wabbajack
|
|||||||
GatherArchives();
|
GatherArchives();
|
||||||
BuildPatches();
|
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
|
ModList = new ModList
|
||||||
{
|
{
|
||||||
@ -287,7 +288,7 @@ namespace Wabbajack
|
|||||||
Name = ModListName ?? MO2Profile,
|
Name = ModListName ?? MO2Profile,
|
||||||
Author = ModListAuthor ?? "",
|
Author = ModListAuthor ?? "",
|
||||||
Description = ModListDescription ?? "",
|
Description = ModListDescription ?? "",
|
||||||
Image = Path.Combine("profiles", MO2Profile, Path.GetFileName(ModListImage)),
|
Image = ModListImage != null ? Path.Combine("profiles", MO2Profile, Path.GetFileName(ModListImage)) : "",
|
||||||
Website = ModListWebsite ?? ""
|
Website = ModListWebsite ?? ""
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user