aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2017-12-03 19:56:21 +0100
committerEugene Sandulenko2017-12-03 23:04:58 +0100
commit26747d0400ae1afebf98fbf49d0d915ab3312118 (patch)
tree921e31efc65a0a720a8390ca176d5bf23c3c9052 /engines/fullpipe
parent8b1488ab636c9258794b7750e8c237f9370da87b (diff)
downloadscummvm-rg350-26747d0400ae1afebf98fbf49d0d915ab3312118.tar.gz
scummvm-rg350-26747d0400ae1afebf98fbf49d0d915ab3312118.tar.bz2
scummvm-rg350-26747d0400ae1afebf98fbf49d0d915ab3312118.zip
FULLPIPE: Added more debug output to the class loading
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/messages.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/engines/fullpipe/messages.cpp b/engines/fullpipe/messages.cpp
index f08397f2ee..48be017cf1 100644
--- a/engines/fullpipe/messages.cpp
+++ b/engines/fullpipe/messages.cpp
@@ -56,6 +56,29 @@ ExCommand::ExCommand(int16 parentId, int messageKind, int messageNum, int x, int
_parId = 0;
}
+struct exDesc {
+ byte num;
+ const char *name;
+} static const exTypes[] = {
+ { 1, "START_MOVEMENT" },
+ { 5, "SHOW" },
+ { 17, "MESSAGE" },
+ { 63, "USER" },
+ { 0, "" }
+};
+
+static const char *exCommandType2str(int type) {
+ static char buf[10];
+
+ for (int i = 0; exTypes[i].num; i++)
+ if (exTypes[i].num == type)
+ return exTypes[i].name;
+
+ snprintf(buf, 10, "%d", type);
+
+ return buf;
+}
+
bool ExCommand::load(MfcArchive &file) {
debugC(5, kDebugLoading, "ExCommand::load()");
@@ -84,6 +107,10 @@ bool ExCommand::load(MfcArchive &file) {
_objtype = kObjTypeExCommand;
+ debugC(6, kDebugLoading, "%% <COMMAND parent=%d cmd=%s x=%d y=%d f14=%d sceneX=%d sceneY=%d f20=%d f24=%d param=%d f2c=%d f30=%d f34=%d num=%d flags=%d parId=%d />",
+ _parentId, exCommandType2str(_messageKind), _x, _y, _field_14, _sceneClickX, _sceneClickY, _field_20, _field_24, _param, _field_2C,
+ _field_30, _field_34, _messageNum, _excFlags, _parId);
+
return true;
}
@@ -213,6 +240,8 @@ bool ObjstateCommand::load(MfcArchive &file) {
_objCommandName = file.readPascalString();
+ debugC(6, kDebugLoading, "%% <COMMAND cmd=\"USER\" type=\"SET_LOGIC\" title=\"%s\" state=\"%d\" />", transCyrillic(_objCommandName.c_str()), _value);
+
return true;
}