Constraint game version, old game version leads to crash, explicitly point out this error(instead of crash for no reason)

This commit is contained in:
yangzhi 2020-02-23 23:14:52 +08:00
parent 32ff5dff17
commit 1b4cc0294c
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ namespace StardewModdingAPI
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.3.2");
/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1");
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.5");
/// <summary>The maximum supported version of Stardew Valley.</summary>
public static ISemanticVersion MaximumGameVersion { get; } = null;

View File

@ -38,7 +38,7 @@ namespace StardewModdingAPI
{
AppDomain.CurrentDomain.AssemblyResolve += Program.CurrentDomain_AssemblyResolve;
//Program.AssertGamePresent();
//Program.AssertGameVersion();
Program.AssertGameVersion();
//Program.Start(args);
}
catch (BadImageFormatException ex) when (ex.FileName == "StardewValley")