summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/Framework/InstallerContext.cs7
-rw-r--r--src/SMAPI.Installer/InteractiveInstaller.cs10
2 files changed, 16 insertions, 1 deletions
diff --git a/src/SMAPI.Installer/Framework/InstallerContext.cs b/src/SMAPI.Installer/Framework/InstallerContext.cs
index 95df32ca..68df2001 100644
--- a/src/SMAPI.Installer/Framework/InstallerContext.cs
+++ b/src/SMAPI.Installer/Framework/InstallerContext.cs
@@ -54,5 +54,12 @@ namespace StardewModdingAPI.Installer.Framework
{
return this.GameScanner.LooksLikeGameFolder(dir);
}
+
+ /// <summary>Get whether a folder seems to contain Stardew Valley 1.5.4 or earlier.</summary>
+ /// <param name="dir">The folder to check.</param>
+ public bool LooksLikeStardewValley154(DirectoryInfo dir)
+ {
+ return this.GameScanner.LooksLikeStardewValley154(dir);
+ }
}
}
diff --git a/src/SMAPI.Installer/InteractiveInstaller.cs b/src/SMAPI.Installer/InteractiveInstaller.cs
index d8c27a2d..424fe42b 100644
--- a/src/SMAPI.Installer/InteractiveInstaller.cs
+++ b/src/SMAPI.Installer/InteractiveInstaller.cs
@@ -704,7 +704,15 @@ namespace StardewModdingApi.Installer
}
if (!context.LooksLikeGameFolder(directory))
{
- this.PrintWarning("That directory doesn't contain a Stardew Valley executable.");
+ if (context.LooksLikeStardewValley154(directory))
+ {
+ this.PrintWarning("That directory seems to have Stardew Valley 1.5.4 or earlier.");
+ this.PrintWarning("Please update your game to the latest version to use SMAPI.");
+ }
+ else
+ {
+ this.PrintWarning("That directory doesn't contain a Stardew Valley executable.");
+ }
continue;
}