diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-09 22:12:02 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-09 22:12:02 -0400 |
commit | 3fa71385e57ba45cde17bf70ad7f027a9734665f (patch) | |
tree | fe32b3e6086194b5a677fe8e1e4e7c34a081e445 /src/StardewModdingAPI | |
parent | 494f9366a8e74f40e085581e8f085a03e3fc9e49 (diff) | |
download | SMAPI-3fa71385e57ba45cde17bf70ad7f027a9734665f.tar.gz SMAPI-3fa71385e57ba45cde17bf70ad7f027a9734665f.tar.bz2 SMAPI-3fa71385e57ba45cde17bf70ad7f027a9734665f.zip |
add warning for mods that don't set the UniqueID manifest field
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r-- | src/StardewModdingAPI/Program.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs index a5905805..70b2fbc1 100644 --- a/src/StardewModdingAPI/Program.cs +++ b/src/StardewModdingAPI/Program.cs @@ -501,11 +501,15 @@ namespace StardewModdingAPI this.Monitor.Log($"{skippedPrefix} because its manifest is invalid.", LogLevel.Error); continue; } - if (string.IsNullOrEmpty(manifest.EntryDll)) + + // validate manifest + if (string.IsNullOrWhiteSpace(manifest.EntryDll)) { this.Monitor.Log($"{skippedPrefix} because its manifest doesn't specify an entry DLL.", LogLevel.Error); continue; } + if (string.IsNullOrWhiteSpace(manifest.UniqueID)) + deprecationWarnings.Add(() => this.Monitor.Log($"{manifest.Name} doesn't have a {nameof(IManifest.UniqueID)} in its manifest. This will be required in an upcoming SMAPI release.", LogLevel.Warn)); } catch (Exception ex) { |