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:
parent
32ff5dff17
commit
1b4cc0294c
|
@ -23,7 +23,7 @@ namespace StardewModdingAPI
|
||||||
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.3.2");
|
public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.3.2");
|
||||||
|
|
||||||
/// <summary>The minimum supported version of Stardew Valley.</summary>
|
/// <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>
|
/// <summary>The maximum supported version of Stardew Valley.</summary>
|
||||||
public static ISemanticVersion MaximumGameVersion { get; } = null;
|
public static ISemanticVersion MaximumGameVersion { get; } = null;
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace StardewModdingAPI
|
||||||
{
|
{
|
||||||
AppDomain.CurrentDomain.AssemblyResolve += Program.CurrentDomain_AssemblyResolve;
|
AppDomain.CurrentDomain.AssemblyResolve += Program.CurrentDomain_AssemblyResolve;
|
||||||
//Program.AssertGamePresent();
|
//Program.AssertGamePresent();
|
||||||
//Program.AssertGameVersion();
|
Program.AssertGameVersion();
|
||||||
//Program.Start(args);
|
//Program.Start(args);
|
||||||
}
|
}
|
||||||
catch (BadImageFormatException ex) when (ex.FileName == "StardewValley")
|
catch (BadImageFormatException ex) when (ex.FileName == "StardewValley")
|
||||||
|
|
Loading…
Reference in New Issue