summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-04 23:47:27 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-04 23:47:27 -0500
commitcb9d6ae5ad9252c2a36174856b28f12344d026f3 (patch)
tree3e5b559713bac52099349fa85b2253c4cc29a282 /src/SMAPI.Installer/Framework
parent0f37c0f92da5fb6fcf9e4317a1b4c8d3f4df8010 (diff)
downloadSMAPI-cb9d6ae5ad9252c2a36174856b28f12344d026f3.tar.gz
SMAPI-cb9d6ae5ad9252c2a36174856b28f12344d026f3.tar.bz2
SMAPI-cb9d6ae5ad9252c2a36174856b28f12344d026f3.zip
improve error when installer is pointed at a SDV 1.5.4 folder
Diffstat (limited to 'src/SMAPI.Installer/Framework')
-rw-r--r--src/SMAPI.Installer/Framework/InstallerContext.cs7
1 files changed, 7 insertions, 0 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);
+ }
}
}