diff options
author | Eugene Sandulenko | 2016-10-05 09:13:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-05 09:13:28 +0200 |
commit | 4d1076b33ec1a81b5dd8e479112797a503bc12d9 (patch) | |
tree | 529776869387b88038a4e38735db208c3d32f36c /engines/fullpipe | |
parent | 1bf73b9cf1079cd7a6eaf0766d9f312330734624 (diff) | |
download | scummvm-rg350-4d1076b33ec1a81b5dd8e479112797a503bc12d9.tar.gz scummvm-rg350-4d1076b33ec1a81b5dd8e479112797a503bc12d9.tar.bz2 scummvm-rg350-4d1076b33ec1a81b5dd8e479112797a503bc12d9.zip |
FULLPIPE: Added on-demand debug output to PicAniInfos
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/messagehandlers.cpp | 9 | ||||
-rw-r--r-- | engines/fullpipe/objects.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/statesaver.cpp | 7 |
3 files changed, 17 insertions, 0 deletions
diff --git a/engines/fullpipe/messagehandlers.cpp b/engines/fullpipe/messagehandlers.cpp index ec01597244..b4338a237a 100644 --- a/engines/fullpipe/messagehandlers.cpp +++ b/engines/fullpipe/messagehandlers.cpp @@ -197,6 +197,15 @@ int global_messageHandler1(ExCommand *cmd) { g_fp->openHelp(); cmd->_messageKind = 0; break; + case '8': + { + int num = 32; + for (uint i = 0; i < g_fp->_gameLoader->_sc2array[num]._picAniInfosCount; i++) { + debug("pic %d, %d:", num, i); + g_fp->_gameLoader->_sc2array[num]._picAniInfos[i]->print(); + } + } + break; default: break; } diff --git a/engines/fullpipe/objects.h b/engines/fullpipe/objects.h index 9f0ccf18de..12ad6105d3 100644 --- a/engines/fullpipe/objects.h +++ b/engines/fullpipe/objects.h @@ -62,6 +62,7 @@ struct PicAniInfo { bool load(MfcArchive &file); void save(MfcArchive &file); + void print(); PicAniInfo() { memset(this, 0, sizeof(PicAniInfo)); } }; diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp index 509376790d..e582d4b438 100644 --- a/engines/fullpipe/statesaver.cpp +++ b/engines/fullpipe/statesaver.cpp @@ -181,6 +181,13 @@ void PicAniInfo::save(MfcArchive &file) { file.writeUint32LE(someDynamicPhaseIndex); } +void PicAniInfo::print() { + debug("type: %d objectId: %d field_6: %d field_8: %d", type, objectId, field_6, field_8); + debug("sceneId: %d field_E: %d ox: %d oy: %d priority: %d", sceneId, field_E, ox, oy, priority); + debug("staticsId: %d movementId: %d dynamicPhaseIndex: %d flags: %x field_24: %d someDynamicPhaseIndex: %d", + staticsId, movementId, dynamicPhaseIndex, flags, field_24, someDynamicPhaseIndex); +} + void GameVar::save(MfcArchive &file) { file.writePascalString(_varName); file.writeUint32LE(_varType); |