From 69a27e43d427b2f4905ef1b3126a5347cc9ffbfd Mon Sep 17 00:00:00 2001 From: Graham Date: Wed, 20 May 2020 20:44:28 +0100 Subject: [PATCH] Move OpenGL registry to the share/deob folder Signed-off-by: Graham --- .../main/java/dev/openrs2/deob/ast/gl/GlRegistryProvider.kt | 6 ++++-- .../resources/dev/openrs2/deob/ast => share/deob}/gl.xml | 0 2 files changed, 4 insertions(+), 2 deletions(-) rename {deob-ast/src/main/resources/dev/openrs2/deob/ast => share/deob}/gl.xml (100%) 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