summaryrefslogtreecommitdiff
path: root/StardewModdingAPI
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-23 04:32:41 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-23 04:32:41 -0400
commit598faa18612469471333592699c07c41fe730a5a (patch)
tree42f2989db490a1800ab0dba2468057397f2008f6 /StardewModdingAPI
parente26db4415bf24f12c32841507b1a8a170cf6039c (diff)
downloadSMAPI-598faa18612469471333592699c07c41fe730a5a.tar.gz
SMAPI-598faa18612469471333592699c07c41fe730a5a.tar.bz2
SMAPI-598faa18612469471333592699c07c41fe730a5a.zip
logging
Diffstat (limited to 'StardewModdingAPI')
-rw-r--r--StardewModdingAPI/Config.cs4
-rw-r--r--StardewModdingAPI/Mod.cs1
-rw-r--r--StardewModdingAPI/Program.cs4
3 files changed, 8 insertions, 1 deletions
diff --git a/StardewModdingAPI/Config.cs b/StardewModdingAPI/Config.cs
index e0e1e164..62c26ca4 100644
--- a/StardewModdingAPI/Config.cs
+++ b/StardewModdingAPI/Config.cs
@@ -194,6 +194,8 @@ namespace StardewModdingAPI
[Obsolete]
public partial class Config
{
+ [Obsolete] public static int invalids = 0;
+
[JsonIgnore]
[Obsolete]
public virtual JObject JObject { get; protected set; }
@@ -201,6 +203,8 @@ namespace StardewModdingAPI
[Obsolete]
public static Config InitializeConfig(string configLocation, Config baseConfig)
{
+ invalids++;
+
if (string.IsNullOrEmpty(configLocation))
{
Log.Verbose("The location to save the config to must not be empty.");
diff --git a/StardewModdingAPI/Mod.cs b/StardewModdingAPI/Mod.cs
index b62a11c7..694499f7 100644
--- a/StardewModdingAPI/Mod.cs
+++ b/StardewModdingAPI/Mod.cs
@@ -33,7 +33,6 @@ namespace StardewModdingAPI
[Obsolete]
public virtual string Description { get; set; }
-
/// <summary>
/// The mod's manifest
/// </summary>
diff --git a/StardewModdingAPI/Program.cs b/StardewModdingAPI/Program.cs
index e7055ebf..5a226b1d 100644
--- a/StardewModdingAPI/Program.cs
+++ b/StardewModdingAPI/Program.cs
@@ -358,6 +358,10 @@ namespace StardewModdingAPI
}
}
StardewModdingAPI.Log.Success("LOADED {0} MODS", Constants.ModsLoaded);
+ if (Config.invalids > 0)
+ {
+ StardewModdingAPI.Log.Error("LOADED {0} MODS THAT HAVE INVALID CONFIG INIT CALLS\n\tTHESE MODS NEED TO UPDATE", Config.invalids);
+ }
Console.Title = Constants.ConsoleTitle;
}