[Scummvm-cvs-logs] SF.net SVN: scummvm:[39573] scummvm/trunk/engines/parallaction/disk_ns.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Fri Mar 20 21:38:33 CET 2009


Revision: 39573
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39573&view=rev
Author:   peres001
Date:     2009-03-20 20:38:33 +0000 (Fri, 20 Mar 2009)

Log Message:
-----------
Added TODO's about replacing usage of the old ILBM decoder in Nippon Safes.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/disk_ns.cpp

Modified: scummvm/trunk/engines/parallaction/disk_ns.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/disk_ns.cpp	2009-03-20 20:37:58 UTC (rev 39572)
+++ scummvm/trunk/engines/parallaction/disk_ns.cpp	2009-03-20 20:38:33 UTC (rev 39573)
@@ -959,6 +959,7 @@
 	}
 }
 
+// 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 @@
 		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,9 +1094,9 @@
 	if (!s)
 		return;	// no errors if missing path files: not every location has one
 
+	// TODO: use the new ILBMDecoder here!
+	s->seek(0x120, SEEK_SET);
 
-	s->seek(0x120, SEEK_SET);	// HACK: skipping IFF/ILBM header should be done by analysis, not magic
-
 	Graphics::PackBitsReadStream stream(*s);
 
 	info._path = new PathBuffer;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list