Add PATH constant to ProfileProvider

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 69a27e43d4
commit 46dd61fc5d
  1. 6
      deob/src/main/java/dev/openrs2/deob/ProfileProvider.kt

@ -8,8 +8,12 @@ import javax.inject.Provider
class ProfileProvider @Inject constructor(private val mapper: ObjectMapper) : Provider<Profile> {
override fun get(): Profile {
return Files.newBufferedReader(Paths.get("share/deob/profile.yaml")).use { reader ->
return Files.newBufferedReader(PATH).use { reader ->
mapper.readValue(reader, Profile::class.java)
}
}
companion object {
private val PATH = Paths.get("share/deob/profile.yaml")
}
}

Loading…
Cancel
Save