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.
15 lines
489 B
15 lines
489 B
package dev.openrs2.deob
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper
|
|
import java.nio.file.Files
|
|
import java.nio.file.Paths
|
|
import javax.inject.Inject
|
|
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 ->
|
|
mapper.readValue(reader, Profile::class.java)
|
|
}
|
|
}
|
|
}
|
|
|