Skip to content

Commit

Permalink
platform-agnostic trim
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Apr 4, 2024
1 parent 864f280 commit bd7f238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KSPCommon.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<!-- The following properties can be customized per-mod in SolutionName.props-->
<PropertyGroup>
<!-- The root directory of the mod repository -->
<RepoRootPath Condition = " '$(RepoRootPath)' == '' ">$(SolutionDir.TrimEnd('\'))</RepoRootPath>
<RepoRootPath Condition = " '$(RepoRootPath)' == '' ">$([System.IO.Path]::TrimEndingDirectorySeparator(SolutionDir))</RepoRootPath>
<BinariesOutputRelativePath Condition = " '$(BinariesOutputRelativePath)' == '' ">GameData\$(SolutionName)</BinariesOutputRelativePath>

<KSPRoot Condition = " '$(KSPRoot)' == '' ">$(ReferencePath.TrimEnd('\'))</KSPRoot>
<KSPRoot Condition = " '$(KSPRoot)' == '' ">$([System.IO.Path]::TrimEndingDirectorySeparator(ReferencePath))</KSPRoot>
<!--If the reference path isn't set, use the default steam location, but this will be incorrect in lots of cases-->
<KSPRoot Condition = "'$(KSPRoot)' == '' ">C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program</KSPRoot>
</PropertyGroup>
Expand Down

0 comments on commit bd7f238

Please sign in to comment.