diff options
author | Paweł Kołodziejski | 2002-10-23 07:16:42 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-10-23 07:16:42 +0000 |
commit | 24510afc69a5b912e0da8de9a74baa7f5a26d512 (patch) | |
tree | 7992bae4ec5c9829b7ef79fc34412b1f683801d7 /scumm/string.cpp | |
parent | 99ec620c587b46912686bd02f67843a29f231587 (diff) | |
download | scummvm-rg350-24510afc69a5b912e0da8de9a74baa7f5a26d512.tar.gz scummvm-rg350-24510afc69a5b912e0da8de9a74baa7f5a26d512.tar.bz2 scummvm-rg350-24510afc69a5b912e0da8de9a74baa7f5a26d512.zip |
skiping translation if flag 'h' exist in language file
svn-id: r5274
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r-- | scumm/string.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index ca627ecc74..f574635dbd 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -1162,13 +1162,24 @@ void Scumm::translateText(char * text, char * trans_buff) { sprintf(num_s, "%ld", num); char * buf = _languageBuffer; + pos = 0; // determine is file encoded if (*buf == 'e') { enc = 0x13; - pos = 1; + pos += 3; } else { enc = 0; - pos = 0; + } + + // skip translation if flag 'h' exist + if (*(buf + pos) == 'h') { + pos += 3; + char *pointer = strchr((char*)text + 1, '/'); + if (pointer != NULL) + strcpy(trans_buff, pointer + 1); + else + strcpy(trans_buff, ""); + return; } for(;;) { |