summaryrefslogtreecommitdiff
path: root/StardewModdingAPI
diff options
context:
space:
mode:
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;
}