diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-11 13:56:12 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-11 13:56:12 -0500 |
commit | 481a43d807718228f60bbb8266d9b425cbd24d08 (patch) | |
tree | d65c100825adf499ef6f0ae007d0306a070d5d23 | |
parent | 43a4194a5c23b5896f9b639673693a4a2a73ca8d (diff) | |
download | SMAPI-481a43d807718228f60bbb8266d9b425cbd24d08.tar.gz SMAPI-481a43d807718228f60bbb8266d9b425cbd24d08.tar.bz2 SMAPI-481a43d807718228f60bbb8266d9b425cbd24d08.zip |
update game install path detection to match mod build config package
-rw-r--r-- | src/crossplatform.targets | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crossplatform.targets b/src/crossplatform.targets index 0eb1c776..ef2d341f 100644 --- a/src/crossplatform.targets +++ b/src/crossplatform.targets @@ -8,8 +8,8 @@ <!-- Windows paths --> <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 $(OS) == 'Windows_NT'">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150@InstallLocation)</GamePath> - <GamePath Condition="!Exists('$(GamePath)') AND $(OS) == 'Windows_NT'">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1453375253@PATH)</GamePath> + <GamePath Condition="!Exists('$(GamePath)') AND '$(OS)' == 'Windows_NT'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\GOG.com\Games\1453375253', 'PATH', null, RegistryView.Registry32))</GamePath> + <GamePath Condition="!Exists('$(GamePath)') AND '$(OS)' == 'Windows_NT'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 413150', 'InstallLocation', null, RegistryView.Registry64, RegistryView.Registry32))</GamePath> </PropertyGroup> <Choose> <When Condition="$(OS) == 'Windows_NT'"> |