Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugin_template/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Patch Manager",
"description": "A mod for generic patching needs similar to KSP 1's Module Manager.",
"source": "https://github.com/KSP2Community/PatchManager",
"version": "0.9.3",
"version": "0.9.4",
"version_check": "https://raw.githubusercontent.com/KSP2Community/PatchManager/main/plugin_template/swinfo.json",
"ksp2_version": {
"min": "0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/PatchManager.SassyPatching/Execution/Universe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private void LoadSinglePatch(string modId, FileInfo patch, Transformer tokenTran
}
catch (Exception e)
{
_errorLogger($"Could not run patch: {modId}:{patch.Name} due to: {e.Message}");
_errorLogger($"Could not run patch: {modId}:{patch.Name} due to: {e}");
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/PatchManager.SassyPatching/Transformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,12 @@ public override Node VisitImplicit_stage_def(sassy_parser.Implicit_stage_defCont
context.GetCoordinate(), context.stage.GetStringValue(),
context.stage_attribute().Select(Visit).Cast<StageDefinitionAttribute>().ToList());

public override Node VisitStage_value_before(sassy_parser.Stage_value_beforeContext context) =>
new StageDefinitionAttribute(context.GetCoordinate(), context.stage.GetStringValue(), false);

public override Node VisitStage_value_after(sassy_parser.Stage_value_afterContext context) =>
new StageDefinitionAttribute(context.GetCoordinate(), context.stage.GetStringValue(), true);

/// <inheritdoc />
public override Node VisitConfig_creation(sassy_parser.Config_creationContext context) => new ConfigCreation(
context.GetCoordinate(), context.label.GetStringValue(), context.config_name.GetStringValue(),
Expand Down