This commit is contained in:
Zoryn Aaron 2016-03-23 04:32:41 -04:00
parent e26db4415b
commit 598faa1861
3 changed files with 8 additions and 1 deletions

View File

@ -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.");

View File

@ -33,7 +33,6 @@ namespace StardewModdingAPI
[Obsolete]
public virtual string Description { get; set; }
/// <summary>
/// The mod's manifest
/// </summary>

View File

@ -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;
}