From 164f35b8788a43aaa3807ab9cc2c46f74e0a592d Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Sat, 25 Feb 2006 18:26:16 +0000 Subject: cleanup unpacking function and get rid of an old hack to prevent buffer overflows. svn-id: r20884 --- engines/cine/unpack.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines/cine/unpack.h') diff --git a/engines/cine/unpack.h b/engines/cine/unpack.h index 5677f92248..1fe92c28c3 100644 --- a/engines/cine/unpack.h +++ b/engines/cine/unpack.h @@ -30,7 +30,15 @@ namespace Cine { -int decomp(uint8 *in, uint8 *out, int size); +struct UnpackCtx { + int size, datasize; + uint32 crc; + uint32 chk; + uint8 *dst; + const uint8 *src; +}; + +bool delphineUnpack(uint8 *dst, const uint8 *src, int len); } // End of namespace Cine -- cgit v1.2.3