summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpq-bios.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mpq-bios.c b/mpq-bios.c
index 98e852c..a093b84 100644
--- a/mpq-bios.c
+++ b/mpq-bios.c
@@ -299,6 +299,19 @@ mpq_archive_t * mpqlib_reopen_archive(int fd) {
void mpqlib_printtables(mpq_archive_t * mpq_a) {
int i;
+
+ printf("Archive details:\n");
+ printf("Header size: %8d\n", mpq_a->mpq_i->header_size);
+ printf("Archive size: %8d\n", mpq_a->mpq_i->archive_size);
+ printf("Format version: %8d\n", mpq_a->mpq_i->format_version);
+ printf("Sector size: %8d\n\n", mpq_a->mpq_i->sector_size);
+
+ printf("Hash table offset: %016llX\n", mpq_a->mpq_i->hash_table_offset);
+ printf("Block table offset: %016llX\n", mpq_a->mpq_i->block_table_offset);
+ printf("Hash table entries: %8d\n", mpq_a->mpq_i->hash_table_entries);
+ printf("Block table entries: %8d\n", mpq_a->mpq_i->block_table_entries);
+
+ printf("Extended block table offset: %016llX\n\n\n", mpq_a->mpq_i->extended_block_table_offset);
printf("Hash table dump.\n");
printf("HashA HashB language platform index\n");