aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mohawk/livingbooks.cpp14
-rw-r--r--engines/mohawk/livingbooks.h3
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 {