summaryrefslogtreecommitdiff
path: root/build/smapi.targets
diff options
context:
space:
mode:
authorPatrick Müssig <patrick.muessig@gmx.de>2017-01-01 21:37:41 +0100
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2017-01-10 14:48:25 -0500
commitd562ae7a1bcb2c2451fe80e2fee32815a5057663 (patch)
tree660187bcca1a6a599bd6d0c666c9854d749c9ca9 /build/smapi.targets
parent9250a1683c5c9d37983ff744cc3135d1634575ca (diff)
downloadSMAPI-d562ae7a1bcb2c2451fe80e2fee32815a5057663.tar.gz
SMAPI-d562ae7a1bcb2c2451fe80e2fee32815a5057663.tar.bz2
SMAPI-d562ae7a1bcb2c2451fe80e2fee32815a5057663.zip
Let MSBuild find steam again.
Also fixed MsBuild wont find Gogs on x86 computer
Diffstat (limited to 'build/smapi.targets')
-rw-r--r--build/smapi.targets4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/smapi.targets b/build/smapi.targets
index 3a20f9b5..ba3f96dd 100644
--- a/build/smapi.targets
+++ b/build/smapi.targets
@@ -32,8 +32,8 @@
<!-- 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>
- <GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253@PATH)</GamePath>
- <GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150@InstallLocation)</GamePath>
+ <GamePath Condition="!Exists('$(GamePath)') AND '$(GamePlatform)' == 'Windows'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253}', 'PATH', null, RegistryView.Registry32))</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>
<!--######