summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer/Framework/InstallerContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Installer/Framework/InstallerContext.cs')
-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..bb973230 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 the game, and which version it contains if so.</summary>
+ /// <param name="dir">The folder to check.</param>
+ public GameFolderType GetGameFolderType(DirectoryInfo dir)
+ {
+ return this.GameScanner.GetGameFolderType(dir);
+ }
}
}