diff options
author | Strangerke | 2012-12-26 00:31:42 +0100 |
---|---|---|
committer | Strangerke | 2012-12-26 00:31:42 +0100 |
commit | 59e85997b3debece5e920d7612fe33ccc9931934 (patch) | |
tree | bd9fd522919b3b1d9a917eeb89500c6edd15bfaa /engines/hopkins/files.cpp | |
parent | 2b665c67cb85feec4e273162a38275f86d26f08e (diff) | |
download | scummvm-rg350-59e85997b3debece5e920d7612fe33ccc9931934.tar.gz scummvm-rg350-59e85997b3debece5e920d7612fe33ccc9931934.tar.bz2 scummvm-rg350-59e85997b3debece5e920d7612fe33ccc9931934.zip |
HOPKINS: Load correct voice ressource file in BeOS and OS/2 versions
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 6fefd1eb22..1971b82a2a 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -221,16 +221,21 @@ byte *FileManager::searchCat(const Common::String &file, int a2) { break; case 9: - switch (_vm->_globals._language) { - case LANG_EN: - constructFilename(_vm->_globals.HOPLINK, "RES_VAN.CAT"); - break; - case LANG_FR: - constructFilename(_vm->_globals.HOPLINK, "RES_VFR.CAT"); - break; - case LANG_SP: - constructFilename(_vm->_globals.HOPLINK, "RES_VES.CAT"); - break; + if (_vm->getPlatform() == Common::kPlatformOS2 || _vm->getPlatform() == Common::kPlatformBeOS) + _vm->_fileManager.constructFilename(_vm->_globals.HOPVOICE, "ENG_VOI.RES"); + // Win95 and Linux versions uses another set of names + else { + switch (_vm->_globals._language) { + case LANG_EN: + constructFilename(_vm->_globals.HOPLINK, "RES_VAN.CAT"); + break; + case LANG_FR: + constructFilename(_vm->_globals.HOPLINK, "RES_VFR.CAT"); + break; + case LANG_SP: + constructFilename(_vm->_globals.HOPLINK, "RES_VES.CAT"); + break; + } } if (!f.exists(_vm->_globals.NFICHIER)) |