From 30e04eae1fd9caa58117b5b00f4d0ec25a4a1cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20=C5=9Apiewak?= Date: Mon, 15 Jul 2024 14:22:34 +0200 Subject: [PATCH] Update ArcDX8.cs --- ArcFormats/DxLib/ArcDX8.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArcFormats/DxLib/ArcDX8.cs b/ArcFormats/DxLib/ArcDX8.cs index 36e8eacc..3c707813 100644 --- a/ArcFormats/DxLib/ArcDX8.cs +++ b/ArcFormats/DxLib/ArcDX8.cs @@ -90,11 +90,12 @@ namespace GameRes.Formats.DxLib //TODO: Ask for key here. var key = DefaultKey; + + var index = file.View.ReadBytes(dx.IndexOffset, dx.IndexSize); if ((dx.Flags & DXA8Flags.DXA_FLAG_NO_KEY) == 0) { if ((dx.Flags & DXA8Flags.DXA_FLAG_NO_HEAD_PRESS) != 0) { - var index = file.View.ReadBytes(dx.IndexOffset, dx.IndexSize); Decrypt(index, 0, index.Length, 0, key); } else