Skip to content

Commit

Permalink
Default install_to to GameData/Mods for KSP2
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Jul 21, 2023
1 parent 05a67aa commit 15b1810
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Core/Games/KerbalSpaceProgram2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public string MacPath()
return null;
}

public string PrimaryModDirectoryRelative => "BepInEx/plugins";
public string PrimaryModDirectoryRelative => "GameData/Mods";

public string PrimaryModDirectory(GameInstance inst)
=> CKANPathUtils.NormalizePath(
Expand All @@ -115,6 +115,8 @@ public string PrimaryModDirectory(GameInstance inst)

public string[] CreateableDirs => new string[]
{
"GameData",
"GameData/Mods",
"BepInEx",
"BepInEx/plugins",
};
Expand Down Expand Up @@ -200,6 +202,9 @@ private GameVersion VersionFromFile(string path)

public Uri RepositoryListURL => new Uri("https://raw.githubusercontent.com/KSP-CKAN/KSP2-CKAN-meta/main/repositories.json");

// Key: Allowed value of install_to
// Value: Relative path
// (PrimaryModDirectoryRelative is allowed implicitly)
private readonly Dictionary<string, string> allowedFolders = new Dictionary<string, string>
{
{ "BepInEx", "BepInEx" },
Expand Down

0 comments on commit 15b1810

Please sign in to comment.