mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 07:23:05 +00:00
skiping translation if flag 'h' exist in language file
svn-id: r5274
This commit is contained in:
parent
99ec620c58
commit
24510afc69
@ -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(;;) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user