diff options
author | Gregory Montoir | 2006-02-25 18:26:16 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-02-25 18:26:16 +0000 |
commit | 164f35b8788a43aaa3807ab9cc2c46f74e0a592d (patch) | |
tree | e64d5b469af7a44fcf4ddad17f679329a6687d74 /engines/cine/unpack.h | |
parent | bb4d4631385dbd9bec4dc67f9040878c92f41b26 (diff) | |
download | scummvm-rg350-164f35b8788a43aaa3807ab9cc2c46f74e0a592d.tar.gz scummvm-rg350-164f35b8788a43aaa3807ab9cc2c46f74e0a592d.tar.bz2 scummvm-rg350-164f35b8788a43aaa3807ab9cc2c46f74e0a592d.zip |
cleanup unpacking function and get rid of an old hack to prevent buffer overflows.
svn-id: r20884
Diffstat (limited to 'engines/cine/unpack.h')
-rw-r--r-- | engines/cine/unpack.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 |