summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-01 21:48:08 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-01 21:48:08 -0400
commit5848a355bac789ba8d879df64bea400d17ea83f5 (patch)
tree87b823c40d7ee0a60f441e46c570377a4b42699d /src/SMAPI.Installer
parentcf1d800b58bdd8c5f0ebb018da4cce6fad27adb0 (diff)
downloadSMAPI-5848a355bac789ba8d879df64bea400d17ea83f5.tar.gz
SMAPI-5848a355bac789ba8d879df64bea400d17ea83f5.tar.bz2
SMAPI-5848a355bac789ba8d879df64bea400d17ea83f5.zip
add friendly errors when using SMAPI 3.12.x with Stardew Valley 1.5.5+
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index b91d0dd3..17c3198f 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -298,6 +298,14 @@ namespace StardewModdingApi.Installer
return;
}
+ // not Stardew Valley 1.5.5+
+ if (File.Exists(Path.Combine(paths.GamePath, "Stardew Valley.dll")))
+ {
+ this.PrintError($"Oops! The detected game install path seems to be Stardew Valley 1.5.5 or later, but this version of SMAPI is only compatible up to Stardew Valley 1.5.4. Please check for a newer version of SMAPI: https://smapi.io.");
+ Console.ReadLine();
+ return;
+ }
+
// game folder doesn't contain paths beyond the max limit
{
string[] tooLongPaths = PathUtilities.GetTooLongPaths(Path.Combine(paths.GamePath, "Mods")).ToArray();