From 89cd6b0eb072a376a802b887e3b15414ca760082 Mon Sep 17 00:00:00 2001 From: lb_ii Date: Sat, 19 Jun 2021 03:30:31 +0300 Subject: [PATCH] WINTERMUTE: Improve language packs support --- engines/wintermute/base/base_file_manager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engines/wintermute/base/base_file_manager.cpp b/engines/wintermute/base/base_file_manager.cpp index 0f2b410859a..92b2aad8cef 100644 --- a/engines/wintermute/base/base_file_manager.cpp +++ b/engines/wintermute/base/base_file_manager.cpp @@ -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; }