[Scummvm-cvs-logs] SF.net SVN: scummvm:[54650] scummvm/trunk/engines/mohawk
fuzzie at users.sourceforge.net
fuzzie at users.sourceforge.net
Mon Nov 29 22:41:21 CET 2010
Revision: 54650
http://scummvm.svn.sourceforge.net/scummvm/?rev=54650&view=rev
Author: fuzzie
Date: 2010-11-29 21:41:21 +0000 (Mon, 29 Nov 2010)
Log Message:
-----------
MOHAWK: read command messages, so LB doesn't just error out
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/livingbooks.cpp
scummvm/trunk/engines/mohawk/livingbooks.h
Modified: scummvm/trunk/engines/mohawk/livingbooks.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks.cpp 2010-11-29 21:39:24 UTC (rev 54649)
+++ scummvm/trunk/engines/mohawk/livingbooks.cpp 2010-11-29 21:41:21 UTC (rev 54650)
@@ -1491,17 +1491,21 @@
_phase = stream->readUint16();
break;
- case 0x70:
- debug(2, "LBItem: 0x70");
- // TODO
- break;
-
case 0x7b:
assert(size == 0);
debug(2, "LBItem: 0x7b");
// TODO
break;
+ case kLBCommand:
+ {
+ Common::String command = readString(stream);
+ if (size != command.size() + 1)
+ error("failed to read command string");
+ warning("ignoring command '%s'", command.c_str());
+ }
+ break;
+
case 0x69:
// TODO: ??
case 0x6a:
Modified: scummvm/trunk/engines/mohawk/livingbooks.h
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks.h 2010-11-29 21:39:24 UTC (rev 54649)
+++ scummvm/trunk/engines/mohawk/livingbooks.h 2010-11-29 21:41:21 UTC (rev 54650)
@@ -100,7 +100,8 @@
kLBMsgListScript = 0x66,
kLBNotifyScript = 0x67,
kLBSetPlayInfo = 0x68,
- kLBSetPlayPhase = 0x6e
+ kLBSetPlayPhase = 0x6e,
+ kLBCommand = 0x70
};
enum {
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