diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-06 10:30:25 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-11-06 10:30:25 -0500 |
commit | f9aa76e41f84ff9ec70dc9bf5178f50617e45424 (patch) | |
tree | 11b94db45b62a2fa6dcd6fbc4fdcb1b8fa6caba6 /src/StardewModdingAPI/Program.cs | |
parent | 07d0dc38ca210a82264841fd7fe8d2040acee61d (diff) | |
download | SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.tar.gz SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.tar.bz2 SMAPI-f9aa76e41f84ff9ec70dc9bf5178f50617e45424.zip |
use more nuanced deprecation warnings (#165)
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r-- | src/StardewModdingAPI/Program.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs index 3831e3d4..d44dc81b 100644 --- a/src/StardewModdingAPI/Program.cs +++ b/src/StardewModdingAPI/Program.cs @@ -272,7 +272,7 @@ namespace StardewModdingAPI // log deprecated fields if(manifest.UsedAuthourField) - Program.DeprecationManager.Warn(manifest.Name, $"{nameof(Manifest)}.{nameof(Manifest.Authour)}", "1.0"); + Program.DeprecationManager.Warn(manifest.Name, $"{nameof(Manifest)}.{nameof(Manifest.Authour)}", "1.0", DeprecationLevel.Notice); } catch (Exception ex) { @@ -283,7 +283,7 @@ namespace StardewModdingAPI // create per-save directory if (manifest.PerSaveConfigs) { - Program.DeprecationManager.Warn($"{nameof(Manifest)}.{nameof(Manifest.PerSaveConfigs)}", "1.0"); + Program.DeprecationManager.Warn($"{nameof(Manifest)}.{nameof(Manifest.PerSaveConfigs)}", "1.0", DeprecationLevel.Notice); try { string psDir = Path.Combine(directory, "psconfigs"); @@ -333,7 +333,7 @@ namespace StardewModdingAPI // raise deprecation warning for old Entry() method if (Program.DeprecationManager.IsVirtualMethodImplemented(modEntryType, typeof(Mod), nameof(Mod.Entry))) - Program.DeprecationManager.Warn(manifest.Name, $"an old version of {nameof(Mod)}.{nameof(Mod.Entry)}", "1.0"); + Program.DeprecationManager.Warn(manifest.Name, $"an old version of {nameof(Mod)}.{nameof(Mod.Entry)}", "1.0", DeprecationLevel.Notice); } } else |