aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorAlyssa Milburn2010-12-01 18:22:36 +0000
committerAlyssa Milburn2010-12-01 18:22:36 +0000
commit1cb199229aa4f159a725e2ab114842fab37deba2 (patch)
tree7e53000c787ee31adf4678ceff1b86139d3836be /engines
parent1b27de3829024e25496145c0c29473f4921d85ac (diff)
downloadscummvm-rg350-1cb199229aa4f159a725e2ab114842fab37deba2.tar.gz
scummvm-rg350-1cb199229aa4f159a725e2ab114842fab37deba2.tar.bz2
scummvm-rg350-1cb199229aa4f159a725e2ab114842fab37deba2.zip
MOHAWK: add stub implementations for more LB script opcodes
svn-id: r54712
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/livingbooks.cpp25
1 files changed, 24 insertions, 1 deletions
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)",