From 36fd1a3846fcb08abdf5dafcd6703586b51e369e Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 6 Jul 2007 16:22:15 +0000 Subject: Various progress. --- int-bios.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 int-bios.h (limited to 'int-bios.h') diff --git a/int-bios.h b/int-bios.h new file mode 100644 index 0000000..1c05d29 --- /dev/null +++ b/int-bios.h @@ -0,0 +1,26 @@ +#ifndef __INT_BIOS_H__ +#define __INT_BIOS_H__ + +#include +#include + +#include "mpq-bios.h" + +typedef struct { + uint64_t block_offset; + uint32_t block_size; + uint32_t file_size; + uint32_t flags; +} block_t; + +#define FLAGS_FILE_COMP_IMPLODE 0x00000100 +#define FLAGS_FILE_COMP_MULTI 0x00000200 +#define FLAGS_FILE_COMPRESSED 0x0000FF00 +#define FLAGS_FILE_ENCRYPTED 0x00010000 +#define FLAGS_FILE_EXISTS 0x80000000 + +const block_t * __mpqlib_get_block_entry(mpq_archive_t *, int); +int __mpqlib_seek(mpq_archive_t *, off_t); +int __mpqlib_read(mpq_archive_t *, void *, size_t); + +#endif -- cgit v1.2.3