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/Config.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/Config.cs')
-rw-r--r-- | src/StardewModdingAPI/Config.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Config.cs b/src/StardewModdingAPI/Config.cs index 91503a83..326685c1 100644 --- a/src/StardewModdingAPI/Config.cs +++ b/src/StardewModdingAPI/Config.cs @@ -3,6 +3,7 @@ using System.IO; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using StardewModdingAPI.Framework; namespace StardewModdingAPI { @@ -107,7 +108,7 @@ namespace StardewModdingAPI /// <summary>Construct an instance.</summary> protected Config() { - Program.DeprecationManager.Warn("the Config class", "1.0"); + Program.DeprecationManager.Warn("the Config class", "1.0", DeprecationLevel.Notice); Program.DeprecationManager.MarkWarned($"{nameof(Mod)}.{nameof(Mod.BaseConfigPath)}", "1.0"); // typically used to construct config, avoid redundant warnings } } |