Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 18603217f735
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 21e93eb8f6d0
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jun 29, 2019

  1. Copy the full SHA
    911c000 View commit details
  2. Merge pull request #2227 from eggrobin/override-version-check

    A mechanism to override version checking
    eggrobin authored Jun 29, 2019
    Copy the full SHA
    21e93eb View commit details
Showing with 11 additions and 3 deletions.
  1. +11 −3 ksp_plugin_adapter/ksp_plugin_adapter.cs
14 changes: 11 additions & 3 deletions ksp_plugin_adapter/ksp_plugin_adapter.cs
Original file line number Diff line number Diff line change
@@ -56,6 +56,8 @@ private enum UnityLayers {
"principia_gravity_model";
private const string principia_numerics_blueprint_config_name_ =
"principia_numerics_blueprint";
private const string principia_override_version_check_config_name_ =
"principia_override_version_check";

private KSP.UI.Screens.ApplicationLauncherButton toolbar_button_;
private bool hide_all_gui_ = false;
@@ -205,9 +207,15 @@ private KSP.UI.Screens.SpaceTracking space_tracking {
string expected_version =
"1.7.0, 1.6.1, 1.5.1, 1.4.5, 1.4.4, 1.4.3, 1.4.2, and 1.4.1";
#endif
Log.Fatal("Unexpected KSP version " + Versioning.version_major + "." +
Versioning.version_minor + "." + Versioning.Revision +
"; this build targets " + expected_version + ".");
string message = $@"Unexpected KSP version {Versioning.version_major}.{
Versioning.version_minor}.{Versioning.Revision}; this build targets {
expected_version}.";
if (GameDatabase.Instance.GetAtMostOneNode(
principia_override_version_check_config_name_) == null) {
Log.Fatal(message);
} else {
Log.Error(message);
}
}
map_node_pool_ = new MapNodePool();
flight_planner_ = new FlightPlanner(this);