Complete support, read .DAT entries from correct table

This commit is contained in:
Gymnasiast committed 2015-06-21 15:13:40 +02:00
1 parent d10d38a128
commit 0dfdb33028
3 files changed
+5 -1

No files matched your search

+1
View File
@@ -136,6 +136,7 @@ config_enum_definition _languageEnum[] = {
{ "es-ES", LANGUAGE_SPANISH },
{ "sv-SE", LANGUAGE_SWEDISH },
{ "it-IT", LANGUAGE_ITALIAN },
{ "pt-BR", LANGUAGE_PORTUGUESE_BR },
END_OF_ENUM
};
+1 -1
View File
@@ -270,7 +270,7 @@ static void language_close(language_data *language)
}
const int OpenRCT2LangIdToObjectLangId[] = {
0, 0, 1, 3, 6, 2, 0, 0, 4, 7, 5, 11
0, 0, 1, 3, 6, 2, 0, 0, 4, 7, 5, 13
};
/* rct2: 0x0098DA16 */
+3
View File
@@ -635,6 +635,9 @@ uint16 platform_get_locale_language(){
else if (strcmp(langCode, "ITA") == 0){
return LANGUAGE_ITALIAN;
}
else if (strcmp(langCode, "POR") == 0){
return LANGUAGE_PORTUGUESE_BR;
}
return LANGUAGE_UNDEFINED;
}