summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-01-10 15:44:50 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-01-10 15:44:50 -0500
commit1e974703bce01ae041eba3047263af4b351959a3 (patch)
treef8e7719b59bc96be9e800df5ace5cf0fd7ac85ae
parentd562ae7a1bcb2c2451fe80e2fee32815a5057663 (diff)
downloadSMAPI-1e974703bce01ae041eba3047263af4b351959a3.tar.gz
SMAPI-1e974703bce01ae041eba3047263af4b351959a3.tar.bz2
SMAPI-1e974703bce01ae041eba3047263af4b351959a3.zip
fix GOG registry support (#2)
-rw-r--r--build/smapi.targets5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/smapi.targets b/build/smapi.targets
index ba3f96dd..7d87868a 100644
--- a/build/smapi.targets
+++ b/build/smapi.targets
@@ -32,8 +32,9 @@
<!-- 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'">$([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>
+ <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\WOW6432Node\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry64)</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>
<!--######