From c4d40a1dde37c775c571c8fd5f01b8530f30a102 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 31 Aug 2025 21:53:27 -0400 Subject: [PATCH] Fix a couple of missed issues in MPQ --- SabreTools.Serialization/Deserializers/MoPaQ.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SabreTools.Serialization/Deserializers/MoPaQ.cs b/SabreTools.Serialization/Deserializers/MoPaQ.cs index a091218c..6745ec5d 100644 --- a/SabreTools.Serialization/Deserializers/MoPaQ.cs +++ b/SabreTools.Serialization/Deserializers/MoPaQ.cs @@ -194,8 +194,8 @@ namespace SabreTools.Serialization.Deserializers // Preprocess the table byte[]? tableBytes = LoadTable(data, offset, - header.HashTableMD5, - (uint)header.HashTableSizeLong, + header.BetTableMD5, + (uint)header.BetTablesize, 92, MPQ_KEY_BLOCK_TABLE, out _); @@ -293,8 +293,8 @@ namespace SabreTools.Serialization.Deserializers // Preprocess the table byte[]? tableBytes = LoadTable(data, offset, - header.HashTableMD5, - (uint)header.HashTableSizeLong, + header.BlockTableMD5, + (uint)header.BlockTableSizeLong, entryCount * 16, MPQ_KEY_BLOCK_TABLE, out _); @@ -388,8 +388,8 @@ namespace SabreTools.Serialization.Deserializers // Preprocess the table byte[]? tableBytes = LoadTable(data, offset, - header.HashTableMD5, - (uint)header.HashTableSizeLong, + header.HetTableMD5, + (uint)header.HetTableSize, 44, MPQ_KEY_HASH_TABLE, out _);