MOHAWK: Implement the quit notify LBCode command

This commit is contained in:
Matthew Hoops 2011-04-07 09:56:43 -04:00
parent eb731514f7
commit 5fad3d5362

View File

@ -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);
}