diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-16 19:01:22 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-16 19:01:22 -0400 |
commit | 45d2ed705473f51935af269c852a94432968a15c (patch) | |
tree | b0fa587d422154c420dbd3471bf6adc513755cf4 | |
parent | 0e67440e6390e824c8045173f0fcaa6badab2c64 (diff) | |
download | SMAPI-45d2ed705473f51935af269c852a94432968a15c.tar.gz SMAPI-45d2ed705473f51935af269c852a94432968a15c.tar.bz2 SMAPI-45d2ed705473f51935af269c852a94432968a15c.zip |
add another default game path for Linux
Thanks to ShneekeyTheLost on the Stardew Valley forums.
-rw-r--r-- | release-notes.md | 1 | ||||
-rw-r--r-- | src/StardewModdingAPI.Installer/InteractiveInstaller.cs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/release-notes.md b/release-notes.md index 9d133f30..67286308 100644 --- a/release-notes.md +++ b/release-notes.md @@ -20,6 +20,7 @@ For players: * SMAPI now allows mods nested into an otherwise empty parent folder (like `Mods\ModName-1.0\ModName\manifest.json`), since that's a common default behaviour when unpacking mods. * The installer now detects if you need to update .NET Framework before installing SMAPI. * The installer now detects if you need to run the game at least once (to let it perform first-time setup) before installing SMAPI. +* The installer on Linux now finds games installed to `~/.steam/steam/steamapps/common/Stardew Valley` too. * The console now has simpler error messages. * The console now has improved command handling & feedback. * The console no longer shows the game's debug output (unless you use a _SMAPI for developers_ build). diff --git a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs index 0e920f1f..33cbc2dc 100644 --- a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs +++ b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs @@ -29,6 +29,7 @@ namespace StardewModdingApi.Installer // Linux yield return $"{Environment.GetEnvironmentVariable("HOME")}/GOG Games/Stardew Valley/game"; yield return $"{Environment.GetEnvironmentVariable("HOME")}/.local/share/Steam/steamapps/common/Stardew Valley"; + yield return $"{Environment.GetEnvironmentVariable("HOME")}/.steam/steam/steamapps/common/Stardew Valley"; // Mac yield return "/Applications/Stardew Valley.app/Contents/MacOS"; |