diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-04-23 02:05:14 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-04-23 02:05:14 -0400 |
commit | 47a806533b9fbcfe3fc771316283a7734702baae (patch) | |
tree | f0ec619bb488febfc7f9766e3fb2e12d4f466c77 /src/SMAPI.Installer/Framework | |
parent | 665c6806d3797f8329ef8c6fcaa80d469fef5005 (diff) | |
download | SMAPI-47a806533b9fbcfe3fc771316283a7734702baae.tar.gz SMAPI-47a806533b9fbcfe3fc771316283a7734702baae.tar.bz2 SMAPI-47a806533b9fbcfe3fc771316283a7734702baae.zip |
add 64-bit support to the SMAPI installer (#767)
Diffstat (limited to 'src/SMAPI.Installer/Framework')
-rw-r--r-- | src/SMAPI.Installer/Framework/InstallerPaths.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/SMAPI.Installer/Framework/InstallerPaths.cs b/src/SMAPI.Installer/Framework/InstallerPaths.cs index 2cabf88b..6ba5fa5f 100644 --- a/src/SMAPI.Installer/Framework/InstallerPaths.cs +++ b/src/SMAPI.Installer/Framework/InstallerPaths.cs @@ -44,8 +44,8 @@ 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/macOS.</summary> public string UnixLauncherPath { 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); + } } } |