From 5ee6ae0968a12f09787e4cb0a113a6def063478e Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Tue, 27 Feb 2024 22:11:21 -0600 Subject: [PATCH] Support Windows KSP1 instances on Linux --- Core/Games/KerbalSpaceProgram.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/Games/KerbalSpaceProgram.cs b/Core/Games/KerbalSpaceProgram.cs index a91f980886..e29eee84b6 100644 --- a/Core/Games/KerbalSpaceProgram.cs +++ b/Core/Games/KerbalSpaceProgram.cs @@ -222,7 +222,9 @@ public GameVersion DetectVersion(DirectoryInfo where) public string[] InstanceAnchorFiles => // KSP.app is a directory :( Platform.IsMac ? new string[] { "buildID64.txt", "buildID.txt" } - : Platform.IsUnix ? new string[] { "KSP.x86_64", "KSP.x86" } + : Platform.IsUnix ? new string[] { "KSP.x86_64", "KSP.x86", + // Windows EXEs via Proton on Linux + "KSP_x64.exe", "KSP.exe" } : new string[] { "KSP_x64.exe", "KSP.exe" }; public Uri DefaultRepositoryURL => new Uri("https://github.com/KSP-CKAN/CKAN-meta/archive/master.tar.gz");