diff options
author | Eugene Sandulenko | 2018-05-04 12:16:06 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-05-05 23:17:35 +0200 |
commit | c2346309312f61597d39d3934096265c2d72fe66 (patch) | |
tree | ac03696bc3731c5dee8f21b594eb65f8294dadbf /engines/prince/prince.cpp | |
parent | c95cbdc2c913d4234554e3643051e1ca1e124d33 (diff) | |
download | scummvm-rg350-c2346309312f61597d39d3934096265c2d72fe66.tar.gz scummvm-rg350-c2346309312f61597d39d3934096265c2d72fe66.tar.bz2 scummvm-rg350-c2346309312f61597d39d3934096265c2d72fe66.zip |
PRINCE: Initial support for packed Russian version
Diffstat (limited to 'engines/prince/prince.cpp')
-rw-r--r-- | engines/prince/prince.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index f29b8c2bae..a8448a0aed 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -208,14 +208,17 @@ void PrinceEngine::init() { debugEngine("Adding all path: %s", gameDataDir.getPath().c_str()); - if (getLanguage() != Common::RU_RUS) { + if (!(getFeatures() & GF_EXTRACTED)) { PtcArchive *all = new PtcArchive(); if (!all->open("all/databank.ptc")) error("Can't open all/databank.ptc"); PtcArchive *voices = new PtcArchive(); - if (!voices->open("voices/databank.ptc")) - error("Can't open voices/databank.ptc"); + + if (!(getFeatures() & GF_NOVOICES)) { + if (!voices->open("voices/databank.ptc")) + error("Can't open voices/databank.ptc"); + } PtcArchive *sound = new PtcArchive(); if (!sound->open("sound/databank.ptc")) |