Skip to content

Commit

Permalink
Special patch for lwjgl AL
Browse files Browse the repository at this point in the history
  • Loading branch information
kappa-maintainer committed Dec 20, 2024
1 parent 604ce23 commit ebc783a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public byte[] transform(String s, String s1, byte[] bytes) {
lwjglNode.fields.add(f);
}
});
if (s1.equals("org.lwjgl.openal.AL")) {
lwjglNode.methods.removeIf(m -> m.name.equals("destroy"));
lwjglxNode.methods.stream().filter(m -> m.name.equals("destroy")).forEach(m -> lwjglNode.methods.add(m));
}
ClassWriter out = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
lwjglNode.accept(out);
return out.toByteArray();
Expand Down

0 comments on commit ebc783a

Please sign in to comment.