diff options
author | Strangerke | 2014-03-12 07:46:14 +0100 |
---|---|---|
committer | Strangerke | 2014-03-12 07:46:44 +0100 |
commit | a7f506967d8bac1d4e8b83895e77b5c59f136259 (patch) | |
tree | c0cc06f6b2f5f0c00e392329b88a09c6b2d431fe /engines/voyeur | |
parent | 2bdad6250d250215390887f9140476d3f7188884 (diff) | |
download | scummvm-rg350-a7f506967d8bac1d4e8b83895e77b5c59f136259.tar.gz scummvm-rg350-a7f506967d8bac1d4e8b83895e77b5c59f136259.tar.bz2 scummvm-rg350-a7f506967d8bac1d4e8b83895e77b5c59f136259.zip |
VOYEUR: Add Computer Hotspot in debugger
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/debugger.cpp | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/engines/voyeur/debugger.cpp b/engines/voyeur/debugger.cpp index fdd0825181..234300bce5 100644 --- a/engines/voyeur/debugger.cpp +++ b/engines/voyeur/debugger.cpp @@ -92,10 +92,37 @@ bool Debugger::Cmd_Time(int argc, const char **argv) { } bool Debugger::Cmd_Hotspots(int argc, const char **argv) { + if (_vm->_voy->_computerTextId >= 0) { + DebugPrintf("Hotspot Computer Screen %d - %d,%d->%d,%d\n", + _vm->_voy->_computerTextId, + _vm->_voy->_computerScreenRect.left, + _vm->_voy->_computerScreenRect.top, + _vm->_voy->_computerScreenRect.right, + _vm->_voy->_computerScreenRect.bottom); + } + +#if 0 + // Room hotspots + BoltEntry &boltEntry = _vm->_bVoy->boltEntry(_vm->_playStampGroupId + 4); + if (boltEntry._rectResource) { + Common::Array<RectEntry> &hotspots = boltEntry._rectResource->_entries; + for (uint hotspotIdx = 0; hotspotIdx < hotspots.size(); ++hotspotIdx) { + Common::String pos = Common::String::format("(%d,%d->%d,%d)", + hotspots[hotspotIdx].left, hotspots[hotspotIdx].top, + hotspots[hotspotIdx].right, hotspots[hotspotIdx].bottom); + int arrIndex = hotspots[hotspotIdx]._arrIndex; + if (_vm->_voy->_roomHotspotsEnabled[arrIndex - 1]) { + DebugPrintf("Hotspot Room %d - %s - Enabled\n", arrIndex, pos); + } else { + DebugPrintf("Hotspot Room - %s - Disabled\n", pos); + } + } + } +#endif + + // Outside view hotspots BoltEntry &boltEntry = _vm->_bVoy->boltEntry(_vm->_playStampGroupId + 1); - if (!boltEntry._rectResource) { - DebugPrintf("No hotspots available\n"); - } else { + if (boltEntry._rectResource) { Common::Array<RectEntry> &hotspots = boltEntry._rectResource->_entries; for (uint hotspotIdx = 0; hotspotIdx < hotspots.size(); ++hotspotIdx) { @@ -130,7 +157,7 @@ bool Debugger::Cmd_Hotspots(int argc, const char **argv) { } } - DebugPrintf("\n"); + DebugPrintf("\nEnd of list\n"); return true; } |