From 9e07a93b69d1cf6b413e80b7185152bcdfa1170c Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Fri, 20 Sep 2024 01:10:27 -0700 Subject: [PATCH] Be a bit more selective when guessing KSPRoot make sure its actually a KSP installation before using ReferencePath or the default Steam location. --- KSPCommon.props | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/KSPCommon.props b/KSPCommon.props index f18e1f9..9de437f 100644 --- a/KSPCommon.props +++ b/KSPCommon.props @@ -22,10 +22,13 @@ $(SolutionDir)KSP - $(ReferencePath.TrimEnd([System.IO.Path]::DirectorySeparatorChar)) + + $(ReferencePath.TrimEnd([System.IO.Path]::DirectorySeparatorChar)) + - C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program - $(HOME)/Library/Application Support/Steam/steamapps/common/Kerbal Space Program + C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program + $(HOME)/Library/Application Support/Steam/steamapps/common/Kerbal Space Program + $(SteamKSPRoot) 1.12 1.11 1.10 1.9 1.8