diff --git a/deob-ast/src/main/java/dev/openrs2/deob/ast/gl/GlRegistryProvider.kt b/deob-ast/src/main/java/dev/openrs2/deob/ast/gl/GlRegistryProvider.kt index 71575d4e..6bbffd42 100644 --- a/deob-ast/src/main/java/dev/openrs2/deob/ast/gl/GlRegistryProvider.kt +++ b/deob-ast/src/main/java/dev/openrs2/deob/ast/gl/GlRegistryProvider.kt @@ -1,15 +1,17 @@ package dev.openrs2.deob.ast.gl +import java.nio.file.Files +import java.nio.file.Paths import javax.inject.Provider class GlRegistryProvider : Provider { override fun get(): GlRegistry { - GlRegistryProvider::class.java.getResourceAsStream(PATH).use { input -> + Files.newInputStream(PATH).use { input -> return GlRegistry.parse(input) } } companion object { - private const val PATH = "/dev/openrs2/deob/ast/gl.xml" + private val PATH = Paths.get("share/deob/gl.xml") } } diff --git a/deob-ast/src/main/resources/dev/openrs2/deob/ast/gl.xml b/share/deob/gl.xml similarity index 100% rename from deob-ast/src/main/resources/dev/openrs2/deob/ast/gl.xml rename to share/deob/gl.xml