diff options
author | Strangerke | 2012-12-24 11:36:53 +0100 |
---|---|---|
committer | Strangerke | 2012-12-24 11:36:53 +0100 |
commit | 8c1f422bd68fe23c4e73ba3d3b13de028c905134 (patch) | |
tree | 1b4f33a4510fffb40283c86c2f8108834a9a0496 /engines/hopkins/files.cpp | |
parent | 8cce2721177422a65e73c9f178746403c801f242 (diff) | |
download | scummvm-rg350-8c1f422bd68fe23c4e73ba3d3b13de028c905134.tar.gz scummvm-rg350-8c1f422bd68fe23c4e73ba3d3b13de028c905134.tar.bz2 scummvm-rg350-8c1f422bd68fe23c4e73ba3d3b13de028c905134.zip |
HOPKINS: Remove magic values used to check language, some renaming and refactoring
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index c888bcbd67..6fefd1eb22 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -221,14 +221,14 @@ byte *FileManager::searchCat(const Common::String &file, int a2) { break; case 9: - switch (_vm->_globals.FR) { - case 0: + switch (_vm->_globals._language) { + case LANG_EN: constructFilename(_vm->_globals.HOPLINK, "RES_VAN.CAT"); break; - case 1: + case LANG_FR: constructFilename(_vm->_globals.HOPLINK, "RES_VFR.CAT"); break; - case 2: + case LANG_SP: constructFilename(_vm->_globals.HOPLINK, "RES_VES.CAT"); break; } |