From 2efe6f62b644ca93b7294de6dc83090542b2e4e2 Mon Sep 17 00:00:00 2001
From: pixel <pixel>
Date: Mon, 9 Jul 2007 15:59:00 +0000
Subject: Slightly improved verbose output.

---
 mpq-bios.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

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");
-- 
cgit v1.2.3