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:
parent
3eb95cfd0e
commit
2e2cd1a474
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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]);
|
||||
}
|
||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user