[Scummvm-cvs-logs] SF.net SVN: scummvm:[55713] scummvm/trunk/engines/mohawk/livingbooks_code. cpp
fuzzie at users.sourceforge.net
fuzzie at users.sourceforge.net
Tue Feb 1 23:00:58 CET 2011
Revision: 55713
http://scummvm.svn.sourceforge.net/scummvm/?rev=55713&view=rev
Author: fuzzie
Date: 2011-02-01 22:00:57 +0000 (Tue, 01 Feb 2011)
Log Message:
-----------
MOHAWK: Handle a few more LB notify opcodes.
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/livingbooks_code.cpp
Modified: scummvm/trunk/engines/mohawk/livingbooks_code.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks_code.cpp 2011-02-01 22:00:37 UTC (rev 55712)
+++ scummvm/trunk/engines/mohawk/livingbooks_code.cpp 2011-02-01 22:00:57 UTC (rev 55713)
@@ -311,7 +311,7 @@
offset++;
switch (commandType) {
- case 0x3:
+ case kLBNotifyChangePage:
{
debugN("goto");
Common::Array<LBValue> params = readParams(src, offset);
@@ -332,6 +332,27 @@
}
break;
+ case kLBNotifyGoToControls:
+ case kLBNotifyGotoQuit:
+ {
+ debugN(commandType == kLBNotifyGoToControls ? "gotocontrol" : "gotoquit");
+ Common::Array<LBValue> params = readParams(src, offset);
+ if (params.size() != 0)
+ error("incorrect number of parameters (%d) to notify", params.size());
+ _vm->addNotifyEvent(NotifyEvent(commandType, 0));
+ }
+ break;
+
+ case kLBNotifyIntroDone:
+ {
+ debugN("startphasemain");
+ Common::Array<LBValue> params = readParams(src, offset);
+ if (params.size() != 0)
+ error("incorrect number of parameters (%d) to startphasemain", params.size());
+ _vm->addNotifyEvent(NotifyEvent(kLBNotifyIntroDone, 1));
+ }
+ break;
+
default:
error("unknown notify command %02x in code", commandType);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list