diff --git a/deob/src/main/java/dev/openrs2/deob/ProfileProvider.kt b/deob/src/main/java/dev/openrs2/deob/ProfileProvider.kt index 094c99a7b8..52b116b271 100644 --- a/deob/src/main/java/dev/openrs2/deob/ProfileProvider.kt +++ b/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 { 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") + } }