summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-17 15:11:45 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-17 15:11:45 -0500
commitbc71f994ece3943f02f91cdefbbe126cbef5a541 (patch)
tree7905e3082c7f3db2663699c14b5079b5ed2d8609 /src/SMAPI.Toolkit
parentcfe2c3975f8be62581195fbfffc41528f22b2ee3 (diff)
downloadSMAPI-bc71f994ece3943f02f91cdefbbe126cbef5a541.tar.gz
SMAPI-bc71f994ece3943f02f91cdefbbe126cbef5a541.tar.bz2
SMAPI-bc71f994ece3943f02f91cdefbbe126cbef5a541.zip
improve game path detection
Diffstat (limited to 'src/SMAPI.Toolkit')
-rw-r--r--src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs b/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
index 055e3b6d..785daba3 100644
--- a/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
+++ b/src/SMAPI.Toolkit/Framework/GameScanning/GameScanner.cs
@@ -110,11 +110,12 @@ namespace StardewModdingAPI.Toolkit.Framework.GameScanning
yield return Path.Combine(steamPath.Replace('/', '\\'), @"steamapps\common\Stardew Valley");
#endif
- // Windows
+ // default paths
foreach (string programFiles in new[] { @"C:\Program Files", @"C:\Program Files (x86)" })
{
yield return $@"{programFiles}\GalaxyClient\Games\Stardew Valley";
yield return $@"{programFiles}\GOG Galaxy\Games\Stardew Valley";
+ yield return $@"{programFiles}\GOG Games\Stardew Valley";
yield return $@"{programFiles}\Steam\steamapps\common\Stardew Valley";
}
}