summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/Framework/InstallerContext.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-05 00:51:24 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-12-05 00:51:24 -0500
commit98d01d522d488192b5d5da50d70752a8c0739a94 (patch)
treef23154fc08394d66171a399b52142dc4d770b9df /src/SMAPI.Installer/Framework/InstallerContext.cs
parentcb9d6ae5ad9252c2a36174856b28f12344d026f3 (diff)
downloadSMAPI-98d01d522d488192b5d5da50d70752a8c0739a94.tar.gz
SMAPI-98d01d522d488192b5d5da50d70752a8c0739a94.tar.bz2
SMAPI-98d01d522d488192b5d5da50d70752a8c0739a94.zip
improve error when installer is pointed at a compatibility-branch game folder
Diffstat (limited to 'src/SMAPI.Installer/Framework/InstallerContext.cs')
-rw-r--r--src/SMAPI.Installer/Framework/InstallerContext.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI.Installer/Framework/InstallerContext.cs b/src/SMAPI.Installer/Framework/InstallerContext.cs
index 68df2001..bb973230 100644
--- a/src/SMAPI.Installer/Framework/InstallerContext.cs
+++ b/src/SMAPI.Installer/Framework/InstallerContext.cs
@@ -55,11 +55,11 @@ 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>
+ /// <summary>Get whether a folder seems to contain the game, and which version it contains if so.</summary>
/// <param name="dir">The folder to check.</param>
- public bool LooksLikeStardewValley154(DirectoryInfo dir)
+ public GameFolderType GetGameFolderType(DirectoryInfo dir)
{
- return this.GameScanner.LooksLikeStardewValley154(dir);
+ return this.GameScanner.GetGameFolderType(dir);
}
}
}