[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.32,1.33

Pawe? Ko?odziejski aquadran at users.sourceforge.net
Wed Oct 23 00:17:04 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv8292

Modified Files:
	string.cpp 
Log Message:
skiping translation if flag 'h' exist in language file

Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- string.cpp	22 Oct 2002 13:04:39 -0000	1.32
+++ string.cpp	23 Oct 2002 07:16:42 -0000	1.33
@@ -1162,13 +1162,24 @@
 		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(;;) {





More information about the Scummvm-git-logs mailing list