summaryrefslogtreecommitdiff
path: root/build/smapi.targets
diff options
context:
space:
mode:
authorPatrick Müssig <patrick.muessig@gmx.de>2016-12-06 21:04:50 +0100
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2016-12-31 11:27:21 -0500
commit0fe3275037b03fefb4e4c09a30097a85a12a3c03 (patch)
treee109d4395cf5068450b277eb3b4586564bbb7713 /build/smapi.targets
parentd3946c3324cf6fc0c73590b22770da061b025331 (diff)
downloadSMAPI-0fe3275037b03fefb4e4c09a30097a85a12a3c03.tar.gz
SMAPI-0fe3275037b03fefb4e4c09a30097a85a12a3c03.tar.bz2
SMAPI-0fe3275037b03fefb4e4c09a30097a85a12a3c03.zip
add support for non default Stardew Valley pathes (Steam and gog)
Diffstat (limited to 'build/smapi.targets')
-rw-r--r--build/smapi.targets8
1 files changed, 5 insertions, 3 deletions
diff --git a/build/smapi.targets b/build/smapi.targets
index 0bd8e0ae..759bd104 100644
--- a/build/smapi.targets
+++ b/build/smapi.targets
@@ -30,9 +30,11 @@
<GamePath Condition="!Exists('$(GamePath)')">$(HOME)/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS</GamePath>
<!-- Windows -->
- <GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
- <GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
- </PropertyGroup>
+ <GamePath Condition="!Exists('$(GamePath)' )">C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
+ <GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$([" >$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253}', 'PATH', null,RegistryView.Registry64, RegistryView.Registry32))</GamePath>
+ <GamePath Condition="!Exists('$(GamePath)' )">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
+ <GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null,RegistryView.Registry64, RegistryView.Registry32))</GamePath>
+ </PropertyGroup>
<!--######
## set up configuration