mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
DIRECTOR: LINGO: implement put ... after chunkexpr
The D4 lingo `put ... after chunkexpr` uses opcode 34 (0x22) for cb_v4assign. We convert the SYMBOL to a VAR due to cb_objectpush pushing variables as SYMBOLS to the stack.
This commit is contained in:
parent
97262c9d9d
commit
f071de48a3
@ -412,6 +412,17 @@ void LC::cb_v4assign() {
|
||||
LC::c_assign();
|
||||
}
|
||||
break;
|
||||
case 0x22:
|
||||
// put value after chunkExpression
|
||||
{
|
||||
Datum chunkExpr = g_lingo->pop();
|
||||
if (chunkExpr.type == SYMBOL) {
|
||||
chunkExpr.type = VAR;
|
||||
}
|
||||
g_lingo->push(chunkExpr);
|
||||
LC::c_putafter();
|
||||
}
|
||||
break;
|
||||
case 0x26:
|
||||
// put value after field textVar
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user