Move OpenGL registry to the share/deob folder

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 6d6287c917
commit 69a27e43d4
  1. 6
      deob-ast/src/main/java/dev/openrs2/deob/ast/gl/GlRegistryProvider.kt
  2. 0
      share/deob/gl.xml

@ -1,15 +1,17 @@
package dev.openrs2.deob.ast.gl package dev.openrs2.deob.ast.gl
import java.nio.file.Files
import java.nio.file.Paths
import javax.inject.Provider import javax.inject.Provider
class GlRegistryProvider : Provider<GlRegistry> { class GlRegistryProvider : Provider<GlRegistry> {
override fun get(): GlRegistry { override fun get(): GlRegistry {
GlRegistryProvider::class.java.getResourceAsStream(PATH).use { input -> Files.newInputStream(PATH).use { input ->
return GlRegistry.parse(input) return GlRegistry.parse(input)
} }
} }
companion object { companion object {
private const val PATH = "/dev/openrs2/deob/ast/gl.xml" private val PATH = Paths.get("share/deob/gl.xml")
} }
} }

Loading…
Cancel
Save