From ead52fc075fadfa58eae7d2d933d2fdc7f9c12b1 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 4 Apr 2015 05:28:17 +0400 Subject: [PATCH] (SaiminCrypt.Decrpyt): fixed byte decryption method logic. --- ArcFormats/ArcXP3.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArcFormats/ArcXP3.cs b/ArcFormats/ArcXP3.cs index a077359f..139c16d0 100644 --- a/ArcFormats/ArcXP3.cs +++ b/ArcFormats/ArcXP3.cs @@ -950,10 +950,10 @@ NextEntry: value ^= (byte)(21 * key); else if (offset < 0xF6) value += (byte)(-32 * key); - else if (offset >= 0x171) - value += (byte)(-54 * key); - else if (offset <= 0xffffffffL) + else if (offset < 0x171) value ^= (byte)(43 * key); + else if (offset <= 0xffffffffL) + value += (byte)(-54 * key); return value; }