(HighRunningCrypt): override Encrypt method.

This commit is contained in:
morkt 2017-01-14 12:26:22 +04:00
parent b7a621722c
commit 375bc352b0

View File

@ -870,5 +870,10 @@ namespace GameRes.Formats.KiriKiri
byte key = (byte)entry.Hash; byte key = (byte)entry.Hash;
return key != 0 && offset % key != 0 ? (byte)(value ^ key) : value; return key != 0 && offset % key != 0 ? (byte)(value ^ key) : value;
} }
public override void Encrypt (Xp3Entry entry, long offset, byte[] data, int pos, int count)
{
Decrypt (entry, offset, data, pos, count);
}
} }
} }