diff options
author | Max Horn | 2003-01-12 13:06:59 +0000 |
---|---|---|
committer | Max Horn | 2003-01-12 13:06:59 +0000 |
commit | 0305a2ba0a2f62f13708067ea82e0a2b5f6729e9 (patch) | |
tree | 7eea2a6f66622e7c8b4da60a5ab2ecad3b35d138 /scumm/object.cpp | |
parent | 37648803ae113dd699563b831aaa6829009921b2 (diff) | |
download | scummvm-rg350-0305a2ba0a2f62f13708067ea82e0a2b5f6729e9.tar.gz scummvm-rg350-0305a2ba0a2f62f13708067ea82e0a2b5f6729e9.tar.bz2 scummvm-rg350-0305a2ba0a2f62f13708067ea82e0a2b5f6729e9.zip |
dump flObject scripts, too
svn-id: r6424
Diffstat (limited to 'scumm/object.cpp')
-rw-r--r-- | scumm/object.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scumm/object.cpp b/scumm/object.cpp index 6e008a3ed3..6054f4a41a 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -1670,6 +1670,17 @@ void Scumm::loadFlObject(uint object, uint room) od = &_objs[objslot]; + // Dump object script + if (_dumpScripts) { + char buf[32]; + byte *ptr = foir.obcd; + sprintf(buf, "roomobj-%d-", room); + if (_features & GF_AFTER_V8) + // TODO - maybe V8 is not the only that needs this? + ptr = findResource(MKID('VERB'), ptr, 0); + dumpResource(buf, object, ptr); + } + // Setup sizes obcd_size = READ_BE_UINT32_UNALIGNED(foir.obcd + 4); od->OBCDoffset = 8; |