diff options
author | Sven Hesse | 2012-07-02 00:09:43 +0200 |
---|---|---|
committer | Sven Hesse | 2012-07-30 01:44:44 +0200 |
commit | 9e997fea1be0c3f7cd8af7ee0f145879d5c49882 (patch) | |
tree | ae074db09271948cd43e1558e6a341c4cf8a0011 /engines | |
parent | 4663ab2373ac3230ccb95cc2accee87ddd1682b8 (diff) | |
download | scummvm-rg350-9e997fea1be0c3f7cd8af7ee0f145879d5c49882.tar.gz scummvm-rg350-9e997fea1be0c3f7cd8af7ee0f145879d5c49882.tar.bz2 scummvm-rg350-9e997fea1be0c3f7cd8af7ee0f145879d5c49882.zip |
GOB: Add "long" PreGob language suffixes
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/pregob/pregob.cpp | 9 | ||||
-rw-r--r-- | engines/gob/pregob/pregob.h | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/engines/gob/pregob/pregob.cpp b/engines/gob/pregob/pregob.cpp index f94f990f76..f39a7a112e 100644 --- a/engines/gob/pregob/pregob.cpp +++ b/engines/gob/pregob/pregob.cpp @@ -36,10 +36,13 @@ #include "gob/pregob/pregob.h" -static char kLanguageSuffix[5] = { 't', 'g', 'a', 'e', 'i' }; namespace Gob { +const char PreGob::kLanguageSuffixShort[5] = { 't', 'g', 'a', 'e', 'i'}; +const char *PreGob::kLanguageSuffixLong [5] = {"fr", "al", "an", "it", "es"}; + + PreGob::PreGob(GobEngine *vm) : _vm(vm), _fadedOut(false) { } @@ -241,10 +244,10 @@ void PreGob::redrawAnim(ANIObject &ani) { } Common::String PreGob::getLocFile(const Common::String &file) const { - if (_vm->_global->_language >= ARRAYSIZE(kLanguageSuffix)) + if (_vm->_global->_language >= ARRAYSIZE(kLanguageSuffixShort)) return file; - return file + kLanguageSuffix[_vm->_global->_language]; + return file + kLanguageSuffixShort[_vm->_global->_language]; } TXTFile *PreGob::loadTXT(const Common::String &txtFile, TXTFile::Format format) const { diff --git a/engines/gob/pregob/pregob.h b/engines/gob/pregob/pregob.h index 0a40ed6242..477aec6dc8 100644 --- a/engines/gob/pregob/pregob.h +++ b/engines/gob/pregob/pregob.h @@ -47,6 +47,10 @@ public: virtual void run() = 0; protected: + static const char kLanguageSuffixShort[5]; + static const char *kLanguageSuffixLong [5]; + + void initScreen(); ///< Initialize the game screen. void fadeOut(); ///< Fade to black. |