Skip to content

Commit 7df59d4

Browse files
pardeikeFluffierThanThou
authored andcommitted
Add <tags></tags> to manifest (#1)
This change allows to add tags to the Manifest.xml file in order to parse them out for automatic upload tagging to steam
1 parent 798176a commit 7df59d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/ModManager/Manifest/Manifest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class Manifest
1919
private string version;
2020
private ModMetaData mod;
2121
public Version Version { get; private set; }
22+
public List<string> tags = new List<string>();
2223
public string identifier;
2324
public List<Dependency> dependencies = new List<Dependency>();
2425
public List<Dependency> incompatibleWith = new List<Dependency>();
@@ -272,6 +273,8 @@ public List<ModIssue> LoadOrderIssues
272273
public override string ToString()
273274
{
274275
var str = $"Manifest for: {mod.Name} ({Version?.ToString() ?? "unknown" })";
276+
if (!tags.NullOrEmpty())
277+
tags.ForEach(d => str += $"\n\ttag: {d}");
275278
if ( ManifestUri != null ) str += $"\n\tmanifestUri: {ManifestUri}";
276279
if (DownloadUri != null ) str += $"\n\tdownloadUri: {DownloadUri}";
277280
if (!dependencies.NullOrEmpty())

0 commit comments

Comments
 (0)