diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-05-03 18:11:31 -0400 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-05-03 18:11:31 -0400 |
| commit | 5d3d919d490fd414fe9647e566e92c71d7f64509 (patch) | |
| tree | e1eab3352287ef04b5de4cdc28b550e255d58c3f /src/SMAPI.Installer/Framework | |
| parent | c48f6d78cc412c5f2e40a8b460b7b3c1c993c51a (diff) | |
| parent | 3447e2f575c2c83af729777e4d37e93f4c2a6467 (diff) | |
| download | SMAPI-5d3d919d490fd414fe9647e566e92c71d7f64509.tar.gz SMAPI-5d3d919d490fd414fe9647e566e92c71d7f64509.tar.bz2 SMAPI-5d3d919d490fd414fe9647e566e92c71d7f64509.zip | |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Installer/Framework')
| -rw-r--r-- | src/SMAPI.Installer/Framework/InstallerContext.cs | 2 | ||||
| -rw-r--r-- | src/SMAPI.Installer/Framework/InstallerPaths.cs | 17 |
2 files changed, 13 insertions, 6 deletions
diff --git a/src/SMAPI.Installer/Framework/InstallerContext.cs b/src/SMAPI.Installer/Framework/InstallerContext.cs index 7531eaee..88e57760 100644 --- a/src/SMAPI.Installer/Framework/InstallerContext.cs +++ b/src/SMAPI.Installer/Framework/InstallerContext.cs @@ -35,7 +35,7 @@ namespace StardewModdingAPI.Installer.Framework /// <summary>Whether the installer is running on Windows.</summary> public bool IsWindows => this.Platform == Platform.Windows; - /// <summary>Whether the installer is running on a Unix OS (including Linux or MacOS).</summary> + /// <summary>Whether the installer is running on a Unix OS (including Linux or macOS).</summary> public bool IsUnix => !this.IsWindows; diff --git a/src/SMAPI.Installer/Framework/InstallerPaths.cs b/src/SMAPI.Installer/Framework/InstallerPaths.cs index ac6c3a8e..6ba5fa5f 100644 --- a/src/SMAPI.Installer/Framework/InstallerPaths.cs +++ b/src/SMAPI.Installer/Framework/InstallerPaths.cs @@ -44,16 +44,16 @@ namespace StardewModdingAPI.Installer.Framework /// <summary>The full path to the user's config overrides file.</summary> public string ApiUserConfigPath { get; } - /// <summary>The full path to the installed SMAPI executable file.</summary> - public string ExecutablePath { get; } + /// <summary>The full path to the installed game executable file.</summary> + public string ExecutablePath { get; private set; } - /// <summary>The full path to the vanilla game launcher on Linux/Mac.</summary> + /// <summary>The full path to the vanilla game launcher on Linux/macOS.</summary> public string UnixLauncherPath { get; } - /// <summary>The full path to the installed SMAPI launcher on Linux/Mac before it's renamed.</summary> + /// <summary>The full path to the installed SMAPI launcher on Linux/macOS before it's renamed.</summary> public string UnixSmapiLauncherPath { get; } - /// <summary>The full path to the vanilla game launcher on Linux/Mac after SMAPI is installed.</summary> + /// <summary>The full path to the vanilla game launcher on Linux/macOS after SMAPI is installed.</summary> public string UnixBackupLauncherPath { get; } @@ -79,5 +79,12 @@ namespace StardewModdingAPI.Installer.Framework this.ApiConfigPath = Path.Combine(gameDir.FullName, "smapi-internal", "config.json"); this.ApiUserConfigPath = Path.Combine(gameDir.FullName, "smapi-internal", "config.user.json"); } + + /// <summary>Override the filename for the <see cref="ExecutablePath"/>.</summary> + /// <param name="filename">the file name.</param> + public void SetExecutableFileName(string filename) + { + this.ExecutablePath = Path.Combine(this.GamePath, filename); + } } } |
