diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-13 19:01:59 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-13 19:01:59 -0400 |
commit | 3633fa4b0946574bdc3387dd073459ac878b5e7f (patch) | |
tree | f9507b7e864c91ad7689439718d3e86e62a20aad /src/SMAPI | |
parent | e71cfc63b5be6b0665d5da86bfa9c63eb3c02e9a (diff) | |
download | SMAPI-3633fa4b0946574bdc3387dd073459ac878b5e7f.tar.gz SMAPI-3633fa4b0946574bdc3387dd073459ac878b5e7f.tar.bz2 SMAPI-3633fa4b0946574bdc3387dd073459ac878b5e7f.zip |
add more intuitive error when using SMAPI 2.6 with SDV 1.2
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Program.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs index 24bf0d59..4f20ce37 100644 --- a/src/SMAPI/Program.cs +++ b/src/SMAPI/Program.cs @@ -156,7 +156,10 @@ namespace StardewModdingAPI // validate game version if (Constants.GameVersion.IsOlderThan(Constants.MinimumGameVersion)) { - this.Monitor.Log($"Oops! You're running Stardew Valley {Constants.GameVersion}, but the oldest supported version is {Constants.MinimumGameVersion}. Please update your game before using SMAPI.", LogLevel.Error); + if (Constants.GameVersion.IsBetween("1.2.30", "1.2.33") && Constants.ApiVersion.IsBetween("2.6-beta", "2.6")) // TODO: remove once SMAPI 2.6 is out of beta + this.Monitor.Log($"Oops! You're running Stardew Valley {Constants.GameVersion}. Make sure you install SMAPI 2.5.5 instead (SMAPI 2.6 beta is only for Stardew Valley 1.3 beta).", LogLevel.Error); + else + this.Monitor.Log($"Oops! You're running Stardew Valley {Constants.GameVersion}, but the oldest supported version is {Constants.MinimumGameVersion}. Please update your game before using SMAPI.", LogLevel.Error); this.PressAnyKeyToExit(); return; } |