Skip to content

Commit

Permalink
fix: use classloader for Natives
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 24, 2024
1 parent 2af3af8 commit c610d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/silenium/compose/gl/util/Natives.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object Natives {
fun load(libFileName: String) {
val libFile = libs.getOrPut(libFileName) {
val outputFile = dir.resolve(libFileName)
Natives::class.java.getResourceAsStream("natives/$libFileName")!!.use { input ->
Natives::class.java.classLoader.getResourceAsStream("natives/$libFileName")!!.use { input ->
outputFile.outputStream().use { output ->
input.copyTo(output)
}
Expand Down

0 comments on commit c610d28

Please sign in to comment.