mirror of
https://github.com/Pathoschild/SMAPI.git
synced 2026-10-12 02:08:51 +00:00
improve game path detection
This commit is contained in:
@@ -31,12 +31,13 @@
|
||||
<!-- default paths -->
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files\GalaxyClient\Games\Stardew Valley</GamePath>
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files\GOG Galaxy\Games\Stardew Valley</GamePath>
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files\GOG Games\Stardew Valley</GamePath>
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files\Steam\steamapps\common\Stardew Valley</GamePath>
|
||||
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\GOG Galaxy\Games\Stardew Valley</GamePath>
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\GOG Games\Stardew Valley</GamePath>
|
||||
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
|
||||
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
## Upcoming release
|
||||
* For players:
|
||||
* Improved game path detection. The installer now prefers the path installed through Steam or GOG Galaxy.
|
||||
* Improved game path detection in the installer. The installer now prefers the path registered by Steam or GOG Galaxy, and can also now detect the default install path for manual GOG installs.
|
||||
|
||||
* For modders:
|
||||
* Expanded `PerScreen<T>` API: you can now get/set the value for any screen, get all active values, or clear all values.
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user