diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-11-07 12:04:20 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-11-07 12:04:20 -0500 |
commit | 0b03b4f16a446e4b139efd33f6378598ae66efee (patch) | |
tree | f9165f143f796c7cfebc6d91605c19478f6f4cb2 /src/SMAPI/Framework/SCore.cs | |
parent | 60237f4d39eef619d030bd8f3334a13cbd2caffe (diff) | |
download | SMAPI-0b03b4f16a446e4b139efd33f6378598ae66efee.tar.gz SMAPI-0b03b4f16a446e4b139efd33f6378598ae66efee.tar.bz2 SMAPI-0b03b4f16a446e4b139efd33f6378598ae66efee.zip |
deprecate old manifest version format
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r-- | src/SMAPI/Framework/SCore.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index 3e8766c2..6cb564ce 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -895,6 +895,12 @@ namespace StardewModdingAPI.Framework return false; } + // add deprecation warning for old version format + { + if (mod.Manifest?.Version is Toolkit.SemanticVersion version && version.IsLegacyFormat) + this.DeprecationManager.Warn(mod.DisplayName, "non-string manifest version", "2.8", DeprecationLevel.Notice); + } + // validate dependencies // Although dependences are validated before mods are loaded, a dependency may have failed to load. if (mod.Manifest.Dependencies?.Any() == true) |