diff options
author | pixel <pixel> | 2007-07-09 19:14:34 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-09 19:14:34 +0000 |
commit | a47cbe621febe11586f22c28a4507d74930d1737 (patch) | |
tree | 515cfc498a6249710edcdc114cf26c5344d9423d | |
parent | d71a0bb87551712359702851576b3b01132622f6 (diff) |
ioctl removs some dumb stuff...
-rw-r--r-- | int-bios.h | 14 | ||||
-rw-r--r-- | mpq-bios.c | 11 |
2 files changed, 0 insertions, 25 deletions
@@ -6,20 +6,6 @@ #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(struct mpq_archive_t *, int); int __mpqlib_seek(struct mpq_archive_t *, off_t); int __mpqlib_read(struct mpq_archive_t *, void *, size_t); @@ -56,8 +56,6 @@ typedef struct { uint32_t file_block_index; } hash_t; -/* Defined in int-bios.h - typedef struct { uint64_t block_offset; uint32_t block_size; @@ -65,8 +63,6 @@ typedef struct { uint32_t flags; } block_t; -*/ - struct mpq_archive_t { int fd; int closeit; @@ -340,13 +336,6 @@ int mpqlib_find_hash_entry_by_hash(struct mpq_archive_t * mpq_a, uint32_t hA, ui return -1; } -const block_t * __mpqlib_get_block_entry(struct mpq_archive_t * mpq_a, int entry) { - if ((entry >= mpq_a->block_table_entries) || (entry < 0)) - return NULL; - - return mpq_a->blocks + entry; -} - int __mpqlib_seek(struct mpq_archive_t * mpq_a, off_t off) { if (lseek64(mpq_a->fd, off, SEEK_SET) != off) return 0; |