Skip to content

Commit

Permalink
don't use BuildID.txt to identify a ksp install - it doesn't exist on…
Browse files Browse the repository at this point in the history
… windows
  • Loading branch information
JonnyOThan committed Sep 21, 2024
1 parent 2619382 commit b6c0e12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KSPCommon.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
<KSPRoot Condition=" '$(KSPRoot)' == '' And '$(KSP_ROOT)' != ''">$(KSP_ROOT)</KSPRoot>

<!-- look for a KSP installation in SolutionDir -->
<KSPRoot Condition = " '$(KSPRoot)' == '' And Exists('$(SolutionDir)KSP/buildID.txt')">$(SolutionDir)KSP</KSPRoot>
<KSPRoot Condition = " '$(KSPRoot)' == '' And Exists('$(SolutionDir)KSP/GameData')">$(SolutionDir)KSP</KSPRoot>

<!-- use ReferencePath if it exists and is a valid KSP install -->
<KSPRoot Condition = " '$(KSPRoot)' == '' And Exists('$(ReferencePath)/buildID.txt')">$(ReferencePath.TrimEnd([System.IO.Path]::DirectorySeparatorChar))</KSPRoot>
<KSPRoot Condition = " '$(KSPRoot)' == '' And Exists('$(ReferencePath)GameData')">$(ReferencePath.TrimEnd([System.IO.Path]::DirectorySeparatorChar))</KSPRoot>

<!--If the reference path isn't set, use the default steam location, but this will be incorrect in lots of cases-->
<SteamKSPRoot Condition = "($([MSBuild]::IsOsPlatform('Windows')))">C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program</SteamKSPRoot>
<SteamKSPRoot Condition = "($([MSBuild]::IsOsPlatform('OSX')))">$(HOME)/Library/Application Support/Steam/steamapps/common/Kerbal Space Program</SteamKSPRoot>
<KSPRoot Condition = "'$(KSPRoot)' == '' And Exists('$(SteamKSPRoot)/buildID.txt')">$(SteamKSPRoot)</KSPRoot>
<KSPRoot Condition = "'$(KSPRoot)' == '' And Exists('$(SteamKSPRoot)/GameData')">$(SteamKSPRoot)</KSPRoot>

<!-- default CKAN compatibility versions -->
<CKANCompatibleVersions Condition="('$(CKANCompatibleVersions)' == '')">1.12 1.11 1.10 1.9 1.8</CKANCompatibleVersions>
Expand Down

0 comments on commit b6c0e12

Please sign in to comment.