WINTERMUTE: Improve language packs support

This commit is contained in:
lb_ii 2021-06-19 03:30:31 +03:00 committed by Eugene Sandulenko
parent d4d508ccab
commit 89cd6b0eb0

View File

@ -281,6 +281,11 @@ bool BaseFileManager::registerPackages() {
if (_language != Common::LV_LAT) {
continue;
}
// Persian
} else if (fileName == "persian.dcp" || fileName == "xlanguage_fa.dcp" || fileName == "persian_language_pack.dcp") {
if (_language != Common::FA_IRN) {
continue;
}
// Polish
} else if (fileName == "polish.dcp" || fileName == "xlanguage_pl.dcp" || fileName == "polish_language_pack.dcp") {
if (_language != Common::PL_POL) {
@ -297,7 +302,7 @@ bool BaseFileManager::registerPackages() {
continue;
}
// Serbian
} else if (fileName == "xlanguage_sr.dcp") {
} else if (fileName == "serbian.dcp" || fileName == "xlanguage_sr.dcp" || fileName == "serbian_language_pack.dcp") {
if (_language != Common::SR_SER) {
continue;
}