diff --git a/CHANGELOG.md b/CHANGELOG.md index 502f36d05..311c4ef0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ### Changelog +#### Version - TBD +* Wabbajack will now put modfile Titles, Description and Version into the `.meta` file. + #### Version - 3.7.2.1 - 9/1/2024 * Fixed a bug with the html reports when in a folder with a space in the name diff --git a/Wabbajack.Downloaders.Nexus/NexusDownloader.cs b/Wabbajack.Downloaders.Nexus/NexusDownloader.cs index 1168cb5c1..bcf230441 100644 --- a/Wabbajack.Downloaders.Nexus/NexusDownloader.cs +++ b/Wabbajack.Downloaders.Nexus/NexusDownloader.cs @@ -237,9 +237,14 @@ public static string FixupSummary(string? argSummary) public override IEnumerable MetaIni(Archive a, Nexus state) { var meta = state.Game.MetaData(); + // modid, fileid and gamename are givens - they will always be there even if manually constructed metas + // the others may not - they should if queried from Nexus, but not guaranteed + var NameNull = (state.Name is not null) ? state.Name : string.Empty; + var DescriptionNull = (state.Description is not null) ? state.Description : string.Empty; + var VersionNull = (state.Version is not null) ? state.Version : string.Empty; return new[] { - $"gameName={meta.MO2ArchiveName ?? meta.NexusName}", $"modID={state.ModID}", $"fileID={state.FileID}" + $"gameName={meta.MO2ArchiveName ?? meta.NexusName}", $"modID={state.ModID}",$"modName={NameNull}",$"description={DescriptionNull}",$"version={VersionNull}", $"fileID={state.FileID}" }; } } \ No newline at end of file