1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-04-20 02:51:50 +02:00

add language id; fix glyphs bake tool

This commit is contained in:
XProger 2019-03-30 17:06:48 +03:00
parent 3eb95cfd0e
commit 2e2cd1a474
6 changed files with 9 additions and 2 deletions

View File

@ -297,6 +297,8 @@ class Wrapper implements GvrView.StereoRenderer {
id = 7;
} else if (lang.startsWith("ja")) {
id = 8;
} else if (lang.startsWith("gr")) {
id = 9;
}
return id;
}

View File

@ -375,7 +375,8 @@ int checkLanguage() {
if (id == TWOCC("be")) return STR_LANG_RU - STR_LANG_EN;
if (id == TWOCC("ru")) return STR_LANG_RU - STR_LANG_EN;
if (id == TWOCC("ja")) return STR_LANG_JA - STR_LANG_EN;
if (id == TWOCC("gr")) return STR_LANG_GR - STR_LANG_EN;
return 0;
}

View File

@ -486,7 +486,8 @@ int checkLanguage() {
if (id == TWOCC("be")) return STR_LANG_RU - STR_LANG_EN;
if (id == TWOCC("ru")) return STR_LANG_RU - STR_LANG_EN;
if (id == TWOCC("ja")) return STR_LANG_JA - STR_LANG_EN;
if (id == TWOCC("gr")) return STR_LANG_GR - STR_LANG_EN;
return 0;
}

View File

@ -133,6 +133,8 @@
id = 7;
} else if (lang == "ja") {
id = 8;
} else if (lang == "gr") {
id = 9;
}
Module.ccall('set_def_lang', 'null', ['number'], [id]);
}

View File

@ -509,6 +509,7 @@ int checkLanguage() {
case LANG_UKRAINIAN :
case LANG_BELARUSIAN : str = STR_LANG_RU; break;
case LANG_JAPANESE : str = STR_LANG_JA; break;
case LANG_GREEK : str = STR_LANG_GR; break;
}
return str - STR_LANG_EN;
}

Binary file not shown.