From 375bc352b0a038c76032896facfa99e80de2076a Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 14 Jan 2017 12:26:22 +0400 Subject: [PATCH] (HighRunningCrypt): override Encrypt method. --- ArcFormats/KiriKiri/CryptAlgorithms.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArcFormats/KiriKiri/CryptAlgorithms.cs b/ArcFormats/KiriKiri/CryptAlgorithms.cs index 2c9d82c7..9ec00cb6 100644 --- a/ArcFormats/KiriKiri/CryptAlgorithms.cs +++ b/ArcFormats/KiriKiri/CryptAlgorithms.cs @@ -870,5 +870,10 @@ namespace GameRes.Formats.KiriKiri byte key = (byte)entry.Hash; 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); + } } }