Skip to content

Commit

Permalink
Support Windows KSP1 instances on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 28, 2024
1 parent 726adac commit 5ee6ae0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/Games/KerbalSpaceProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 5ee6ae0

Please sign in to comment.