Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
418 B
18 lines
418 B
4 years ago
|
package org.openrs2.deob.ast.gl
|
||
4 years ago
|
|
||
4 years ago
|
import java.nio.file.Files
|
||
|
import java.nio.file.Paths
|
||
4 years ago
|
import javax.inject.Provider
|
||
|
|
||
4 years ago
|
public class GlRegistryProvider : Provider<GlRegistry> {
|
||
4 years ago
|
override fun get(): GlRegistry {
|
||
4 years ago
|
return Files.newInputStream(PATH).use { input ->
|
||
|
GlRegistry.parse(input)
|
||
4 years ago
|
}
|
||
|
}
|
||
|
|
||
4 years ago
|
private companion object {
|
||
4 years ago
|
private val PATH = Paths.get("share/deob/gl.xml")
|
||
4 years ago
|
}
|
||
|
}
|