remove new manifest field for minimum game version (#264)

This was added to support parallel releases for SDV 1.11 + 1.2-beta, but SDV 1.2 is now out of beta. Mods should specify the minimum SMAPI version instead if needed.
This commit is contained in:
Jesse Plamondon-Willard 2017-04-24 12:39:06 -04:00
parent 4e7733ba2d
commit fee89a99da
4 changed files with 0 additions and 26 deletions

View File

@ -25,7 +25,6 @@ For players:
For mod developers:
* Mods are now initialised after the `Initialize`/`LoadContent` phase, which means the `GameEvents.Initialize` and `GameEvents.LoadContent` events are deprecated. You can move any logic in those methods to your mod's `Entry` method.
* Mods can now specify a minimum game version in their `manifest.json`.
* Added `IsBetween` and string overloads to the `ISemanticVersion` methods.
* Fixed mouse-changed event never updating prior mouse position.
* Fixed `monitor.ExitGameImmediately` not working correctly.

View File

@ -26,9 +26,6 @@ namespace StardewModdingAPI.Framework
/// <summary>The minimum SMAPI version required by this mod, if any.</summary>
public string MinimumApiVersion { get; set; }
/// <summary>The minimum game version required by this mod, if any.</summary>
public string MinimumGameVersion { get; set; }
/// <summary>The name of the DLL in the directory that has the <see cref="Mod.Entry"/> method.</summary>
public string EntryDll { get; set; }

View File

@ -18,9 +18,6 @@
/// <summary>The minimum SMAPI version required by this mod, if any.</summary>
string MinimumApiVersion { get; set; }
/// <summary>The minimum game version required by this mod, if any.</summary>
string MinimumGameVersion { get; set; }
/// <summary>The unique mod ID.</summary>
string UniqueID { get; set; }

View File

@ -460,25 +460,6 @@ namespace StardewModdingAPI
}
}
// validate game version
if (!string.IsNullOrWhiteSpace(manifest.MinimumGameVersion))
{
try
{
ISemanticVersion minVersion = new SemanticVersion(manifest.MinimumGameVersion);
if (minVersion.IsNewerThan(Constants.GameVersion))
{
this.Monitor.Log($"{skippedPrefix} because it needs Stardew Valley {minVersion} or later. Please update Stardew Valley to the latest version to use this mod.", LogLevel.Error);
continue;
}
}
catch (FormatException ex) when (ex.Message.Contains("not a valid semantic version"))
{
this.Monitor.Log($"{skippedPrefix} because it has an invalid minimum game version '{manifest.MinimumApiVersion}'. This should be a semantic version number like {Constants.GameVersion}.", LogLevel.Error);
continue;
}
}
// create per-save directory
if (manifest.PerSaveConfigs)
{