Update ArcDX8.cs

This commit is contained in:
Sławomir Śpiewak 2024-07-15 14:22:34 +02:00
parent b3f5195a9a
commit 30e04eae1f

View File

@ -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