Skip to content

Commit

Permalink
Merge pull request #36 from KSP2Community/dev
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
cheese3660 authored Feb 10, 2024
2 parents 72cc588 + 0618228 commit 82b7302
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
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

0 comments on commit 82b7302

Please sign in to comment.