aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2010-11-29 21:41:21 +0000
committerAlyssa Milburn2010-11-29 21:41:21 +0000
commit28ffa2fb872effdb85c08afd37925dc8e6a82948 (patch)
tree3a9ab0e9ba9146d23154444997b5631e2e6f924e /engines/mohawk/livingbooks.cpp
parent2bd16f9e84e3480e7bda65b89089c684a2eaa639 (diff)
downloadscummvm-rg350-28ffa2fb872effdb85c08afd37925dc8e6a82948.tar.gz
scummvm-rg350-28ffa2fb872effdb85c08afd37925dc8e6a82948.tar.bz2
scummvm-rg350-28ffa2fb872effdb85c08afd37925dc8e6a82948.zip
MOHAWK: read command messages, so LB doesn't just error out
svn-id: r54650
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r--engines/mohawk/livingbooks.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp
index 343e2ad15f..3888261296 100644
--- a/engines/mohawk/livingbooks.cpp
+++ b/engines/mohawk/livingbooks.cpp
@@ -1491,17 +1491,21 @@ void LBItem::readData(uint16 type, uint16 size, Common::SeekableSubReadStreamEnd
_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: