mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed Version and NSFW fields to being saved
This commit is contained in:
parent
5d71fc4618
commit
9571ce03c6
@ -326,6 +326,7 @@ namespace Wabbajack.Lib
|
||||
Readme = ModlistReadme ?? "",
|
||||
Image = ModListImage != default ? ModListImage.FileName : default,
|
||||
Website = !string.IsNullOrWhiteSpace(ModListWebsite) ? new Uri(ModListWebsite) : null,
|
||||
Version = ModlistVersion ?? new Version(1,0,0,0),
|
||||
IsNSFW = ModlistIsNSFW
|
||||
};
|
||||
|
||||
|
@ -25,6 +25,8 @@ namespace Wabbajack.Lib
|
||||
public long DownloadSize;
|
||||
public long InstallSize;
|
||||
|
||||
public bool IsNSFW;
|
||||
|
||||
public List<Archive> Archives;
|
||||
|
||||
public Manifest(ModList modlist)
|
||||
@ -43,6 +45,8 @@ namespace Wabbajack.Lib
|
||||
DownloadSize = modlist.DownloadSize;
|
||||
InstallSize = modlist.InstallSize;
|
||||
|
||||
IsNSFW = modlist.IsNSFW;
|
||||
|
||||
// meta is being omitted due to it being useless and not very space friendly
|
||||
Archives = modlist.Archives.Select(a => new Archive(a.State)
|
||||
{
|
||||
|
@ -188,7 +188,8 @@ namespace Wabbajack
|
||||
ModListWebsite = ModlistSettings.Website,
|
||||
ModlistReadme = ModlistSettings.Readme,
|
||||
MO2DownloadsFolder = DownloadLocation.TargetPath,
|
||||
ModlistVersion = ModlistSettings.Version
|
||||
ModlistVersion = ModlistSettings.Version,
|
||||
ModlistIsNSFW = ModlistSettings.IsNSFW
|
||||
})
|
||||
{
|
||||
Parent.MWVM.Settings.Performance.AttachToBatchProcessor(ActiveCompilation);
|
||||
|
Loading…
Reference in New Issue
Block a user