diff options
author | Eugene Sandulenko | 2016-04-09 15:54:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-04-09 15:54:21 +0200 |
commit | 3bac16d57daf43f2a14bf0b7662afa2e9a6703c8 (patch) | |
tree | 5e2f1128922650cd7d3118307d073a10895f14d1 /engines | |
parent | 64709482e6ff259fa0b42ba379106158b7d8e318 (diff) | |
download | scummvm-rg350-3bac16d57daf43f2a14bf0b7662afa2e9a6703c8.tar.gz scummvm-rg350-3bac16d57daf43f2a14bf0b7662afa2e9a6703c8.tar.bz2 scummvm-rg350-3bac16d57daf43f2a14bf0b7662afa2e9a6703c8.zip |
WAGE: Added debug code for dumping CODE resource fork
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/world.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp index 40b1555e35..ae7a0ea6f5 100644 --- a/engines/wage/world.cpp +++ b/engines/wage/world.cpp @@ -105,6 +105,18 @@ bool World::loadWorld(Common::MacResManager *resMan) { Common::SeekableReadStream *res; Common::MacResIDArray::const_iterator iter; + // Dumping interpreter code +#if 1 + res = resMan->getResource(MKTAG('C','O','D','E'), 1); + warning("code size: %d", res->size()); + byte *buf = (byte *)malloc(res->size()); + res->read(buf, res->size()); + Common::DumpFile out; + out.open("code.bin"); + out.write(buf, res->size()); + out.close(); +#endif + if ((resArray = resMan->getResIDArray(MKTAG('G','C','O','D'))).size() == 0) return false; |