mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 11:46:54 +00:00
Add addiotnal decode type in later HE games.
svn-id: r16791
This commit is contained in:
parent
94f76a8f05
commit
39b83ba8cf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user