aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorNicola Mettifogo2009-03-20 20:38:33 +0000
committerNicola Mettifogo2009-03-20 20:38:33 +0000
commitdb5150dd7c034ab291aeda433dcb48adcc04751e (patch)
tree1f00a184cd881d9f04c071e2ba4023904856b66b /engines/parallaction
parent742c9c9d6aec635d3c9d35bfbb4271558397aadc (diff)
downloadscummvm-rg350-db5150dd7c034ab291aeda433dcb48adcc04751e.tar.gz
scummvm-rg350-db5150dd7c034ab291aeda433dcb48adcc04751e.tar.bz2
scummvm-rg350-db5150dd7c034ab291aeda433dcb48adcc04751e.zip
Added TODO's about replacing usage of the old ILBM decoder in Nippon Safes.
svn-id: r39573
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/disk_ns.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/parallaction/disk_ns.cpp b/engines/parallaction/disk_ns.cpp
index 5c27e6c488..be2d1465d7 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);