From 127cb37914028a610d7c21d7942d3f6bf84c0870 Mon Sep 17 00:00:00 2001 From: morkt Date: Tue, 4 Sep 2018 11:37:23 +0400 Subject: [PATCH] fixed CX decryptor. apparently chances for this branch to happen are roughly 1 to 100000, and i was lucky. --- ArcFormats/KiriKiri/KiriKiriCx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/KiriKiri/KiriKiriCx.cs b/ArcFormats/KiriKiri/KiriKiriCx.cs index 91aaa509..d119f740 100644 --- a/ArcFormats/KiriKiri/KiriKiriCx.cs +++ b/ArcFormats/KiriKiri/KiriKiriCx.cs @@ -188,7 +188,7 @@ namespace GameRes.Formats.KiriKiri uint key2 = ret.Item2 & 0xffff; byte key3 = (byte)(ret.Item1); if (key1 == key2) - key2 = (key2+1) & 0xffff; + key2 += 1; if (0 == key3) key3 = 1;