mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 04:24:05 +09:00
load app using apploader -- no more black screen on app load
This commit is contained in:
@@ -14,6 +14,8 @@ object Lang {
|
||||
* Get record by its STRING_ID
|
||||
*
|
||||
* HashMap<"$key_$language", Value>
|
||||
*
|
||||
* E.g. langpack["MENU_LANGUAGE_THIS_fiFI"]
|
||||
*/
|
||||
val langpack = HashMap<String, String>()
|
||||
private val FALLBACK_LANG_CODE = "en"
|
||||
@@ -55,9 +57,10 @@ object Lang {
|
||||
if (!it.name.startsWith("Polyglot") && it.name.endsWith(".json")) {
|
||||
processRegularLangfile(it, lang)
|
||||
}
|
||||
else {
|
||||
else if (it.name.startsWith("Polyglot") && it.name.endsWith(".json")) {
|
||||
processPolyglotLangFile(it, lang)
|
||||
}
|
||||
// else, ignore
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user