aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorMatthew Hoops2011-04-07 09:56:43 -0400
committerMatthew Hoops2011-04-07 10:00:11 -0400
commit5fad3d536245860d4e9446c21a2f5c7c1dca5b4e (patch)
tree135d18a949c96a140fdb73d4175035e0d50982cb /engines/mohawk
parenteb731514f7b27ca61b697ece0295dd79c29c141a (diff)
downloadscummvm-rg350-5fad3d536245860d4e9446c21a2f5c7c1dca5b4e.tar.gz
scummvm-rg350-5fad3d536245860d4e9446c21a2f5c7c1dca5b4e.tar.bz2
scummvm-rg350-5fad3d536245860d4e9446c21a2f5c7c1dca5b4e.zip
MOHAWK: Implement the quit notify LBCode command
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/livingbooks_code.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp
index c0718d941a..78345ab43e 100644
--- a/engines/mohawk/livingbooks_code.cpp
+++ b/engines/mohawk/livingbooks_code.cpp
@@ -785,6 +785,16 @@ void LBCode::runNotifyCommand() {
}
break;
+ case kLBNotifyQuit:
+ {
+ debugN("quit");
+ Common::Array<LBValue> params = readParams();
+ if (params.size() != 0)
+ error("incorrect number of parameters (%d) to quit", params.size());
+ _vm->addNotifyEvent(NotifyEvent(kLBNotifyQuit, 0));
+ }
+ break;
+
default:
error("unknown notify command %02x in code", commandType);
}