From 1cb199229aa4f159a725e2ab114842fab37deba2 Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Wed, 1 Dec 2010 18:22:36 +0000 Subject: MOHAWK: add stub implementations for more LB script opcodes svn-id: r54712 --- engines/mohawk/livingbooks.cpp | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 062216fe5b..cbaddc7d0a 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -1925,7 +1925,30 @@ void LBItem::runScript(uint id) { target->setEnabled(true); break; - case 0xf: // apply palette? seen in greeneggs + case 0xb: + // FIXME: 'showGlobal' + target->setVisible(false); + break; + + case 0xc: + // FIXME: 'showGlobal' + target->setVisible(true); + break; + + case 0xd: + // FIXME: 'enableGlobal' + target->setEnabled(false); + break; + + case 0xe: + // FIXME: 'enableGlobal' + target->setEnabled(true); + break; + + case 0xf: + target->seek(0xFFFF); + break; + default: // TODO warning("Ignoring script entry (type 0x%04x, action 0x%04x, opcode 0x%04x, param 0x%04x) for %d (param %04x)", -- cgit v1.2.3