diff options
author | Alyssa Milburn | 2010-11-29 21:41:21 +0000 |
---|---|---|
committer | Alyssa Milburn | 2010-11-29 21:41:21 +0000 |
commit | 28ffa2fb872effdb85c08afd37925dc8e6a82948 (patch) | |
tree | 3a9ab0e9ba9146d23154444997b5631e2e6f924e | |
parent | 2bd16f9e84e3480e7bda65b89089c684a2eaa639 (diff) | |
download | scummvm-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
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 14 | ||||
-rw-r--r-- | engines/mohawk/livingbooks.h | 3 |
2 files changed, 11 insertions, 6 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: diff --git a/engines/mohawk/livingbooks.h b/engines/mohawk/livingbooks.h index a668e7f73d..ea5381a90b 100644 --- a/engines/mohawk/livingbooks.h +++ b/engines/mohawk/livingbooks.h @@ -100,7 +100,8 @@ enum { kLBMsgListScript = 0x66, kLBNotifyScript = 0x67, kLBSetPlayInfo = 0x68, - kLBSetPlayPhase = 0x6e + kLBSetPlayPhase = 0x6e, + kLBCommand = 0x70 }; enum { |