mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-26 23:24:00 +08:00
Update ArcDX8.cs
This commit is contained in:
parent
b3f5195a9a
commit
30e04eae1f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user