summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-06 10:30:25 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-06 10:30:25 -0500
commitf9aa76e41f84ff9ec70dc9bf5178f50617e45424 (patch)
tree11b94db45b62a2fa6dcd6fbc4fdcb1b8fa6caba6 /src/StardewModdingAPI/Program.cs
parent07d0dc38ca210a82264841fd7fe8d2040acee61d (diff)
downloadSMAPI-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.cs6
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