diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-12-05 00:51:24 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-12-05 00:51:24 -0500 |
commit | 98d01d522d488192b5d5da50d70752a8c0739a94 (patch) | |
tree | f23154fc08394d66171a399b52142dc4d770b9df /src/SMAPI.Installer/Framework/InstallerContext.cs | |
parent | cb9d6ae5ad9252c2a36174856b28f12344d026f3 (diff) | |
download | SMAPI-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.cs | 6 |
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); } } } |