summaryrefslogtreecommitdiff
path: root/src/SMAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-12 17:34:40 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-12 17:34:40 -0400
commit5de6569bb1e63727e632d6459309b955e7ab7d5c (patch)
tree6ea2e1af38c413211d86537da8f0f16ae4cdcf6f /src/SMAPI/Program.cs
parentccd09eb9143bee60bfdc4182c3a7505fabddbe48 (diff)
downloadSMAPI-5de6569bb1e63727e632d6459309b955e7ab7d5c.tar.gz
SMAPI-5de6569bb1e63727e632d6459309b955e7ab7d5c.tar.bz2
SMAPI-5de6569bb1e63727e632d6459309b955e7ab7d5c.zip
minor cleanup
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r--src/SMAPI/Program.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 1612ff11..e335b68e 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -97,6 +97,12 @@ namespace StardewModdingAPI
new Regex(@"^DebugOutput: added CLOUD", RegexOptions.Compiled | RegexOptions.CultureInvariant)
};
+ /// <summary>The mod IDs for which to not show missing update key warnings.</summary>
+ private readonly string[] AllowMissingUpdateKeys =
+ {
+ "SMAPI.ConsoleCommands"
+ };
+
/// <summary>Encapsulates SMAPI's JSON file parsing.</summary>
private readonly JsonHelper JsonHelper = new JsonHelper();
@@ -783,7 +789,7 @@ namespace StardewModdingAPI
: $" {metadata.DisplayName}...", LogLevel.Trace);
// show warnings
- if (metadata.HasManifest() && !metadata.HasUpdateKeys() && metadata.Manifest.UniqueID != "SMAPI.ConsoleCommands")
+ if (metadata.HasManifest() && !metadata.HasUpdateKeys() && !this.AllowMissingUpdateKeys.Contains(metadata.Manifest.UniqueID))
this.Monitor.Log($" {metadata.DisplayName} has no {nameof(IManifest.UpdateKeys)} in its manifest. You may not see update alerts for this mod.", LogLevel.Warn);
// validate status