Skip to content

Commit 57f3ec4

Browse files
committed
Fix issue with patch not working
1 parent a41849f commit 57f3ec4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release-zip.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ jobs:
118118
exit 0
119119
fi
120120
121-
echo "DEBUG: Previous tag: $prev"
122-
echo "DEBUG: Current commit: $current"
121+
echo "Previous tag: $prev"
122+
echo "Current commit: $current"
123123
124124
diff=$(git diff --name-only "$prev" "$current")
125125
echo "diff_files=$diff" >> $GITHUB_OUTPUT

StarMap.Core/StarMapCore.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public StarMapCore(AssemblyLoadContext coreAssemblyLoadContext)
2525
public void Init()
2626
{
2727
_harmony.PatchAll();
28+
// Currently needed to force patch in release mode
29+
Harmony.GetAllPatchedMethods();
2830
}
2931

3032
public void DeInit()

0 commit comments

Comments
 (0)