Add addiotnal decode type in later HE games.

svn-id: r16791
This commit is contained in:
Travis Howell 2005-02-14 13:44:19 +00:00
parent 94f76a8f05
commit 39b83ba8cf

View File

@ -558,13 +558,26 @@ void ScummEngine_v72he::decodeScriptString(byte *dst, bool scriptString) {
chr = string[num++];
if (chr == '%') {
chr = string[num++];
if (chr == 'd') {
switch(chr) {
case 'b':
// byte
break;
case 'c':
*dst++ = args[val--];
break;
case 'd':
dst += snprintf((char *)dst, 10, "%d", args[val--]);
continue;
} else if (chr == 's') {
break;
case 's':
dst += addStringToStack(dst, 512, args[val--]);
continue;
break;
case 'x':
// hexadecimal
break;
default:
error("decodeScriptString: Unknown type %d", chr);
}
continue;
}
*dst++ = chr;
}