mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(AppliqueCrypt): fixed block decryption logic.
This commit is contained in:
parent
46b7346c8d
commit
9cf0c88b59
@ -587,7 +587,12 @@ namespace GameRes.Formats.KiriKiri
|
||||
public override void Decrypt (Xp3Entry entry, long offset, byte[] values, int pos, int count)
|
||||
{
|
||||
if (offset < 5)
|
||||
return;
|
||||
{
|
||||
int skip = Math.Min (5 - (int)offset, count);
|
||||
offset += skip;
|
||||
pos += skip;
|
||||
count -= skip;
|
||||
}
|
||||
byte key = (byte)(entry.Hash >> 12);
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user