mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
support for texture packs
This commit is contained in:
@@ -44,17 +44,15 @@ object Lang {
|
||||
|
||||
init {
|
||||
// load base langs
|
||||
load("./assets/locales/")
|
||||
load(File("./assets/locales/"))
|
||||
}
|
||||
|
||||
|
||||
@JvmStatic operator fun invoke() { /* dummy method for manual initialisation */ }
|
||||
|
||||
fun load(localesDir: String) {
|
||||
fun load(localesDir: File) {
|
||||
printdbg(this, "Loading languages from $localesDir")
|
||||
|
||||
val localesDir = File(localesDir)
|
||||
|
||||
// get all of the languages installed
|
||||
localesDir.listFiles().filter { it.isDirectory }.forEach { languageList.add(it.name) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user