diff options
Diffstat (limited to 'src/StardewModdingAPI/Framework')
-rw-r--r-- | src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs | 2 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/ModCompatibility.cs | 6 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/ModStatus.cs (renamed from src/StardewModdingAPI/Framework/Models/ModCompatibilityType.cs) | 7 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs b/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs index 87b6a99c..6a971c15 100644 --- a/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs +++ b/src/StardewModdingAPI/Framework/ModLoading/ModResolver.cs @@ -107,7 +107,7 @@ namespace StardewModdingAPI.Framework.ModLoading // validate compatibility { ModCompatibility compatibility = mod.Compatibility; - if (compatibility?.Compatibility == ModCompatibilityType.AssumeBroken) + if (compatibility?.Status == ModStatus.AssumeBroken) { string reasonPhrase = compatibility.ReasonPhrase ?? "it's no longer compatible"; string error = $"{reasonPhrase}. Please check for a "; diff --git a/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs b/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs index d3a9c533..7489a306 100644 --- a/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs +++ b/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json; +using Newtonsoft.Json; using StardewModdingAPI.Framework.Serialisation; namespace StardewModdingAPI.Framework.Models @@ -34,7 +34,7 @@ namespace StardewModdingAPI.Framework.Models /// <example>"this version is incompatible with the latest version of the game"</example> public string ReasonPhrase { get; set; } - /// <summary>Indicates how SMAPI should consider the mod.</summary> - public ModCompatibilityType Compatibility { get; set; } = ModCompatibilityType.AssumeBroken; + /// <summary>Indicates how SMAPI should treat the mod.</summary> + public ModStatus Status { get; set; } = ModStatus.AssumeBroken; } } diff --git a/src/StardewModdingAPI/Framework/Models/ModCompatibilityType.cs b/src/StardewModdingAPI/Framework/Models/ModStatus.cs index 35edec5e..4ab0b790 100644 --- a/src/StardewModdingAPI/Framework/Models/ModCompatibilityType.cs +++ b/src/StardewModdingAPI/Framework/Models/ModStatus.cs @@ -1,8 +1,11 @@ namespace StardewModdingAPI.Framework.Models { - /// <summary>Indicates how SMAPI should consider a mod.</summary> - internal enum ModCompatibilityType + /// <summary>Indicates how SMAPI should treat a mod.</summary> + internal enum ModStatus { + /// <summary>Don't override the status.</summary> + None = 0, + /// <summary>Assume the mod is not compatible, even if SMAPI doesn't detect any incompatible code.</summary> AssumeBroken = 0, |