From 4d5be92386c0c245ffca622e330562c83c7f34f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20=C5=9Apiewak?= Date: Mon, 5 Aug 2024 15:44:55 +0200 Subject: [PATCH] Update HuffmanDecoder.cs Fix constructor visibility error; Change to big endian 32 bit. --- ArcFormats/DxLib/HuffmanDecoder.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArcFormats/DxLib/HuffmanDecoder.cs b/ArcFormats/DxLib/HuffmanDecoder.cs index 11f61d86..42036769 100644 --- a/ArcFormats/DxLib/HuffmanDecoder.cs +++ b/ArcFormats/DxLib/HuffmanDecoder.cs @@ -45,7 +45,7 @@ namespace GameRes.Formats.DxLib public int ParentNode; // index of parent node. public int[] ChildNode; //two children nodes, -1 if not existent. - DXA8HuffmanNode() + internal DXA8HuffmanNode() { bitArray = new byte[32]; ChildNode = new int[2]; @@ -338,9 +338,9 @@ namespace GameRes.Formats.DxLib { if (0 == m_bit_count) { - m_bits = LittleEndian.ToUInt64 (m_input, m_src); - m_src += 8; - m_bit_count = 64; + m_bits = BigEndian.ToUInt32 (m_input, m_src); + m_src += 4; + m_bit_count = 32; } bits = bits << 1 | (m_bits & 1); m_bits >>= 1;