From 5fad3d536245860d4e9446c21a2f5c7c1dca5b4e Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 7 Apr 2011 09:56:43 -0400 Subject: MOHAWK: Implement the quit notify LBCode command --- engines/mohawk/livingbooks_code.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/mohawk') 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 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); } -- cgit v1.2.3