From db5150dd7c034ab291aeda433dcb48adcc04751e Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Fri, 20 Mar 2009 20:38:33 +0000 Subject: [PATCH] Added TODO's about replacing usage of the old ILBM decoder in Nippon Safes. svn-id: r39573 --- engines/parallaction/disk_ns.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp index 5c27e6c4884..be2d1465d7e 100644 --- a/engines/parallaction/disk_ns.cpp +++ b/engines/parallaction/disk_ns.cpp @@ -959,6 +959,7 @@ void AmigaDisk_ns::buildMask(byte* buf) { } } +// TODO: extend the ILBMDecoder to return CRNG chunks and get rid of this BackgroundDecoder crap class BackgroundDecoder : public Graphics::ILBMDecoder { PaletteFxRange *_range; @@ -1070,6 +1071,7 @@ void AmigaDisk_ns::loadMask(BackgroundInfo& info, const char *name) { info.layers[i] = (((r << 4) & 0xF00) | (g & 0xF0) | (b >> 4)) & 0xFF; } + // TODO: use the new ILBMDecoder here! s->seek(0x126, SEEK_SET); // HACK: skipping IFF/ILBM header should be done by analysis, not magic Graphics::PackBitsReadStream stream(*s); @@ -1092,8 +1094,8 @@ void AmigaDisk_ns::loadPath(BackgroundInfo& info, const char *name) { if (!s) return; // no errors if missing path files: not every location has one - - s->seek(0x120, SEEK_SET); // HACK: skipping IFF/ILBM header should be done by analysis, not magic + // TODO: use the new ILBMDecoder here! + s->seek(0x120, SEEK_SET); Graphics::PackBitsReadStream stream(*s);