modloader: locale autoloader

This commit is contained in:
minjaesong
2023-09-06 02:15:04 +09:00
parent 70b9cebbd0
commit 7259ca616c
5 changed files with 14 additions and 6 deletions

View File

@@ -211,6 +211,12 @@ object ModMgr {
GameRetextureLoader(moduleName)
}
// add locales if exists
if (hasFile(moduleName, "locales")) {
printdbg(this, "Trying to load Locales on ${moduleName}")
GameLanguageLoader(moduleName)
}
// run entry script in entry point
if (entryPoint.isNotBlank()) {
var newClass: Class<*>? = null