Adding author field to addon.json.
parent
f67b95007a
commit
bd22f08ecf
|
@ -230,6 +230,7 @@ namespace GarrysMod.AddonCreator
|
|||
|
||||
// Extract data from addon.json
|
||||
Title = addonJson.Title;
|
||||
Author = addonJson.Author;
|
||||
Description = string.IsNullOrEmpty(addonJson.Description) ? string.Empty : addonJson.Description;
|
||||
Version = addonJson.Version;
|
||||
|
||||
|
|
|
@ -31,6 +31,9 @@ namespace GarrysMod.AddonCreator
|
|||
[JsonProperty("version")]
|
||||
public int Version { get; set; }
|
||||
|
||||
[JsonProperty("author")]
|
||||
public string Author { get; set; }
|
||||
|
||||
internal void CheckForErrors()
|
||||
{
|
||||
if (string.IsNullOrEmpty(Title))
|
||||
|
|
Loading…
Reference in New Issue