Skip to content

Commit

Permalink
fix: prevent lwjgl from warning us about mismatched library versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxnii committed Apr 9, 2024
1 parent 2c8e746 commit 4d32941
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ class LwjglTransformer : ClassTransformer() {
return
}
if (node.name == "org/lwjgl/opengl/PixelFormat") return
if (node.name == "org/lwjgl/system/Library") {
node.methods.forEach { method ->
method.instructions
.filter { it is LdcInsnNode && it.cst is String && it.cst == "java.library.path" }
.forEach { (it as LdcInsnNode).cst = "spice.library.path" }
}

return
}

val patch =
getClassNode(remapLwjglClass(node.name))
Expand Down

0 comments on commit 4d32941

Please sign in to comment.