summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-01 02:00:29 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-01 02:00:29 -0400
commit493696690ae0c52fcd77590b1040b28ebb4cdf77 (patch)
tree2533d854536a241f60a142dc52a1e26f8e2586e8 /src
parent9ab5831eac4ee221f9dcdc645f1b706298426638 (diff)
downloadSMAPI-493696690ae0c52fcd77590b1040b28ebb4cdf77.tar.gz
SMAPI-493696690ae0c52fcd77590b1040b28ebb4cdf77.tar.bz2
SMAPI-493696690ae0c52fcd77590b1040b28ebb4cdf77.zip
fix spelling of 'Authour' manifest field with backwards compatibility (#158)
Diffstat (limited to 'src')
-rw-r--r--src/StardewModdingAPI/Manifest.cs12
-rw-r--r--src/StardewModdingAPI/Program.cs2
-rw-r--r--src/TrainerMod/manifest.json2
3 files changed, 12 insertions, 4 deletions
diff --git a/src/StardewModdingAPI/Manifest.cs b/src/StardewModdingAPI/Manifest.cs
index ed43ab7d..6b1fe650 100644
--- a/src/StardewModdingAPI/Manifest.cs
+++ b/src/StardewModdingAPI/Manifest.cs
@@ -16,7 +16,15 @@ namespace StardewModdingAPI
public virtual string Name { get; set; }
/// <summary>The mod author's name.</summary>
- public virtual string Authour { get; set; }
+ public virtual string Author { get; set; }
+
+ /// <summary>Obsolete.</summary>
+ [Obsolete("Use 'Author'.")]
+ public virtual string Authour
+ {
+ get { return this.Author; }
+ set { this.Author = value; }
+ }
/// <summary>The mod version.</summary>
public virtual Version Version { get; set; }
@@ -41,7 +49,7 @@ namespace StardewModdingAPI
public override T GenerateDefaultConfig<T>()
{
this.Name = "";
- this.Authour = "";
+ this.Author = "";
this.Version = new Version(0, 0, 0, "");
this.Description = "";
this.UniqueID = Guid.NewGuid().ToString();
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index b08d17c2..2ee8c8f5 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -292,7 +292,7 @@ namespace StardewModdingAPI
{
modEntry.PathOnDisk = targDir;
modEntry.Manifest = manifest;
- Log.AsyncG($"LOADED MOD: {modEntry.Manifest.Name} by {modEntry.Manifest.Authour} - Version {modEntry.Manifest.Version} | Description: {modEntry.Manifest.Description} (@ {targDll})");
+ Log.AsyncG($"LOADED MOD: {modEntry.Manifest.Name} by {modEntry.Manifest.Author} - Version {modEntry.Manifest.Version} | Description: {modEntry.Manifest.Description} (@ {targDll})");
Constants.ModsLoaded += 1;
modEntry.Entry();
}
diff --git a/src/TrainerMod/manifest.json b/src/TrainerMod/manifest.json
index 0fb9fa65..6e3d1bbe 100644
--- a/src/TrainerMod/manifest.json
+++ b/src/TrainerMod/manifest.json
@@ -1,6 +1,6 @@
{
"Name": "Trainer Mod",
- "Authour": "Zoryn",
+ "Author": "Zoryn",
"Description": "Registers several commands to use. Most commands are trainer-like in that they offer forms of cheating.",
"EntryDll": "TrainerMod.dll"
} \ No newline at end of file