fixed CX decryptor.

apparently chances for this branch to happen are roughly 1 to 100000,
and i was lucky.
This commit is contained in:
morkt 2018-09-04 11:37:23 +04:00
parent 2b0fac06f9
commit 127cb37914

View File

@ -188,7 +188,7 @@ namespace GameRes.Formats.KiriKiri
uint key2 = ret.Item2 & 0xffff; uint key2 = ret.Item2 & 0xffff;
byte key3 = (byte)(ret.Item1); byte key3 = (byte)(ret.Item1);
if (key1 == key2) if (key1 == key2)
key2 = (key2+1) & 0xffff; key2 += 1;
if (0 == key3) if (0 == key3)
key3 = 1; key3 = 1;